YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::when::SingleCombinator< Strategy, Core > Struct Template Reference

#include <when.hpp>

Inheritance diagram for yaclib::when::SingleCombinator< Strategy, Core >:
[legend]
Collaboration diagram for yaclib::when::SingleCombinator< Strategy, Core >:
[legend]

Public Member Functions

 SingleCombinator (std::size_t count, typename Strategy::PromiseType p)
 
template<typename... Cores>
void Set (Cores &... cores)
 
template<typename Iterator , typename = typename std::iterator_traits<Iterator>::value_type>
void Set (Iterator begin, std::size_t count)
 
InlineCore * Here (InlineCore &caller) noexcept final
 
- Public Member Functions inherited from yaclib::detail::InlineCore
virtual InlineCoreHere (InlineCore &caller) noexcept=0
 
- Public Member Functions inherited from yaclib::Job
virtual void Drop () noexcept
 
- Public Member Functions inherited from yaclib::IFunc
virtual void Call () noexcept
 
- Public Member Functions inherited from yaclib::IRef
virtual void IncRef () noexcept
 Increments reference counter.
 
virtual void DecRef () noexcept
 Decrements reference counter.
 
virtual std::size_t GetRef () noexcept
 
virtual ~IRef () noexcept=default
 

Additional Inherited Members

- Public Attributes inherited from yaclib::detail::Node
Nodenext = nullptr
 

Detailed Description

template<typename Strategy, typename Core>
struct yaclib::when::SingleCombinator< Strategy, Core >

Definition at line 138 of file when.hpp.

Constructor & Destructor Documentation

◆ SingleCombinator()

template<typename Strategy , typename Core >
yaclib::when::SingleCombinator< Strategy, Core >::SingleCombinator ( std::size_t  count,
typename Strategy::PromiseType  p 
)
inline

Definition at line 139 of file when.hpp.

Member Function Documentation

◆ Here()

template<typename Strategy , typename Core >
InlineCore * yaclib::when::SingleCombinator< Strategy, Core >::Here ( InlineCore &  caller)
inlinefinalnoexcept

Definition at line 169 of file when.hpp.

◆ Set() [1/2]

template<typename Strategy , typename Core >
template<typename... Cores>
void yaclib::when::SingleCombinator< Strategy, Core >::Set ( Cores &...  cores)
inline

Definition at line 144 of file when.hpp.

References yaclib::MakeContract().

◆ Set() [2/2]

template<typename Strategy , typename Core >
template<typename Iterator , typename = typename std::iterator_traits<Iterator>::value_type>
void yaclib::when::SingleCombinator< Strategy, Core >::Set ( Iterator  begin,
std::size_t  count 
)
inline

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