The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
RootHistCnv::RootObjAddress Class Reference

#include </builds/gaudi/Gaudi/RootHistCnv/src/RootObjAddress.h>

Inheritance diagram for RootHistCnv::RootObjAddress:
Collaboration diagram for RootHistCnv::RootObjAddress:

Public Member Functions

 RootObjAddress ()=default
 Dummy constructor.
 
 RootObjAddress (const RootObjAddress &copy)
 
 RootObjAddress (long svc, const CLID &clid, std::string_view p1={}, std::string_view p2={}, unsigned long ip1=0, unsigned long ip2=0, TObject *tObj=nullptr)
 Standard Constructor.
 
unsigned long addRef () override
 Add reference to object.
 
unsigned long release () override
 release reference to object
 
IRegistryregistry () const override
 Pointer to directory.
 
void setRegistry (IRegistry *pRegistry) override
 Set pointer to directory.
 
const CLIDclID () const override
 Access : Retrieve class ID of the link.
 
virtual void setClID (const CLID &clid)
 Access : Set class ID of the link.
 
long svcType () const override
 Access : retrieve the storage type of the class id.
 
virtual void setSvcType (long typ)
 Access : set the storage type of the class id.
 
const std::string * par () const override
 Retrieve string parameters.
 
const unsigned long * ipar () const override
 Retrieve integer parameters.
 
virtual TObject * tObj () const
 Retrieve TObject* ptr.
 
- Public Member Functions inherited from IOpaqueAddress
virtual ~IOpaqueAddress ()=default
 

Protected Attributes

unsigned long m_refCount = 0
 
long m_svcType = 0
 Storage type.
 
CLID m_clID = 0
 Class id.
 
std::string m_par [2]
 String parameters to be accessed.
 
unsigned long m_ipar [2] = { 0xFFFFFFFF, 0xFFFFFFFF }
 Integer parameters to be accessed.
 
IRegistrym_pRegistry = nullptr
 Pointer to corresponding directory.
 
TObject * m_tObj = nullptr
 Pointer to TObject.
 

Detailed Description

Definition at line 20 of file RootObjAddress.h.

Constructor & Destructor Documentation

◆ RootObjAddress() [1/3]

RootHistCnv::RootObjAddress::RootObjAddress ( )
default

Dummy constructor.

◆ RootObjAddress() [2/3]

RootHistCnv::RootObjAddress::RootObjAddress ( const RootObjAddress & copy)
inline

Definition at line 41 of file RootObjAddress.h.

42 : IOpaqueAddress( copy )
43 , m_refCount( 0 )
44 , m_svcType( copy.m_svcType )
45 , m_clID( copy.m_clID )
46 , m_pRegistry( copy.m_pRegistry )
47 , m_tObj( copy.m_tObj ) {
48 m_par[0] = copy.m_par[0];
49 m_par[1] = copy.m_par[1];
50 m_ipar[0] = copy.m_ipar[0];
51 m_ipar[1] = copy.m_ipar[1];
52 }
IRegistry * m_pRegistry
Pointer to corresponding directory.
TObject * m_tObj
Pointer to TObject.
std::string m_par[2]
String parameters to be accessed.
unsigned long m_ipar[2]
Integer parameters to be accessed.
long m_svcType
Storage type.

◆ RootObjAddress() [3/3]

RootHistCnv::RootObjAddress::RootObjAddress ( long svc,
const CLID & clid,
std::string_view p1 = {},
std::string_view p2 = {},
unsigned long ip1 = 0,
unsigned long ip2 = 0,
TObject * tObj = nullptr )
inline

Standard Constructor.

Definition at line 55 of file RootObjAddress.h.

55 {}, std::string_view p2 = {},
56 unsigned long ip1 = 0, unsigned long ip2 = 0, TObject* tObj = nullptr )
57 : m_svcType( svc ), m_clID( clid ), m_tObj( tObj ) {
58 m_par[0] = std::string{ p1 };
59 m_par[1] = std::string{ p2 };
60 m_ipar[0] = ip1;
61 m_ipar[1] = ip2;
62 }
virtual TObject * tObj() const
Retrieve TObject* ptr.

Member Function Documentation

◆ addRef()

unsigned long RootHistCnv::RootObjAddress::addRef ( )
inlineoverridevirtual

Add reference to object.

Implements IOpaqueAddress.

Definition at line 65 of file RootObjAddress.h.

65{ return ++m_refCount; }

◆ clID()

const CLID & RootHistCnv::RootObjAddress::clID ( ) const
inlineoverridevirtual

Access : Retrieve class ID of the link.

Implements IOpaqueAddress.

Definition at line 77 of file RootObjAddress.h.

77{ return m_clID; }

◆ ipar()

const unsigned long * RootHistCnv::RootObjAddress::ipar ( ) const
inlineoverridevirtual

Retrieve integer parameters.

Implements IOpaqueAddress.

Definition at line 87 of file RootObjAddress.h.

87{ return m_ipar; }

◆ par()

const std::string * RootHistCnv::RootObjAddress::par ( ) const
inlineoverridevirtual

Retrieve string parameters.

Implements IOpaqueAddress.

Definition at line 85 of file RootObjAddress.h.

85{ return m_par; }

◆ registry()

IRegistry * RootHistCnv::RootObjAddress::registry ( ) const
inlineoverridevirtual

Pointer to directory.

Implements IOpaqueAddress.

Definition at line 73 of file RootObjAddress.h.

73{ return m_pRegistry; }

◆ release()

unsigned long RootHistCnv::RootObjAddress::release ( )
inlineoverridevirtual

release reference to object

Implements IOpaqueAddress.

Definition at line 67 of file RootObjAddress.h.

67 {
68 unsigned long cnt = --m_refCount;
69 if ( 0 == cnt ) delete this;
70 return cnt;
71 }

◆ setClID()

virtual void RootHistCnv::RootObjAddress::setClID ( const CLID & clid)
inlinevirtual

Access : Set class ID of the link.

Definition at line 79 of file RootObjAddress.h.

79{ m_clID = clid; }

◆ setRegistry()

void RootHistCnv::RootObjAddress::setRegistry ( IRegistry * pRegistry)
inlineoverridevirtual

Set pointer to directory.

Implements IOpaqueAddress.

Definition at line 75 of file RootObjAddress.h.

75{ m_pRegistry = pRegistry; }

◆ setSvcType()

virtual void RootHistCnv::RootObjAddress::setSvcType ( long typ)
inlinevirtual

Access : set the storage type of the class id.

Definition at line 83 of file RootObjAddress.h.

83{ m_svcType = typ; }

◆ svcType()

long RootHistCnv::RootObjAddress::svcType ( ) const
inlineoverridevirtual

Access : retrieve the storage type of the class id.

Implements IOpaqueAddress.

Definition at line 81 of file RootObjAddress.h.

81{ return m_svcType; }

◆ tObj()

virtual TObject * RootHistCnv::RootObjAddress::tObj ( ) const
inlinevirtual

Retrieve TObject* ptr.

Definition at line 90 of file RootObjAddress.h.

90{ return m_tObj; }

Member Data Documentation

◆ m_clID

CLID RootHistCnv::RootObjAddress::m_clID = 0
protected

Class id.

Definition at line 27 of file RootObjAddress.h.

◆ m_ipar

unsigned long RootHistCnv::RootObjAddress::m_ipar[2] = { 0xFFFFFFFF, 0xFFFFFFFF }
protected

Integer parameters to be accessed.

Definition at line 31 of file RootObjAddress.h.

31{ 0xFFFFFFFF, 0xFFFFFFFF };

◆ m_par

std::string RootHistCnv::RootObjAddress::m_par[2]
protected

String parameters to be accessed.

Definition at line 29 of file RootObjAddress.h.

◆ m_pRegistry

IRegistry* RootHistCnv::RootObjAddress::m_pRegistry = nullptr
protected

Pointer to corresponding directory.

Definition at line 33 of file RootObjAddress.h.

◆ m_refCount

unsigned long RootHistCnv::RootObjAddress::m_refCount = 0
protected

Definition at line 23 of file RootObjAddress.h.

◆ m_svcType

long RootHistCnv::RootObjAddress::m_svcType = 0
protected

Storage type.

Definition at line 25 of file RootObjAddress.h.

◆ m_tObj

TObject* RootHistCnv::RootObjAddress::m_tObj = nullptr
protected

Pointer to TObject.

Definition at line 35 of file RootObjAddress.h.


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