BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkExtInterface Class Referenceabstract

#include <TrkExtInterface.h>

Inheritance diagram for TrkExtInterface:

Public Member Functions

 TrkExtInterface ()
virtual ~TrkExtInterface ()
virtual bool attach (TrkRep *)
virtual bool attach (const TrkRep *)
bool isAttached () const
bool nonConstAttachment () const
 TrkExtInterface ()
virtual ~TrkExtInterface ()
virtual bool attach (TrkRep *)
virtual bool attach (const TrkRep *)
bool isAttached () const
bool nonConstAttachment () const
 TrkExtInterface ()
virtual ~TrkExtInterface ()
virtual bool attach (TrkRep *)
virtual bool attach (const TrkRep *)
bool isAttached () const
bool nonConstAttachment () const

Protected Member Functions

TrkRepmyRep ()
const TrkRepmyConstRep () const
virtual const IfdKeymyKey () const =0
void setRep (const TrkRep *)
void setRep (TrkRep *)
TrkRepmyRep ()
const TrkRepmyConstRep () const
virtual const IfdKeymyKey () const =0
void setRep (const TrkRep *)
void setRep (TrkRep *)
TrkRepmyRep ()
const TrkRepmyConstRep () const
virtual const IfdKeymyKey () const =0
void setRep (const TrkRep *)
void setRep (TrkRep *)

Detailed Description

Constructor & Destructor Documentation

◆ TrkExtInterface() [1/3]

TrkExtInterface::TrkExtInterface ( )

Definition at line 22 of file TrkExtInterface.cxx.

22 : _myRep( 0 ), _nonconst( false ) {
23 //------------------------------------------------------------------------
24}

Referenced by myKey(), and setRep().

◆ ~TrkExtInterface() [1/3]

TrkExtInterface::~TrkExtInterface ( )
virtual

Definition at line 27 of file TrkExtInterface.cxx.

27 {
28 //------------------------------------------------------------------------
29}

◆ TrkExtInterface() [2/3]

TrkExtInterface::TrkExtInterface ( )

◆ ~TrkExtInterface() [2/3]

virtual TrkExtInterface::~TrkExtInterface ( )
virtual

◆ TrkExtInterface() [3/3]

TrkExtInterface::TrkExtInterface ( )

◆ ~TrkExtInterface() [3/3]

virtual TrkExtInterface::~TrkExtInterface ( )
virtual

Member Function Documentation

◆ attach() [1/6]

bool TrkExtInterface::attach ( const TrkRep * newRep)
virtual

Definition at line 44 of file TrkExtInterface.cxx.

44 {
45 //------------------------------------------------------------------------
46 bool retval( false );
47 if ( myKey() == newRep->myKey() )
48 {
49 setRep( newRep );
50 retval = true;
51 }
52 return retval;
53}
void setRep(const TrkRep *)
virtual const IfdKey & myKey() const =0
virtual const IfdKey & myKey() const
Definition TrkRep.cxx:251

◆ attach() [2/6]

virtual bool TrkExtInterface::attach ( const TrkRep * )
virtual

◆ attach() [3/6]

virtual bool TrkExtInterface::attach ( const TrkRep * )
virtual

◆ attach() [4/6]

bool TrkExtInterface::attach ( TrkRep * newRep)
virtual

Definition at line 32 of file TrkExtInterface.cxx.

32 {
33 //------------------------------------------------------------------------
34 bool retval( false );
35 if ( myKey() == newRep->myKey() )
36 {
37 setRep( newRep );
38 retval = true;
39 }
40 return retval;
41}

Referenced by TrkRecoTrk::attach(), and TrkRecoTrk::attach().

◆ attach() [5/6]

virtual bool TrkExtInterface::attach ( TrkRep * )
virtual

◆ attach() [6/6]

virtual bool TrkExtInterface::attach ( TrkRep * )
virtual

◆ isAttached() [1/3]

bool TrkExtInterface::isAttached ( ) const
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkExtInterface.h.

35{ return _myRep != 0; }

◆ isAttached() [2/3]

bool TrkExtInterface::isAttached ( ) const
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkExtInterface.h.

35{ return _myRep != 0; }

◆ isAttached() [3/3]

bool TrkExtInterface::isAttached ( ) const
inline

Definition at line 35 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkExtInterface.h.

35{ return _myRep != 0; }

◆ myConstRep() [1/3]

const TrkRep * TrkExtInterface::myConstRep ( ) const
protected

Definition at line 82 of file TrkExtInterface.cxx.

82 {
83 //------------------------------------------------------------------------
84 if ( 0 == _myRep )
85 {
86 std::cout << "ErrMsg(error) "
87 << "Cannot use interface without attached rep." << std::endl;
88 return 0;
89 }
90 return _myRep;
91}

◆ myConstRep() [2/3]

const TrkRep * TrkExtInterface::myConstRep ( ) const
protected

◆ myConstRep() [3/3]

const TrkRep * TrkExtInterface::myConstRep ( ) const
protected

◆ myKey() [1/3]

virtual const IfdKey & TrkExtInterface::myKey ( ) const
protectedpure virtual

Implemented in TrkDeadInterface, TrkDeadInterface, and TrkDeadInterface.

Referenced by attach(), and attach().

◆ myKey() [2/3]

virtual const IfdKey & TrkExtInterface::myKey ( ) const
protectedpure virtual

◆ myKey() [3/3]

virtual const IfdKey & TrkExtInterface::myKey ( ) const
protectedpure virtual

◆ myRep() [1/3]

TrkRep * TrkExtInterface::myRep ( )
protected

Definition at line 66 of file TrkExtInterface.cxx.

66 {
67 //------------------------------------------------------------------------
68 if ( _myRep != 0 && _nonconst ) return _myRep;
69 else if ( 0 == _myRep )
70 {
71 std::cout << "ErrMsg(error) "
72 << "Cannot use interface without attached rep." << std::endl;
73 return 0;
74 }
75 else
76 std::cout << "ErrMsg(error) "
77 << "Cannot return non-const rep after const attachment" << std::endl;
78 return 0;
79}

◆ myRep() [2/3]

TrkRep * TrkExtInterface::myRep ( )
protected

◆ myRep() [3/3]

TrkRep * TrkExtInterface::myRep ( )
protected

◆ nonConstAttachment() [1/3]

bool TrkExtInterface::nonConstAttachment ( ) const
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkBase/TrkExtInterface.h.

36{ return _nonconst; }

◆ nonConstAttachment() [2/3]

bool TrkExtInterface::nonConstAttachment ( ) const
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-opt/include/TrkBase/TrkExtInterface.h.

36{ return _nonconst; }

◆ nonConstAttachment() [3/3]

bool TrkExtInterface::nonConstAttachment ( ) const
inline

Definition at line 36 of file Reconstruction/MdcPatRec/TrkBase/include/TrkBase/TrkExtInterface.h.

36{ return _nonconst; }

◆ setRep() [1/6]

void TrkExtInterface::setRep ( const TrkRep * newRep)
protected

Definition at line 55 of file TrkExtInterface.cxx.

55 {
56 _myRep = (TrkRep*)newRep;
57 _nonconst = false;
58}

Referenced by attach(), and attach().

◆ setRep() [2/6]

void TrkExtInterface::setRep ( const TrkRep * )
protected

◆ setRep() [3/6]

void TrkExtInterface::setRep ( const TrkRep * )
protected

◆ setRep() [4/6]

void TrkExtInterface::setRep ( TrkRep * newRep)
protected

Definition at line 60 of file TrkExtInterface.cxx.

60 {
61 _myRep = newRep;
62 _nonconst = true;
63}

◆ setRep() [5/6]

void TrkExtInterface::setRep ( TrkRep * )
protected

◆ setRep() [6/6]

void TrkExtInterface::setRep ( TrkRep * )
protected

The documentation for this class was generated from the following files: