CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
BesPhysicalPointer Class Reference

#include <BesPhysicalPointer.h>

+ Inheritance diagram for BesPhysicalPointer:

Public Member Functions

 BesPhysicalPointer (TGeoPhysicalNode *pointer=NULL)
 
void set (TGeoPhysicalNode *spn)
 
TGeoPhysicalNode * get () const
 
 operator TGeoPhysicalNode * () const
 
TGeoPhysicalNode * operator-> () const
 
TGeoPhysicalNode & operator* () const
 
 operator bool () const
 
TGeoPhysicalNode * operator= (TGeoPhysicalNode *pointer)
 
 BesPhysicalPointer (TGeoPhysicalNode *pointer=NULL)
 
void set (TGeoPhysicalNode *spn)
 
TGeoPhysicalNode * get () const
 
 operator TGeoPhysicalNode * () const
 
TGeoPhysicalNode * operator-> () const
 
TGeoPhysicalNode & operator* () const
 
 operator bool () const
 
TGeoPhysicalNode * operator= (TGeoPhysicalNode *pointer)
 

Protected Attributes

TGeoPhysicalNode * pNode
 

Detailed Description

Constructor & Destructor Documentation

◆ BesPhysicalPointer() [1/2]

BesPhysicalPointer::BesPhysicalPointer ( TGeoPhysicalNode *  pointer = NULL)
inline

◆ BesPhysicalPointer() [2/2]

BesPhysicalPointer::BesPhysicalPointer ( TGeoPhysicalNode *  pointer = NULL)
inline

Definition at line 15 of file InstallArea/include/BesVisLib/BesVisLib/BesPhysicalPointer.h.

16 : pNode(pointer) {}

Member Function Documentation

◆ get() [1/2]

TGeoPhysicalNode * BesPhysicalPointer::get ( ) const

Definition at line 17 of file BesPhysicalPointer.cxx.

18{
19 //std::cout << "BesPhysicalPointer::get() called" << std::endl;
20 return pNode;
21}

Referenced by TofROOTGeo::SetVisTofHits().

◆ get() [2/2]

TGeoPhysicalNode * BesPhysicalPointer::get ( ) const

◆ operator bool() [1/2]

BesPhysicalPointer::operator bool ( ) const

Definition at line 36 of file BesPhysicalPointer.cxx.

37{
38 if (pNode) return true;
39 else return false;
40}

◆ operator bool() [2/2]

BesPhysicalPointer::operator bool ( ) const

◆ operator TGeoPhysicalNode *() [1/2]

BesPhysicalPointer::operator TGeoPhysicalNode * ( ) const

Definition at line 22 of file BesPhysicalPointer.cxx.

23{
24 return pNode;
25}

◆ operator TGeoPhysicalNode *() [2/2]

BesPhysicalPointer::operator TGeoPhysicalNode * ( ) const

◆ operator*() [1/2]

TGeoPhysicalNode & BesPhysicalPointer::operator* ( ) const

Definition at line 31 of file BesPhysicalPointer.cxx.

32{
33 return *pNode;
34}

◆ operator*() [2/2]

TGeoPhysicalNode & BesPhysicalPointer::operator* ( ) const

◆ operator->() [1/2]

TGeoPhysicalNode * BesPhysicalPointer::operator-> ( ) const

Definition at line 26 of file BesPhysicalPointer.cxx.

27{
28 //std::cout << "BesPhysicalPointer::operator -> () called" << std::endl;
29 return pNode;
30}

◆ operator->() [2/2]

TGeoPhysicalNode * BesPhysicalPointer::operator-> ( ) const

◆ operator=() [1/2]

TGeoPhysicalNode * BesPhysicalPointer::operator= ( TGeoPhysicalNode *  pointer)

Definition at line 41 of file BesPhysicalPointer.cxx.

42{
43 //std::cout << "BesPhysicalPointer::operator = () called" << std::endl;
44 pNode = pointer;
45 return pNode;
46}

◆ operator=() [2/2]

TGeoPhysicalNode * BesPhysicalPointer::operator= ( TGeoPhysicalNode *  pointer)

◆ set() [1/2]

void BesPhysicalPointer::set ( TGeoPhysicalNode *  spn)

Definition at line 12 of file BesPhysicalPointer.cxx.

13{
14 //std::cout << "BesPhysicalPointer::set() called" << std::endl;
15 pNode = spn;
16}

◆ set() [2/2]

void BesPhysicalPointer::set ( TGeoPhysicalNode *  spn)

Member Data Documentation

◆ pNode


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