Public Member Functions | Private Attributes | List of all members
Catch::Option< T > Class Template Reference

#include <catch.hpp>

Public Member Functions

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

Private Attributes

T * nullableValue
 
char storage [sizeof(T)]
 

Detailed Description

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

Definition at line 4397 of file catch.hpp.

Constructor & Destructor Documentation

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

Definition at line 4399 of file catch.hpp.

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

Definition at line 4400 of file catch.hpp.

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

Definition at line 4403 of file catch.hpp.

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

Definition at line 4407 of file catch.hpp.

Member Function Documentation

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

Definition at line 4441 of file catch.hpp.

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

Definition at line 4444 of file catch.hpp.

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

Definition at line 4443 of file catch.hpp.

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

Definition at line 4431 of file catch.hpp.

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

Definition at line 4432 of file catch.hpp.

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

Definition at line 4433 of file catch.hpp.

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

Definition at line 4434 of file catch.hpp.

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

Definition at line 4411 of file catch.hpp.

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

Definition at line 4419 of file catch.hpp.

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

Definition at line 4425 of file catch.hpp.

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

Definition at line 4440 of file catch.hpp.

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

Definition at line 4436 of file catch.hpp.

Member Data Documentation

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

Definition at line 4449 of file catch.hpp.

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

Definition at line 4450 of file catch.hpp.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:35