#include <TrkDeadInterface.h>
Inheritance diagram for TrkDeadInterface:
Public Member Functions | |
TrkDeadInterface () | |
virtual | ~TrkDeadInterface () |
virtual const IfdKey & | myKey () const |
virtual bool | attach (TrkRep *) |
virtual bool | attach (const TrkRep *) |
bool | isAttached () const |
bool | nonConstAttachment () const |
Protected Member Functions | |
TrkRep * | myRep () |
const TrkRep * | myConstRep () const |
void | setRep (const TrkRep *) |
void | setRep (TrkRep *) |
Private Attributes | |
IfdIntKey | _mykey |
Definition at line 21 of file TrkDeadInterface.h.
TrkDeadInterface::TrkDeadInterface | ( | ) | [inline] |
virtual TrkDeadInterface::~TrkDeadInterface | ( | ) | [inline, virtual] |
Definition at line 46 of file TrkExtInterface.cxx.
References TrkRep::myKey(), TrkExtInterface::myKey(), and TrkExtInterface::setRep().
00046 { 00047 //------------------------------------------------------------------------ 00048 bool retval(false); 00049 if (myKey() == newRep->myKey()) { 00050 setRep(newRep); 00051 retval = true; 00052 } 00053 return retval; 00054 }
Definition at line 34 of file TrkExtInterface.cxx.
References TrkRep::myKey(), TrkExtInterface::myKey(), and TrkExtInterface::setRep().
Referenced by TrkRecoTrk::attach().
00034 { 00035 //------------------------------------------------------------------------ 00036 bool retval(false); 00037 if (myKey() == newRep->myKey()) { 00038 setRep(newRep); 00039 retval = true; 00040 } 00041 return retval; 00042 }
bool TrkExtInterface::isAttached | ( | ) | const [inline, inherited] |
Definition at line 35 of file TrkExtInterface.h.
References TrkExtInterface::_myRep.
00035 {return _myRep != 0;}
const TrkRep * TrkExtInterface::myConstRep | ( | ) | const [protected, inherited] |
Definition at line 86 of file TrkExtInterface.cxx.
References TrkExtInterface::_myRep.
00086 { 00087 //------------------------------------------------------------------------ 00088 if (0 == _myRep) { 00089 std::cout<<"ErrMsg(error) "<< "Cannot use interface without attached rep." 00090 << std::endl; 00091 return 0; 00092 } 00093 return _myRep; 00094 }
virtual const IfdKey& TrkDeadInterface::myKey | ( | ) | const [inline, virtual] |
Implements TrkExtInterface.
Definition at line 25 of file TrkDeadInterface.h.
References _mykey.
00025 { return _mykey; }
TrkRep * TrkExtInterface::myRep | ( | ) | [protected, inherited] |
Definition at line 70 of file TrkExtInterface.cxx.
References TrkExtInterface::_myRep, and TrkExtInterface::_nonconst.
00070 { 00071 //------------------------------------------------------------------------ 00072 if(_myRep != 0 && _nonconst) 00073 return _myRep; 00074 else if (0 == _myRep) { 00075 std::cout<<"ErrMsg(error) "<< "Cannot use interface without attached rep." 00076 << std::endl; 00077 return 0; 00078 } else 00079 std::cout<<"ErrMsg(error) "<< "Cannot return non-const rep after const attachment" 00080 << std::endl; 00081 return 0; 00082 }
bool TrkExtInterface::nonConstAttachment | ( | ) | const [inline, inherited] |
Definition at line 36 of file TrkExtInterface.h.
References TrkExtInterface::_nonconst.
00036 { return _nonconst; }
void TrkExtInterface::setRep | ( | TrkRep * | ) | [protected, inherited] |
Definition at line 63 of file TrkExtInterface.cxx.
References TrkExtInterface::_myRep, and TrkExtInterface::_nonconst.
void TrkExtInterface::setRep | ( | const TrkRep * | ) | [protected, inherited] |
Definition at line 57 of file TrkExtInterface.cxx.
References TrkExtInterface::_myRep, and TrkExtInterface::_nonconst.
Referenced by TrkExtInterface::attach().
IfdIntKey TrkDeadInterface::_mykey [private] |