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

CTBfallibleBase Class Reference

Base class for CTBfallible objects. **. More...

#include "CTBfallibleBase.hxx"

Inheritance diagram for CTBfallibleBase:

Inheritance graph
[legend]
List of all members.

Public Methods

 CTBfallibleBase (bool b_valid=false)
bool Failed () const
bool Valid () const
void Invalidate ()

Protected Methods

void ThrowError () const

Private Attributes

bool mb_valid

Detailed Description

Base class for CTBfallible objects. **.

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

Definition at line 16 of file CTBfallibleBase.hxx.


Constructor & Destructor Documentation

CTBfallibleBase::CTBfallibleBase bool b_valid = false [inline]
 

Construct with valid status (also default).

Definition at line 17 of file CTBfallibleBase.icc.


Member Function Documentation

bool CTBfallibleBase::Failed const [inline]
 

Return true if invalid.

Definition at line 24 of file CTBfallibleBase.icc.

Referenced by CTBfallible::operator T().

bool CTBfallibleBase::Valid const [inline]
 

Return true if valid.

Definition at line 32 of file CTBfallibleBase.icc.

Referenced by CTBfallible::ElseDefaultTo().

void CTBfallibleBase::Invalidate [inline]
 

Set fallible status to not valid.

Definition at line 40 of file CTBfallibleBase.icc.

void CTBfallibleBase::ThrowError const [protected]
 

Throw exception.

Definition at line 29 of file CTBfallibleBase.cxx.

Referenced by CTBfallible::operator T().


Member Data Documentation

bool CTBfallibleBase::mb_valid [private]
 

Definition at line 29 of file CTBfallibleBase.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