Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Framework/Core/include/Framework/Concepts.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,23 +148,27 @@ concept has_filtered_policy = not_void<typename std::decay_t<T>::policy_t> && re
template <typename T>
concept is_filtered_iterator = is_iterator<T> && has_filtered_policy<T>;

/// 13. require a filtered table
/// 13. require not filtered table iterator
template <typename T>
concept is_not_filtered_iterator = is_iterator<T> && !has_filtered_policy<T>;

/// 14. require a filtered table
template <typename T>
concept is_filtered_table = requires(T t) { t.isFilteredBase(); };

/// 14. require a filtered table or iterator
/// 15. require a filtered table or iterator
template <typename T>
concept is_filtered = is_filtered_table<T> || is_filtered_iterator<T>;

/// 15. require not filtered table
/// 16. require not filtered table
template <typename T>
concept is_not_filtered_table = is_table<T> && !is_filtered_table<T>;

/// 16. require a join
/// 17. require a join
template <typename T>
concept is_join = requires(T t) { t.isJoin(); };

/// 17. require an enumerated iterator
/// 18. require an enumerated iterator
template <typename T>
concept is_enumerated_iterator = requires(T t) { t.globalIndex(); };

Expand Down
Loading