ROSE  0.11.145.0
Public Types | Public Member Functions | List of all members
Sawyer::Error< E > Class Template Reference

Description

template<class E>
class Sawyer::Error< E >

Error value.

Definition at line 149 of file Result.h.

#include <util/Sawyer/Result.h>

Public Types

using Value = E
 

Public Member Functions

 Error (const Error &other)
 Copy constructor. More...
 
 Error (const E &error)
 Construct from a value. More...
 
const Value & operator* () const
 Dereference to obtain error. More...
 
const Value * operator-> () const
 Dereference to obtain pointer to error. More...
 
Erroroperator= (const Error &other)
 Assignment.
 
Erroroperator= (const Value &error)
 Assignment.
 

Constructor & Destructor Documentation

template<class E>
Sawyer::Error< E >::Error ( const Error< E > &  other)
inline

Copy constructor.

Definition at line 168 of file Result.h.

template<class E>
Sawyer::Error< E >::Error ( const E &  error)
inlineexplicit

Construct from a value.

Definition at line 172 of file Result.h.

Member Function Documentation

template<class E>
const Value& Sawyer::Error< E >::operator* ( ) const
inline

Dereference to obtain error.

Definition at line 189 of file Result.h.

template<class E>
const Value* Sawyer::Error< E >::operator-> ( ) const
inline

Dereference to obtain pointer to error.

Definition at line 194 of file Result.h.


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