ARB
Public Member Functions | List of all members
ErrorOr< TYPE > Class Template Reference

#include <ErrorOrType.h>

Public Member Functions

 ErrorOr (ARB_ERROR err, const TYPE &t)
 
bool hasError () const
 
bool hasValue () const
 
ARB_ERROR getError () const
 
TYPE getValue () const
 

Detailed Description

template<typename TYPE>
class ErrorOr< TYPE >

Definition at line 19 of file ErrorOrType.h.

Constructor & Destructor Documentation

template<typename TYPE >
ErrorOr< TYPE >::ErrorOr ( ARB_ERROR  err,
const TYPE t 
)
inline

Definition at line 39 of file ErrorOrType.h.

Member Function Documentation

template<typename TYPE >
bool ErrorOr< TYPE >::hasError ( ) const
inline
template<typename TYPE >
bool ErrorOr< TYPE >::hasValue ( ) const
inline

Definition at line 49 of file ErrorOrType.h.

References ErrorOr< TYPE >::hasError().

Referenced by ErrorOr< TYPE >::getValue().

template<typename TYPE >
ARB_ERROR ErrorOr< TYPE >::getError ( ) const
inline
template<typename TYPE >
TYPE ErrorOr< TYPE >::getValue ( ) const
inline

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