YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::SharedCore< V, T > Class Template Reference

#include <shared_core.hpp>

Inheritance diagram for yaclib::detail::SharedCore< V, T >:
[legend]
Collaboration diagram for yaclib::detail::SharedCore< V, T >:
[legend]

Public Types

using Result = typename ResultCore< V, T >::Result
 
- Public Types inherited from yaclib::detail::ResultCore< V, T >
using Value = V
 
using Trait = T
 
using Result = typename T::template Result< V >
 
- Public Types inherited from yaclib::detail::BaseCore
enum  State : std::uintptr_t { kEmpty = std::uintptr_t{0} , kResult = std::numeric_limits<std::uintptr_t>::max() }
 

Public Member Functions

InlineCoreHere (InlineCore &caller) noexcept override
 
Result Retire () final
 
bool SetCallback (InlineCore &callback) noexcept
 
template<bool SymmetricTransfer>
Transfer< SymmetricTransferSetInline (InlineCore &callback) noexcept
 
template<bool SymmetricTransfer>
Transfer< SymmetricTransferSetResult () noexcept
 
- Public Member Functions inherited from yaclib::detail::ResultCore< V, T >
 ResultCore () noexcept
 
template<typename... Args>
 ResultCore (std::in_place_t, Args &&... args)
 
 ~ResultCore () noexcept override
 
template<typename... Args>
void Store (Args &&... args)
 
ResultGet () noexcept
 
template<bool Condition>
decltype(autoMoveOrConst ()
 
- Public Member Functions inherited from yaclib::detail::BaseCore
bool Empty () const noexcept
 
template<bool Shared>
void TransferExecutorTo (BaseCore &callback) noexcept
 
- 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::ResultCore< V, T >
union { 
 
   Result   _result 
 
   Callback   _self 
 
};  
 
- Public Attributes inherited from yaclib::detail::BaseCore
IExecutorPtr _executor {NoRefTag{}, &MakeInline()}
 
- Public Attributes inherited from yaclib::detail::Node
Nodenext = nullptr
 
- Protected Member Functions inherited from yaclib::detail::ResultCore< V, T >
template<bool SymmetricTransfer, bool Shared>
YACLIB_INLINE auto Impl (InlineCore &caller) noexcept
 
- Protected Member Functions inherited from yaclib::detail::BaseCore
 BaseCore (State state) noexcept
 
void StoreCallbackImpl (InlineCore &callback) noexcept
 
template<bool Shared>
bool SetCallbackImpl (InlineCore &callback) noexcept
 
bool ResetImpl () noexcept
 
template<bool SymmetricTransfer, bool Shared>
Transfer< SymmetricTransferSetInlineImpl (InlineCore &callback) noexcept
 
template<bool SymmetricTransfer, bool Shared>
Transfer< SymmetricTransferSetResultImpl () noexcept
 
- Protected Attributes inherited from yaclib::detail::BaseCore
yaclib_std::atomic_uintptr_t _callback
 

Detailed Description

template<typename V, typename T>
class yaclib::detail::SharedCore< V, T >

Definition at line 13 of file shared_core.hpp.

Member Typedef Documentation

◆ Result

template<typename V , typename T >
using yaclib::detail::SharedCore< V, T >::Result = typename ResultCore<V, T>::Result

Definition at line 17 of file shared_core.hpp.

Member Function Documentation

◆ Here()

template<typename V , typename T >
InlineCore * yaclib::detail::SharedCore< V, T >::Here ( InlineCore caller)
inlineoverridevirtualnoexcept

Implements yaclib::detail::InlineCore.

Definition at line 19 of file shared_core.hpp.

References yaclib::MakeContract().

◆ Retire()

◆ SetCallback()

template<typename V , typename T >
bool yaclib::detail::SharedCore< V, T >::SetCallback ( InlineCore callback)
inlinenoexcept

Definition at line 39 of file shared_core.hpp.

References yaclib::MakeContract().

◆ SetInline()

template<typename V , typename T >
template<bool SymmetricTransfer>
Transfer< SymmetricTransfer > yaclib::detail::SharedCore< V, T >::SetInline ( InlineCore callback)
inlinenoexcept

Definition at line 48 of file shared_core.hpp.

References yaclib::MakeContract().

◆ SetResult()

template<typename V , typename T >
template<bool SymmetricTransfer>
Transfer< SymmetricTransfer > yaclib::detail::SharedCore< V, T >::SetResult ( )
inlinenoexcept

Definition at line 53 of file shared_core.hpp.


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