Public Member Functions | Private Member Functions | Private Attributes | Friends
Maybe< T > Class Template Reference

#include <nan_maybe_pre_43_inl.h>

List of all members.

Public Member Functions

FromJust () const
FromMaybe (const T &default_value) const
bool IsJust () const
bool IsNothing () const
bool operator!= (const Maybe &other) const
bool operator== (const Maybe &other) const

Private Member Functions

 Maybe ()
 Maybe (const T &t)

Private Attributes

bool has_value_
value_

Friends

template<typename U >
Maybe< U > Just (const U &u)
template<typename U >
Maybe< U > Nothing ()

Detailed Description

template<typename T>
class Maybe< T >

Definition at line 50 of file nan_maybe_pre_43_inl.h.


Constructor & Destructor Documentation

template<typename T>
Maybe< T >::Maybe ( ) [inline, private]

Definition at line 76 of file nan_maybe_pre_43_inl.h.

template<typename T>
Maybe< T >::Maybe ( const T &  t) [inline, explicit, private]

Definition at line 77 of file nan_maybe_pre_43_inl.h.


Member Function Documentation

template<typename T>
T Maybe< T >::FromJust ( ) const [inline]

Definition at line 55 of file nan_maybe_pre_43_inl.h.

template<typename T>
T Maybe< T >::FromMaybe ( const T &  default_value) const [inline]

Definition at line 62 of file nan_maybe_pre_43_inl.h.

template<typename T>
bool Maybe< T >::IsJust ( ) const [inline]

Definition at line 53 of file nan_maybe_pre_43_inl.h.

template<typename T>
bool Maybe< T >::IsNothing ( ) const [inline]

Definition at line 52 of file nan_maybe_pre_43_inl.h.

template<typename T>
bool Maybe< T >::operator!= ( const Maybe< T > &  other) const [inline]

Definition at line 71 of file nan_maybe_pre_43_inl.h.

template<typename T>
bool Maybe< T >::operator== ( const Maybe< T > &  other) const [inline]

Definition at line 66 of file nan_maybe_pre_43_inl.h.


Friends And Related Function Documentation

template<typename T>
template<typename U >
Maybe<U> Just ( const U &  u) [friend]
template<typename T>
template<typename U >
Maybe<U> Nothing ( ) [friend]

Definition at line 89 of file nan.h.


Member Data Documentation

template<typename T>
bool Maybe< T >::has_value_ [private]

Definition at line 78 of file nan_maybe_pre_43_inl.h.

template<typename T>
T Maybe< T >::value_ [private]

Definition at line 79 of file nan_maybe_pre_43_inl.h.


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


dji_ronin
Author(s):
autogenerated on Sat Jun 8 2019 20:15:32