Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBfallible Class Template Reference

Fallible objects. **. More...

#include <CTBfallible.hxx>

Inheritance diagram for CTBfallible:

Inheritance graph
[legend]
Collaboration diagram for CTBfallible:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTBfallible ()
 CTBfallible (const T &value)
T ElseDefaultTo (const T &default_value)
 operator T () const

Private Attributes

T m_value

Detailed Description

template<class T>
class CTBfallible< T >

Fallible objects. **.

Credits:
Adapted from Barton & Nackman "Scientific and Engeneering C++".

Definition at line 19 of file CTBfallible.hxx.


Constructor & Destructor Documentation

template<class T>
CTBfallible< T >::CTBfallible [inline]
 

Construct invalid.

Definition at line 26 of file CTBfallible.icc.

template<class T>
CTBfallible< T >::CTBfallible const T & value [inline]
 

Construct valid.

Definition at line 34 of file CTBfallible.icc.


Member Function Documentation

template<class T>
T CTBfallible< T >::ElseDefaultTo const T & default_value [inline]
 

Returns value if valid, else default.

Definition at line 53 of file CTBfallible.icc.

template<class T>
CTBfallible< T >::operator T const [inline]
 

Convert to T.

Definition at line 43 of file CTBfallible.icc.


Member Data Documentation

template<class T>
T CTBfallible::m_value [private]
 

Definition at line 29 of file CTBfallible.hxx.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:13:39 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001