|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
Lazy, functional-style query/filter view over a snapshot of registered threads. More...
#include <thread_registry_backend.hpp>
Public Member Functions | |
| query_view (std::vector< registered_thread_info_backend > entries) | |
| template<typename Predicate > | |
| auto | filter (Predicate &&pred) const -> query_view |
| template<typename Fn > | |
| void | for_each (Fn &&fn) const |
| auto | count () const -> size_t |
| auto | empty () const -> bool |
| auto | entries () const -> std::vector< registered_thread_info_backend > const & |
| template<typename Fn > | |
| auto | map (Fn &&fn) const -> std::vector< std::invoke_result_t< Fn, registered_thread_info_backend const & > > |
| template<typename Predicate > | |
| auto | find_if (Predicate &&pred) const -> std::optional< registered_thread_info_backend > |
| 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 -> query_view |
| auto | skip (size_t n) const -> query_view |
Lazy, functional-style query/filter view over a snapshot of registered threads.
A query_view is produced by thread_registry_backend::query() (or by chaining operations on an existing query_view). It holds an internal std::vector<registered_thread_info_backend> that is a snapshot - mutations to the originating thread_registry_backend after the query_view was created are not visible.
pred.std::vector<R>.fn to every entry.std::nullopt.Definition at line 220 of file thread_registry_backend.hpp.
|
inlineexplicit |
Definition at line 223 of file thread_registry_backend.hpp.
|
inline |
Definition at line 308 of file thread_registry_backend.hpp.
References map().
Definition at line 250 of file thread_registry_backend.hpp.
Definition at line 256 of file thread_registry_backend.hpp.
|
inline |
Definition at line 262 of file thread_registry_backend.hpp.
|
inline |
Definition at line 227 of file thread_registry_backend.hpp.
References map().
|
inline |
Definition at line 284 of file thread_registry_backend.hpp.
References map().
Definition at line 241 of file thread_registry_backend.hpp.
References map().
|
inline |
|
inline |
Definition at line 320 of file thread_registry_backend.hpp.
|
inline |
Definition at line 335 of file thread_registry_backend.hpp.
References map().
|
inline |
Definition at line 326 of file thread_registry_backend.hpp.
References map().