PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
OperationResult Class Reference

#include <operationresult.h>

Inheritance diagram for OperationResult:
[legend]

Public Member Functions

 OperationResult (bool _res, const std::string &_error)
 
 OperationResult (bool _res)
 
std::string getError () const
 
bool getRes () const
 
 operator bool () const
 

Private Attributes

bool m_res {false}
 
Optional< std::string > m_error {nullopt}
 

Detailed Description

Definition at line 11 of file operationresult.h.

Constructor & Destructor Documentation

◆ OperationResult() [1/2]

OperationResult::OperationResult ( bool  _res,
const std::string &  _error 
)
inline

Definition at line 18 of file operationresult.h.

◆ OperationResult() [2/2]

OperationResult::OperationResult ( bool  _res)
inline

Definition at line 19 of file operationresult.h.

Member Function Documentation

◆ getError()

std::string OperationResult::getError ( ) const
inline

Definition at line 21 of file operationresult.h.

Here is the caller graph for this function:

◆ getRes()

bool OperationResult::getRes ( ) const
inline

Definition at line 22 of file operationresult.h.

Here is the caller graph for this function:

◆ operator bool()

OperationResult::operator bool ( ) const
inlineexplicit

Definition at line 23 of file operationresult.h.

Member Data Documentation

◆ m_error

Optional<std::string> OperationResult::m_error {nullopt}
private

Definition at line 15 of file operationresult.h.

◆ m_res

bool OperationResult::m_res {false}
private

Definition at line 14 of file operationresult.h.


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