#include <TrkDeadInterface.h>
Inheritance diagram for TrkDeadInterface:
Public Member Functions | |
virtual bool | attach (const TrkRep *) |
virtual bool | attach (TrkRep *) |
virtual bool | attach (const TrkRep *) |
virtual bool | attach (TrkRep *) |
bool | isAttached () const |
bool | isAttached () const |
virtual const IfdKey & | myKey () const |
virtual const IfdKey & | myKey () const |
bool | nonConstAttachment () const |
bool | nonConstAttachment () const |
TrkDeadInterface () | |
TrkDeadInterface () | |
virtual | ~TrkDeadInterface () |
virtual | ~TrkDeadInterface () |
Protected Member Functions | |
const TrkRep * | myConstRep () const |
const TrkRep * | myConstRep () const |
TrkRep * | myRep () |
TrkRep * | myRep () |
void | setRep (TrkRep *) |
void | setRep (const TrkRep *) |
void | setRep (TrkRep *) |
void | setRep (const TrkRep *) |
Private Attributes | |
IfdIntKey | _mykey |
|
00023 : _mykey(0) {;}
|
|
00024 {;}
|
|
00023 : _mykey(0) {;}
|
|
00024 {;}
|
|
|
|
|
|
00046 { 00047 //------------------------------------------------------------------------ 00048 bool retval(false); 00049 if (myKey() == newRep->myKey()) { 00050 setRep(newRep); 00051 retval = true; 00052 } 00053 return retval; 00054 }
|
|
00034 { 00035 //------------------------------------------------------------------------ 00036 bool retval(false); 00037 if (myKey() == newRep->myKey()) { 00038 setRep(newRep); 00039 retval = true; 00040 } 00041 return retval; 00042 }
|
|
00035 {return _myRep != 0;}
|
|
00035 {return _myRep != 0;}
|
|
|
|
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 }
|
|
Implements TrkExtInterface. 00025 { return _mykey; }
|
|
Implements TrkExtInterface. 00025 { return _mykey; }
|
|
|
|
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 }
|
|
00036 { return _nonconst; }
|
|
00036 { return _nonconst; }
|
|
|
|
|
|
00063 {
00064 _myRep = newRep;
00065 _nonconst = true;
00066 }
|
|
00057 { 00058 _myRep = (TrkRep*) newRep; 00059 _nonconst = false; 00060 }
|
|
|