00001 00006 /*----------------------------------------------------------------------------*/ 00007 /* C Tool Box: Designed and implemented by: */ 00008 /* Walter F.J. Mueller Gesellschaft fuer Schwerionenforschung (GSI) */ 00009 /* Planckstrasse 1, D-64291 Darmstadt, Germany */ 00010 /* Email: W.F.J.Mueller@gsi.de */ 00011 /* WWW: http://www-kp3.gsi.de/www/kp3/people/mueller.html */ 00012 /*------------------------------------------+---------------------------------*/ 00013 00014 //------------------------------------------+----------------------------------- 00016 00017 inline CTBfallibleBase::CTBfallibleBase(bool b_valid) 00018 : mb_valid(b_valid) 00019 {} 00020 00021 //------------------------------------------+----------------------------------- 00023 00024 inline bool CTBfallibleBase::Failed() const 00025 { 00026 return !mb_valid; 00027 } 00028 00029 //------------------------------------------+----------------------------------- 00031 00032 inline bool CTBfallibleBase::Valid() const 00033 { 00034 return mb_valid; 00035 } 00036 00037 //------------------------------------------+----------------------------------- 00039 00040 inline void CTBfallibleBase::Invalidate() 00041 { 00042 mb_valid = false; 00043 return; 00044 } 00045