zeus::Future< ZEUS_RETURN > Class Template Reference

#include <Future.hpp>

Inheritance diagram for zeus::Future< ZEUS_RETURN >:
zeus::FutureBase

Public Member Functions

 Future (const zeus::FutureBase &_base)
 
zeus::Future< ZEUS_RETURN > & operator= (const zeus::FutureBase &_base)
 
ZEUS_RETURN get ()
 
- Public Member Functions inherited from zeus::FutureBase
 FutureBase (const zeus::FutureBase &_base)
 
 FutureBase ()
 
 FutureBase (uint32_t _transactionId, zeus::FutureData::ObserverFinish _callback=nullptr, uint32_t _clientId=0)
 
 FutureBase (uint32_t _transactionId, ememory::SharedPtr< zeus::Buffer > _returnData, zeus::FutureData::ObserverFinish _callback=nullptr, uint32_t _clientId=0)
 
zeus::FutureBase operator= (const zeus::FutureBase &_base)
 
bool appendData (ememory::SharedPtr< zeus::Buffer > _returnValue)
 
void setSynchronous ()
 
uint32_t getTransactionId () const
 
uint32_t getClientId () const
 
bool hasError () const
 
std::string getErrorType () const
 
std::string getErrorHelp () const
 
bool isValid () const
 
bool isFinished () const
 
const FutureBasewait () const
 
const FutureBasewaitFor (std::chrono::microseconds _delta=std::chrono::seconds(30)) const
 
const FutureBasewaitUntil (std::chrono::steady_clock::time_point _endTime) const
 
ememory::SharedPtr< zeus::BuffergetRaw ()
 
std::chrono::nanoseconds getTransmitionTime () const
 

Additional Inherited Members

- Public Attributes inherited from zeus::FutureBase
ememory::SharedPtr< zeus::FutureDatam_data
 

Detailed Description

template<class ZEUS_RETURN>
class zeus::Future< ZEUS_RETURN >

future template to cast type in a specific type

Constructor & Destructor Documentation

§ Future()

template<class ZEUS_RETURN >
zeus::Future< ZEUS_RETURN >::Future ( const zeus::FutureBase _base)
inline

contructor of the Future with the basic FutureBase

Parameters
[in]_baseGeneric base Future

Member Function Documentation

§ get()

template<class ZEUS_RETURN >
ZEUS_RETURN zeus::Future< ZEUS_RETURN >::get ( )

Get the value Requested with the type.

Returns
requested value

§ operator=()

template<class ZEUS_RETURN >
zeus::Future<ZEUS_RETURN>& zeus::Future< ZEUS_RETURN >::operator= ( const zeus::FutureBase _base)
inline

Asignement operator with an other future.

Parameters
[in]_baseGeneric base Future
Returns
the reference on the local element

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