PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CallResult< T > Class Template Reference

#include <operationresult.h>

Inheritance diagram for CallResult< T >:
[legend]
Collaboration diagram for CallResult< T >:
[legend]

Public Member Functions

 CallResult ()
 
 CallResult (T _obj)
 
 CallResult (const std::string &error)
 
const Optional< T > & getObjResult () const
 
- Public Member Functions inherited from OperationResult
 OperationResult (bool _res, const std::string &_error)
 
 OperationResult (bool _res)
 
std::string getError () const
 
bool getRes () const
 
 operator bool () const
 

Private Attributes

Optional< Tm_obj_res {nullopt}
 

Detailed Description

template<class T>
class CallResult< T >

Definition at line 33 of file operationresult.h.

Constructor & Destructor Documentation

◆ CallResult() [1/3]

template<class T >
CallResult< T >::CallResult ( )
inline

Definition at line 38 of file operationresult.h.

◆ CallResult() [2/3]

template<class T >
CallResult< T >::CallResult ( T  _obj)
inlineexplicit

Definition at line 39 of file operationresult.h.

◆ CallResult() [3/3]

template<class T >
CallResult< T >::CallResult ( const std::string &  error)
inlineexplicit

Definition at line 40 of file operationresult.h.

Member Function Documentation

◆ getObjResult()

template<class T >
const Optional<T>& CallResult< T >::getObjResult ( ) const
inline

Definition at line 41 of file operationresult.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_obj_res

template<class T >
Optional<T> CallResult< T >::m_obj_res {nullopt}
private

Definition at line 36 of file operationresult.h.


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