Skip to content

Commit 4c786be

Browse files
committed
minor rebase fixes
1 parent a521cf4 commit 4c786be

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Framework/Core/include/Framework/ASoA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ concept has_metadata = is_metadata_trait<T> && not_void<typename T::metadata>;
394394
// concept has_sources = is_metadata<T> && not_void<typename T::sources>;
395395

396396
template <typename T>
397-
concept is_spawnable_column = std::is_same_v<typename T::spawnable_t, std::true_type>;
397+
concept is_spawnable_column = std::same_as<typename T::spawnable_t, std::true_type>;
398398

399399
template <typename B, typename E>
400400
struct EquivalentIndex {

Framework/Core/include/Framework/AnalysisHelpers.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ class TableConsumer;
8484
/// a table. The provided template arguments are if type Column and
8585
/// therefore refer only to the persisted columns.
8686
template <typename T>
87-
concept producable = soa::has_metadata<T> || soa::has_metadata<typename T::parent_t>;
87+
concept is_producable = soa::has_metadata<aod::MetadataTrait<T>> || soa::has_metadata<aod::MetadataTrait<typename T::parent_t>>;
8888

89-
template <producable T>
89+
template <is_producable T>
9090
struct WritingCursor {
9191
public:
9292
using persistent_table_t = decltype([]() { if constexpr (soa::is_iterator<T>) { return typename T::parent_t{nullptr}; } else { return T{nullptr}; } }()); // std::conditional<soa::is_iterator<T>, typename T::parent_t, T>;
@@ -174,7 +174,7 @@ struct OutputForTable {
174174
/// given analysis task. Notice how the actual cursor is implemented by the
175175
/// means of the WritingCursor helper class, from which produces actually
176176
/// derives.
177-
template <producable T>
177+
template <is_producable T>
178178
struct Produces : WritingCursor<T> {
179179
};
180180

@@ -227,9 +227,9 @@ struct TableTransform {
227227
/// This helper struct allows you to declare extended tables which should be
228228
/// created by the task (as opposed to those pre-defined by data model)
229229
template <typename T>
230-
concept spawnable = soa::is_table<T> && soa::has_metadata<T>;
230+
concept is_spawnable = soa::is_table<T> && soa::has_metadata<aod::MetadataTrait<T>>;
231231

232-
template <spawnable T>
232+
template <is_spawnable T>
233233
struct Spawns : TableTransform<typename aod::MetadataTrait<o2::aod::Hash<T::ref.desc_hash>>::metadata, T::ref> {
234234
using metadata = TableTransform<typename aod::MetadataTrait<o2::aod::Hash<T::ref.desc_hash>>::metadata, T::ref>::metadata;
235235
using extension_t = typename metadata::extension_table_t;

Framework/Core/include/Framework/AnalysisManagers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ struct OutputManager {
239239
};
240240

241241
/// Produces specialization
242-
template <producable T>
242+
template <is_producable T>
243243
struct OutputManager<Produces<T>> {
244244
static bool appendOutput(std::vector<OutputSpec>& outputs, Produces<T>& /*what*/, uint32_t)
245245
{
@@ -339,7 +339,7 @@ static inline auto extractOriginals(ProcessingContext& pc)
339339
}(std::make_index_sequence<refs.size()>());
340340
}
341341

342-
template <typename T>
342+
template <is_spawnable T>
343343
struct OutputManager<Spawns<T>> {
344344
static bool appendOutput(std::vector<OutputSpec>& outputs, Spawns<T>& what, uint32_t)
345345
{

0 commit comments

Comments
 (0)