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

#include <result_core.hpp>

Inheritance diagram for yaclib::detail::ResultCore< V, E >:
[legend]
Collaboration diagram for yaclib::detail::ResultCore< V, E >:
[legend]

Public Member Functions

 ResultCore () noexcept
 
template<typename... Args>
 ResultCore (Args &&... args) noexcept(std::is_nothrow_constructible_v< Result< V, E >, Args &&... >)
 
 ~ResultCore () noexcept override
 
template<typename... Args>
void Store (Args &&... args) noexcept(std::is_nothrow_constructible_v< Result< V, E >, Args &&... >)
 
Result< V, E > & Get () noexcept
 
template<bool Condition>
decltype(autoMoveOrConst ()
 
- Public Member Functions inherited from yaclib::detail::BaseCore
bool Empty () const noexcept
 
void MoveExecutorTo (BaseCore &callback) noexcept
 
void CopyExecutorTo (BaseCore &callback) noexcept
 
- 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
 

Public Attributes

union { 
 
   Result< V, E >   _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

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
 

Additional Inherited Members

- 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() }
 
- Protected Attributes inherited from yaclib::detail::BaseCore
yaclib_std::atomic_uintptr_t _callback
 

Detailed Description

template<typename V, typename E>
class yaclib::detail::ResultCore< V, E >

Definition at line 17 of file result_core.hpp.

Constructor & Destructor Documentation

◆ ResultCore() [1/2]

template<typename V , typename E >
yaclib::detail::ResultCore< V, E >::ResultCore ( )
inlinenoexcept

Definition at line 19 of file result_core.hpp.

References yaclib::detail::BaseCore::kEmpty.

◆ ResultCore() [2/2]

template<typename V , typename E >
template<typename... Args>
yaclib::detail::ResultCore< V, E >::ResultCore ( Args &&...  args)
inlineexplicitnoexcept

Definition at line 23 of file result_core.hpp.

◆ ~ResultCore()

Member Function Documentation

◆ Get()

◆ Impl()

template<typename V , typename E >
template<bool SymmetricTransfer, bool Shared>
YACLIB_INLINE auto yaclib::detail::ResultCore< V, E >::Impl ( InlineCore caller)
inlineprotectednoexcept

◆ MoveOrConst()

template<typename V , typename E >
template<bool Condition>
decltype(auto) yaclib::detail::ResultCore< V, E >::MoveOrConst ( )
inline

◆ Store()

Member Data Documentation

◆ [union]

union { ... } yaclib::detail::ResultCore< V, E >

◆ _result

◆ _self

template<typename V , typename E >
Callback yaclib::detail::ResultCore< V, E >::_self

Definition at line 52 of file result_core.hpp.


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