ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::CompositeThreadRegistry Class Reference

Public Member Functions

void attach (ThreadRegistry *reg)
auto query () const -> ThreadRegistry::QueryView
template<typename Predicate>
auto filter (Predicate &&pred) const -> ThreadRegistry::QueryView
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 -> ThreadRegistry::QueryView
auto skip (size_t n) const -> ThreadRegistry::QueryView

Detailed Description

Definition at line 612 of file thread_registry.hpp.

Member Function Documentation

◆ all()

template<typename Predicate>
auto threadschedule::CompositeThreadRegistry::all ( Predicate && pred) const -> bool
inlinenodiscard

Definition at line 688 of file thread_registry.hpp.

◆ any()

template<typename Predicate>
auto threadschedule::CompositeThreadRegistry::any ( Predicate && pred) const -> bool
inlinenodiscard

Definition at line 682 of file thread_registry.hpp.

◆ apply()

template<typename Predicate, typename Fn>
void threadschedule::CompositeThreadRegistry::apply ( Predicate && pred,
Fn && fn ) const
inline

Definition at line 664 of file thread_registry.hpp.

◆ attach()

void threadschedule::CompositeThreadRegistry::attach ( ThreadRegistry * reg)
inline

Definition at line 615 of file thread_registry.hpp.

◆ count()

auto threadschedule::CompositeThreadRegistry::count ( ) const -> size_t
inlinenodiscard

Definition at line 647 of file thread_registry.hpp.

◆ empty()

auto threadschedule::CompositeThreadRegistry::empty ( ) const -> bool
inlinenodiscard

Definition at line 652 of file thread_registry.hpp.

◆ filter()

template<typename Predicate>
auto threadschedule::CompositeThreadRegistry::filter ( Predicate && pred) const -> ThreadRegistry::QueryView
inlinenodiscard

Definition at line 642 of file thread_registry.hpp.

◆ find_if()

template<typename Predicate>
auto threadschedule::CompositeThreadRegistry::find_if ( Predicate && pred) const -> std::optional<RegisteredThreadInfo>
inlinenodiscard

Definition at line 676 of file thread_registry.hpp.

◆ for_each()

template<typename Fn>
void threadschedule::CompositeThreadRegistry::for_each ( Fn && fn) const
inline

Definition at line 658 of file thread_registry.hpp.

◆ map()

template<typename Fn>
auto threadschedule::CompositeThreadRegistry::map ( Fn && fn) const -> std::vector<std::invoke_result_t<Fn, RegisteredThreadInfo const&>>
inlinenodiscard

Definition at line 670 of file thread_registry.hpp.

◆ none()

template<typename Predicate>
auto threadschedule::CompositeThreadRegistry::none ( Predicate && pred) const -> bool
inlinenodiscard

Definition at line 694 of file thread_registry.hpp.

◆ query()

auto threadschedule::CompositeThreadRegistry::query ( ) const -> ThreadRegistry::QueryView
inlinenodiscard

Definition at line 624 of file thread_registry.hpp.

◆ skip()

auto threadschedule::CompositeThreadRegistry::skip ( size_t n) const -> ThreadRegistry::QueryView
inlinenodiscard

Definition at line 704 of file thread_registry.hpp.

◆ take()

auto threadschedule::CompositeThreadRegistry::take ( size_t n) const -> ThreadRegistry::QueryView
inlinenodiscard

Definition at line 699 of file thread_registry.hpp.


The documentation for this class was generated from the following file: