BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TreeAddress Class Reference

#include <GaudiKernel/TreeAddress.h>

+ Inheritance diagram for TreeAddress:

Public Member Functions

 TreeAddress ()
 Dummy constructor.
 
 TreeAddress (const TreeAddress &copy)
 Standard Constructor.
 
 TreeAddress (long svc, const CLID &clid, DatabaseRecord &records, const unsigned long *ipar)
 Standard Constructor.
 
virtual ~TreeAddress ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
virtual IRegistry * registry () const
 Pointer to directory.
 
virtual void setRegistry (IRegistry *pRegistry)
 Set pointer to directory.
 
const CLID & clID () const
 Access : Retrieve class ID of the link.
 
void setClID (const CLID &clid)
 Access : Set class ID of the link.
 
long svcType () const
 Access : retrieve the storage type of the class id.
 
void setSvcType (long typ)
 Access : set the storage type of the class id.
 
virtual const std::string * par () const
 
virtual DatabaseRecordpp ()
 
virtual const unsigned long * ipar () const
 Retrieve integer parameters.
 
void setRunFrom (int runFrom)
 set run from
 
void setRunTo (int runTo)
 set run to
 
int getRunFrom ()
 get run from
 
int getRunTo ()
 get run to
 
 TreeAddress ()
 Dummy constructor.
 
 TreeAddress (const TreeAddress &copy)
 Standard Constructor.
 
 TreeAddress (long svc, const CLID &clid, DatabaseRecord &records, const unsigned long *ipar)
 Standard Constructor.
 
virtual ~TreeAddress ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
virtual IRegistry * registry () const
 Pointer to directory.
 
virtual void setRegistry (IRegistry *pRegistry)
 Set pointer to directory.
 
const CLID & clID () const
 Access : Retrieve class ID of the link.
 
void setClID (const CLID &clid)
 Access : Set class ID of the link.
 
long svcType () const
 Access : retrieve the storage type of the class id.
 
void setSvcType (long typ)
 Access : set the storage type of the class id.
 
virtual const std::string * par () const
 
virtual DatabaseRecordpp ()
 
virtual const unsigned long * ipar () const
 Retrieve integer parameters.
 
void setRunFrom (int runFrom)
 set run from
 
void setRunTo (int runTo)
 set run to
 
int getRunFrom ()
 get run from
 
int getRunTo ()
 get run to
 

Protected Attributes

unsigned long m_refCount
 Reference count.
 
long m_svcType
 Storage type.
 
CLID m_clID
 Class id.
 
unsigned long m_ipar [2]
 String parameters to be accessed.
 
unsigned long m_treesize [9]
 
IRegistry * m_pRegistry
 Pointer to corresponding directory.
 
DatabaseRecordm_records
 
int m_runFrom
 
int m_runTo
 

Detailed Description

Tree Transient Address. The generic transient address describes the recipe to load/save a persistent object from/to its transient representation.

Author
Markus Frank
Version
1.0

Definition at line 26 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

Constructor & Destructor Documentation

◆ TreeAddress() [1/6]

TreeAddress::TreeAddress ( )
inline

◆ TreeAddress() [2/6]

TreeAddress::TreeAddress ( const TreeAddress copy)
inline

Standard Constructor.

Definition at line 58 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

59 : IOpaqueAddress(copy),
60 m_refCount(0),
61 m_svcType(copy.m_svcType),
62 m_clID(copy.m_clID),
63 m_pRegistry(copy.m_pRegistry)
64 {
65
66 }
uint32_t copy(const node_t &list, uint32_t *dest, size_t max)
Definition: node.cxx:64

◆ TreeAddress() [3/6]

TreeAddress::TreeAddress ( long  svc,
const CLID &  clid,
DatabaseRecord records,
const unsigned long *  ipar 
)
inline

Standard Constructor.

Definition at line 69 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

74 : m_refCount(0),
75 m_svcType(svc),
76 m_clID(clid),
78 {
79 m_records=&records;
80 m_ipar[0] = ipar[0];
81 m_ipar[1] = ipar[1];
82 }
virtual const unsigned long * ipar() const
Retrieve integer parameters.

◆ ~TreeAddress() [1/2]

virtual TreeAddress::~TreeAddress ( )
inlinevirtual

Standard Destructor.

Definition at line 86 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

86 {
87 }

◆ TreeAddress() [4/6]

TreeAddress::TreeAddress ( )
inline

Dummy constructor.

Definition at line 49 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

50 : m_refCount(0),
51 m_svcType(0),
52 m_clID(0),
54 {
55 // m_ipar[0]=m_ipar[1]=m_ipar[2]=m_ipar[3]=0xFFFFFFFF;
56 }

◆ TreeAddress() [5/6]

TreeAddress::TreeAddress ( const TreeAddress copy)
inline

Standard Constructor.

Definition at line 58 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

59 : IOpaqueAddress(copy),
60 m_refCount(0),
61 m_svcType(copy.m_svcType),
62 m_clID(copy.m_clID),
63 m_pRegistry(copy.m_pRegistry)
64 {
65
66 }

◆ TreeAddress() [6/6]

TreeAddress::TreeAddress ( long  svc,
const CLID &  clid,
DatabaseRecord records,
const unsigned long *  ipar 
)
inline

Standard Constructor.

Definition at line 69 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

74 : m_refCount(0),
75 m_svcType(svc),
76 m_clID(clid),
78 {
79 m_records=&records;
80 m_ipar[0] = ipar[0];
81 m_ipar[1] = ipar[1];
82 }

◆ ~TreeAddress() [2/2]

virtual TreeAddress::~TreeAddress ( )
inlinevirtual

Standard Destructor.

Definition at line 86 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

86 {
87 }

Member Function Documentation

◆ addRef() [1/2]

virtual unsigned long TreeAddress::addRef ( )
inlinevirtual

Add reference to object.

Definition at line 90 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

90 {
91 return ++m_refCount;
92 }

◆ addRef() [2/2]

virtual unsigned long TreeAddress::addRef ( )
inlinevirtual

Add reference to object.

Definition at line 90 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

90 {
91 return ++m_refCount;
92 }

◆ clID() [1/2]

const CLID & TreeAddress::clID ( ) const
inline

Access : Retrieve class ID of the link.

Definition at line 110 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

110 {
111 return m_clID;
112 }

◆ clID() [2/2]

const CLID & TreeAddress::clID ( ) const
inline

Access : Retrieve class ID of the link.

Definition at line 110 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

110 {
111 return m_clID;
112 }

◆ getRunFrom() [1/2]

◆ getRunFrom() [2/2]

int TreeAddress::getRunFrom ( )
inline

get run from

Definition at line 148 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

148 {
149 return m_runFrom;
150 }

◆ getRunTo() [1/2]

◆ getRunTo() [2/2]

int TreeAddress::getRunTo ( )
inline

get run to

Definition at line 152 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

152 {
153 return m_runTo;
154 }

◆ ipar() [1/2]

virtual const unsigned long * TreeAddress::ipar ( ) const
inlinevirtual

Retrieve integer parameters.

Definition at line 135 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

135 {
136 return m_ipar;
137 }

Referenced by TreeAddress().

◆ ipar() [2/2]

virtual const unsigned long * TreeAddress::ipar ( ) const
inlinevirtual

Retrieve integer parameters.

Definition at line 135 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

135 {
136 return m_ipar;
137 }

◆ par() [1/2]

virtual const std::string * TreeAddress::par ( ) const
inlinevirtual

Definition at line 126 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

126 {
127 //return m_par;
128 }

◆ par() [2/2]

virtual const std::string * TreeAddress::par ( ) const
inlinevirtual

Definition at line 126 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

126 {
127 //return m_par;
128 }

◆ pp() [1/2]

◆ pp() [2/2]

virtual DatabaseRecord * TreeAddress::pp ( )
inlinevirtual

Definition at line 130 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

130 {
131 return m_records;
132}

◆ registry() [1/2]

virtual IRegistry * TreeAddress::registry ( ) const
inlinevirtual

Pointer to directory.

Definition at line 102 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

102 {
103 return m_pRegistry;
104 }

◆ registry() [2/2]

virtual IRegistry * TreeAddress::registry ( ) const
inlinevirtual

Pointer to directory.

Definition at line 102 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

102 {
103 return m_pRegistry;
104 }

◆ release() [1/2]

virtual unsigned long TreeAddress::release ( )
inlinevirtual

release reference to object

Definition at line 94 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

94 {
95 int cnt = --m_refCount;
96 if ( 0 == cnt ) {
97 delete this;
98 }
99 return cnt;
100 }

◆ release() [2/2]

virtual unsigned long TreeAddress::release ( )
inlinevirtual

release reference to object

Definition at line 94 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

94 {
95 int cnt = --m_refCount;
96 if ( 0 == cnt ) {
97 delete this;
98 }
99 return cnt;
100 }

◆ setClID() [1/2]

void TreeAddress::setClID ( const CLID &  clid)
inline

Access : Set class ID of the link.

Definition at line 114 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

114 {
115 m_clID = clid;
116 }

◆ setClID() [2/2]

void TreeAddress::setClID ( const CLID &  clid)
inline

Access : Set class ID of the link.

Definition at line 114 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

114 {
115 m_clID = clid;
116 }

◆ setRegistry() [1/2]

virtual void TreeAddress::setRegistry ( IRegistry *  pRegistry)
inlinevirtual

Set pointer to directory.

Definition at line 106 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

106 {
107 m_pRegistry = pRegistry;
108 }

◆ setRegistry() [2/2]

virtual void TreeAddress::setRegistry ( IRegistry *  pRegistry)
inlinevirtual

Set pointer to directory.

Definition at line 106 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

106 {
107 m_pRegistry = pRegistry;
108 }

◆ setRunFrom() [1/2]

void TreeAddress::setRunFrom ( int  runFrom)
inline

◆ setRunFrom() [2/2]

void TreeAddress::setRunFrom ( int  runFrom)
inline

set run from

Definition at line 140 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

140 {
141 m_runFrom= runFrom;
142 }

◆ setRunTo() [1/2]

void TreeAddress::setRunTo ( int  runTo)
inline

◆ setRunTo() [2/2]

void TreeAddress::setRunTo ( int  runTo)
inline

set run to

Definition at line 144 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

144 {
145 m_runTo= runTo;
146 }

◆ setSvcType() [1/2]

void TreeAddress::setSvcType ( long  typ)
inline

Access : set the storage type of the class id.

Definition at line 122 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

122 {
123 m_svcType = typ;
124 }

◆ setSvcType() [2/2]

void TreeAddress::setSvcType ( long  typ)
inline

Access : set the storage type of the class id.

Definition at line 122 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

122 {
123 m_svcType = typ;
124 }

◆ svcType() [1/2]

long TreeAddress::svcType ( ) const
inline

Access : retrieve the storage type of the class id.

Definition at line 118 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

118 {
119 return m_svcType;
120 }

◆ svcType() [2/2]

long TreeAddress::svcType ( ) const
inline

Access : retrieve the storage type of the class id.

Definition at line 118 of file InstallArea/include/CalibMySQLCnv/CalibMySQLCnv/TreeAddress.h.

118 {
119 return m_svcType;
120 }

Member Data Documentation

◆ m_clID

CLID TreeAddress::m_clID
protected

◆ m_ipar

unsigned long TreeAddress::m_ipar
protected

String parameters to be accessed.

Integer parameters to be accessed

Definition at line 37 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

Referenced by ipar(), and TreeAddress().

◆ m_pRegistry

IRegistry * TreeAddress::m_pRegistry
protected

Pointer to corresponding directory.

Definition at line 41 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

Referenced by registry(), and setRegistry().

◆ m_records

DatabaseRecord * TreeAddress::m_records
protected

◆ m_refCount

unsigned long TreeAddress::m_refCount
protected

Reference count.

Definition at line 29 of file Calibration/CalibSvc/CalibMySQLCnv/CalibMySQLCnv-00-01-09/CalibMySQLCnv/TreeAddress.h.

Referenced by addRef(), and release().

◆ m_runFrom

int TreeAddress::m_runFrom
protected

◆ m_runTo

int TreeAddress::m_runTo
protected

◆ m_svcType

long TreeAddress::m_svcType
protected

◆ m_treesize

unsigned long TreeAddress::m_treesize
protected

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