ROSE 0.11.145.147
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 170 of file Result.h.

#include <Sawyer/Result.h>

Public Types

using Value = E
 

Public Member Functions

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

Member Typedef Documentation

◆ Value

template<class E >
using Sawyer::Error< E >::Value = E

Definition at line 172 of file Result.h.

Constructor & Destructor Documentation

◆ Error() [1/2]

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

Copy constructor.

Definition at line 201 of file Result.h.

◆ Error() [2/2]

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

Construct from a value.

Definition at line 205 of file Result.h.

Member Function Documentation

◆ operator=() [1/2]

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

Assignment.

Definition at line 211 of file Result.h.

◆ operator=() [2/2]

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

Assignment.

Definition at line 215 of file Result.h.

◆ operator*()

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

Dereference to obtain error.

Definition at line 222 of file Result.h.

◆ operator->()

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

Dereference to obtain pointer to error.

Definition at line 227 of file Result.h.


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