ResultOk< T & > Class Template Reference

#include <resultbase.h>

Public Member Functions

 ResultOk ()
 
MAXON_IMPLICIT ResultOk (T &value)
 
T & GetValue () const
 
T & UncheckedGetValue () const
 
 operator T& () const
 
Bool operator== (ERROR_OK) const
 
Bool operator== (ERROR_FAILED) const
 
const ThreadReferencedErrorGetErrorStorage () const
 

Protected Attributes

T * _value
 

Constructor & Destructor Documentation

◆ ResultOk() [1/2]

ResultOk ( )

◆ ResultOk() [2/2]

MAXON_IMPLICIT ResultOk ( T &  value)

Member Function Documentation

◆ GetValue()

T& GetValue ( void  ) const

◆ UncheckedGetValue()

T& UncheckedGetValue ( ) const

◆ operator T&()

operator T& ( ) const

◆ operator==() [1/2]

Bool operator== ( ERROR_OK  ) const

◆ operator==() [2/2]

Bool operator== ( ERROR_FAILED  ) const

◆ GetErrorStorage()

const ThreadReferencedError& GetErrorStorage ( ) const

Member Data Documentation

◆ _value

T* _value
protected