hudson::option< T > Struct Template Reference

#include <option.h>

List of all members.

Public Member Functions

 option ()
 option (const T &t)
 option (const option &other)
optionoperator= (const option &other)
bool isSome () const
bool isNone () const
const T & valOf () const
const T & operator * () const


Detailed Description

template<class T>
struct hudson::option< T >

Provide functionality equivalent to the SML option type. Requires T to have a copy constructor.


Constructor & Destructor Documentation

template<class T>
hudson::option< T >::option  )  [inline]
 

template<class T>
hudson::option< T >::option const T &  t  )  [inline]
 

template<class T>
hudson::option< T >::option const option< T > &  other  )  [inline]
 


Member Function Documentation

template<class T>
bool hudson::option< T >::isNone  )  const [inline]
 

template<class T>
bool hudson::option< T >::isSome  )  const [inline]
 

template<class T>
const T& hudson::option< T >::operator *  )  const [inline]
 

template<class T>
option& hudson::option< T >::operator= const option< T > &  other  )  [inline]
 

template<class T>
const T& hudson::option< T >::valOf  )  const [inline]
 


The documentation for this struct was generated from the following file:
Generated on Thu Mar 27 19:04:16 2008 by  doxygen 1.4.6