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

#include <nan.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 Nan::Maybe< T >

Definition at line 51 of file nan.h.


Constructor & Destructor Documentation

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

Definition at line 77 of file nan.h.

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

Definition at line 78 of file nan.h.


Member Function Documentation

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

Definition at line 56 of file nan.h.

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

Definition at line 63 of file nan.h.

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

Definition at line 54 of file nan.h.

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

Definition at line 53 of file nan.h.

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

Definition at line 72 of file nan.h.

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

Definition at line 67 of file nan.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 Nan::Maybe< T >::has_value_ [private]

Definition at line 79 of file nan.h.

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

Definition at line 80 of file nan.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