Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TrkDeadInterface Class Reference

#include <TrkDeadInterface.h>

Inheritance diagram for TrkDeadInterface:

TrkExtInterface TrkExtInterface List of all members.

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 IfdKeymyKey () const
virtual const IfdKeymyKey () const
bool nonConstAttachment () const
bool nonConstAttachment () const
 TrkDeadInterface ()
 TrkDeadInterface ()
virtual ~TrkDeadInterface ()
virtual ~TrkDeadInterface ()

Protected Member Functions

const TrkRepmyConstRep () const
const TrkRepmyConstRep () const
TrkRepmyRep ()
TrkRepmyRep ()
void setRep (TrkRep *)
void setRep (const TrkRep *)
void setRep (TrkRep *)
void setRep (const TrkRep *)

Private Attributes

IfdIntKey _mykey

Constructor & Destructor Documentation

TrkDeadInterface::TrkDeadInterface  )  [inline]
 

00023 : _mykey(0) {;}

virtual TrkDeadInterface::~TrkDeadInterface  )  [inline, virtual]
 

00024 {;}

TrkDeadInterface::TrkDeadInterface  )  [inline]
 

00023 : _mykey(0) {;}

virtual TrkDeadInterface::~TrkDeadInterface  )  [inline, virtual]
 

00024 {;}


Member Function Documentation

virtual bool TrkExtInterface::attach const TrkRep  )  [virtual, inherited]
 

virtual bool TrkExtInterface::attach TrkRep  )  [virtual, inherited]
 

bool TrkExtInterface::attach const TrkRep  )  [virtual, inherited]
 

00046                                             {
00047 //------------------------------------------------------------------------
00048   bool retval(false);
00049   if (myKey() == newRep->myKey()) {
00050     setRep(newRep);
00051     retval = true;
00052   }
00053   return retval;
00054 }

bool TrkExtInterface::attach TrkRep  )  [virtual, inherited]
 

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]
 

00035 {return _myRep != 0;}

bool TrkExtInterface::isAttached  )  const [inline, inherited]
 

00035 {return _myRep != 0;}

const TrkRep* TrkExtInterface::myConstRep  )  const [protected, inherited]
 

const TrkRep * TrkExtInterface::myConstRep  )  const [protected, inherited]
 

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.

00025 { return _mykey; }

virtual const IfdKey& TrkDeadInterface::myKey  )  const [inline, virtual]
 

Implements TrkExtInterface.

00025 { return _mykey; }

TrkRep* TrkExtInterface::myRep  )  [protected, inherited]
 

TrkRep * TrkExtInterface::myRep  )  [protected, inherited]
 

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]
 

00036 { return _nonconst; }

bool TrkExtInterface::nonConstAttachment  )  const [inline, inherited]
 

00036 { return _nonconst; }

void TrkExtInterface::setRep TrkRep  )  [protected, inherited]
 

void TrkExtInterface::setRep const TrkRep  )  [protected, inherited]
 

void TrkExtInterface::setRep TrkRep  )  [protected, inherited]
 

00063                                       {
00064   _myRep = newRep;   
00065   _nonconst = true;
00066 }

void TrkExtInterface::setRep const TrkRep  )  [protected, inherited]
 

00057                                             {
00058   _myRep = (TrkRep*) newRep;   
00059   _nonconst = false;
00060 }


Member Data Documentation

IfdIntKey TrkDeadInterface::_mykey [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:06:23 2011 for BOSS6.5.5 by  doxygen 1.3.9.1