Public Member Functions | Private Attributes
Catch::Option< T > Class Template Reference

#include <catch.hpp>

List of all members.

Public Member Functions

bool none () const
 operator SafeBool::type () const
bool operator! () const
Toperator* ()
T const & operator* () const
Toperator-> ()
const Toperator-> () const
Optionoperator= (Option const &_other)
Optionoperator= (T const &_value)
 Option ()
 Option (T const &_value)
 Option (Option const &_other)
void reset ()
bool some () const
T valueOr (T const &defaultValue) const
 ~Option ()

Private Attributes

TnullableValue
char storage [sizeof(T)]

Detailed Description

template<typename T>
class Catch::Option< T >

Definition at line 2732 of file catch.hpp.


Constructor & Destructor Documentation

template<typename T >
Catch::Option< T >::Option ( ) [inline]

Definition at line 2734 of file catch.hpp.

template<typename T >
Catch::Option< T >::Option ( T const &  _value) [inline]

Definition at line 2735 of file catch.hpp.

template<typename T >
Catch::Option< T >::Option ( Option< T > const &  _other) [inline]

Definition at line 2738 of file catch.hpp.

template<typename T >
Catch::Option< T >::~Option ( ) [inline]

Definition at line 2742 of file catch.hpp.


Member Function Documentation

template<typename T >
bool Catch::Option< T >::none ( ) const [inline]

Definition at line 2776 of file catch.hpp.

template<typename T >
Catch::Option< T >::operator SafeBool::type ( ) const [inline]

Definition at line 2779 of file catch.hpp.

template<typename T >
bool Catch::Option< T >::operator! ( ) const [inline]

Definition at line 2778 of file catch.hpp.

template<typename T >
T& Catch::Option< T >::operator* ( ) [inline]

Definition at line 2766 of file catch.hpp.

template<typename T >
T const& Catch::Option< T >::operator* ( ) const [inline]

Definition at line 2767 of file catch.hpp.

template<typename T >
T* Catch::Option< T >::operator-> ( ) [inline]

Definition at line 2768 of file catch.hpp.

template<typename T >
const T* Catch::Option< T >::operator-> ( ) const [inline]

Definition at line 2769 of file catch.hpp.

template<typename T >
Option& Catch::Option< T >::operator= ( Option< T > const &  _other) [inline]

Definition at line 2746 of file catch.hpp.

template<typename T >
Option& Catch::Option< T >::operator= ( T const &  _value) [inline]

Definition at line 2754 of file catch.hpp.

template<typename T >
void Catch::Option< T >::reset ( ) [inline]

Definition at line 2760 of file catch.hpp.

template<typename T >
bool Catch::Option< T >::some ( ) const [inline]

Definition at line 2775 of file catch.hpp.

template<typename T >
T Catch::Option< T >::valueOr ( T const &  defaultValue) const [inline]

Definition at line 2771 of file catch.hpp.


Member Data Documentation

template<typename T >
T* Catch::Option< T >::nullableValue [private]

Definition at line 2784 of file catch.hpp.

template<typename T >
char Catch::Option< T >::storage[sizeof(T)] [private]

Definition at line 2785 of file catch.hpp.


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


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:10