CustusX  22.04-rc5
An IGT application
Catch::Option< T > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Option< T >:
Catch::LazyStat< T >

Public Member Functions

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

Detailed Description

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

Definition at line 2257 of file catch.hpp.

Constructor & Destructor Documentation

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

Definition at line 2259 of file catch.hpp.

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

Definition at line 2260 of file catch.hpp.

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

Definition at line 2263 of file catch.hpp.

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

Definition at line 2267 of file catch.hpp.

Member Function Documentation

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

Definition at line 2299 of file catch.hpp.

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

Definition at line 2302 of file catch.hpp.

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

Definition at line 2301 of file catch.hpp.

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

Definition at line 2289 of file catch.hpp.

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

Definition at line 2290 of file catch.hpp.

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

Definition at line 2291 of file catch.hpp.

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

Definition at line 2292 of file catch.hpp.

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

Definition at line 2271 of file catch.hpp.

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

Definition at line 2277 of file catch.hpp.

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

Definition at line 2283 of file catch.hpp.

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

Definition at line 2298 of file catch.hpp.

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

Definition at line 2294 of file catch.hpp.


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