|
| template<typename Predicate> |
| auto | filter (Predicate &&pred) const |
| auto | count () const -> size_t |
| auto | empty () const -> bool |
| template<typename Fn> |
| void | for_each (Fn &&fn) const |
| template<typename Predicate, typename Fn> |
| void | apply (Predicate &&pred, Fn &&fn) const |
| template<typename Fn> |
| auto | map (Fn &&fn) const -> std::vector< std::invoke_result_t< Fn, RegisteredThreadInfo const & > > |
| template<typename Predicate> |
| auto | find_if (Predicate &&pred) const -> std::optional< RegisteredThreadInfo > |
| template<typename Predicate> |
| auto | any (Predicate &&pred) const -> bool |
| template<typename Predicate> |
| auto | all (Predicate &&pred) const -> bool |
| template<typename Predicate> |
| auto | none (Predicate &&pred) const -> bool |
| auto | take (size_t n) const |
| auto | skip (size_t n) const |
template<typename Derived>
class threadschedule::detail::QueryFacadeMixin< Derived >
CRTP mixin that provides functional-style query facade methods.
The derived class must implement a public query() method returning a QueryView-like object. All facade methods (filter, map, for_each, find_if, any, all, none, take, skip, count, empty, apply) delegate to it.
Return types are deduced via auto so the mixin can be used as a base class before the concrete QueryView type is fully defined (CRTP).
- Template Parameters
-
| Derived | CRTP derived type. |
Definition at line 236 of file thread_registry.hpp.