The Gaudi Framework  v30r3 (a5ef0a68)
RootHistCnv::RootObjAddress Class Reference

#include <src/RootObjAddress.h>

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

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 12 of file RootObjAddress.h.

Constructor & Destructor Documentation

RootHistCnv::RootObjAddress::RootObjAddress ( )
default

Dummy constructor.

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

Definition at line 34 of file RootObjAddress.h.

35  : IOpaqueAddress( copy )
36  , m_refCount( 0 )
37  , m_svcType( copy.m_svcType )
38  , m_clID( copy.m_clID )
39  , m_pRegistry( copy.m_pRegistry )
40  , m_tObj( copy.m_tObj )
41  {
42  m_par[0] = copy.m_par[0];
43  m_par[1] = copy.m_par[1];
44  m_ipar[0] = copy.m_ipar[0];
45  m_ipar[1] = copy.m_ipar[1];
46  }
T copy(T...args)
IRegistry * m_pRegistry
Pointer to corresponding directory.
unsigned long m_ipar[2]
Integer parameters to be accessed.
std::string m_par[2]
String parameters to be accessed.
TObject * m_tObj
Pointer to TObject.
long m_svcType
Storage type.
Opaque address interface definition.
RootHistCnv::RootObjAddress::RootObjAddress ( long  svc,
const CLID clid,
boost::string_ref  p1 = {},
boost::string_ref  p2 = {},
unsigned long  ip1 = 0,
unsigned long  ip2 = 0,
TObject *  tObj = nullptr 
)
inline

Standard Constructor.

Definition at line 49 of file RootObjAddress.h.

49  {}, boost::string_ref p2 = {},
50  unsigned long ip1 = 0, unsigned long ip2 = 0, TObject* tObj = nullptr )
51  : m_svcType( svc ), m_clID( clid ), m_tObj( tObj )
52  {
53  m_par[0] = p1.to_string();
54  m_par[1] = p2.to_string();
55  m_ipar[0] = ip1;
56  m_ipar[1] = ip2;
57  }
unsigned long m_ipar[2]
Integer parameters to be accessed.
std::string m_par[2]
String parameters to be accessed.
virtual TObject * tObj() const
Retrieve TObject* ptr.
TObject * m_tObj
Pointer to TObject.
long m_svcType
Storage type.

Member Function Documentation

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

Add reference to object.

Implements IOpaqueAddress.

Definition at line 60 of file RootObjAddress.h.

60 { return ++m_refCount; }
const CLID& RootHistCnv::RootObjAddress::clID ( ) const
inlineoverridevirtual

Access : Retrieve class ID of the link.

Implements IOpaqueAddress.

Definition at line 73 of file RootObjAddress.h.

73 { return m_clID; }
const unsigned long* RootHistCnv::RootObjAddress::ipar ( ) const
inlineoverridevirtual

Retrieve integer parameters.

Implements IOpaqueAddress.

Definition at line 83 of file RootObjAddress.h.

83 { return m_ipar; }
unsigned long m_ipar[2]
Integer parameters to be accessed.
const std::string* RootHistCnv::RootObjAddress::par ( ) const
inlineoverridevirtual

Retrieve string parameters.

Implements IOpaqueAddress.

Definition at line 81 of file RootObjAddress.h.

81 { return m_par; }
std::string m_par[2]
String parameters to be accessed.
IRegistry* RootHistCnv::RootObjAddress::registry ( ) const
inlineoverridevirtual

Pointer to directory.

Implements IOpaqueAddress.

Definition at line 69 of file RootObjAddress.h.

69 { return m_pRegistry; }
IRegistry * m_pRegistry
Pointer to corresponding directory.
unsigned long RootHistCnv::RootObjAddress::release ( )
inlineoverridevirtual

release reference to object

Implements IOpaqueAddress.

Definition at line 62 of file RootObjAddress.h.

63  {
64  int cnt = --m_refCount;
65  if ( 0 == cnt ) delete this;
66  return cnt;
67  }
virtual void RootHistCnv::RootObjAddress::setClID ( const CLID clid)
inlinevirtual

Access : Set class ID of the link.

Definition at line 75 of file RootObjAddress.h.

75 { m_clID = clid; }
void RootHistCnv::RootObjAddress::setRegistry ( IRegistry pRegistry)
inlineoverridevirtual

Set pointer to directory.

Implements IOpaqueAddress.

Definition at line 71 of file RootObjAddress.h.

71 { m_pRegistry = pRegistry; }
IRegistry * m_pRegistry
Pointer to corresponding directory.
virtual void RootHistCnv::RootObjAddress::setSvcType ( long  typ)
inlinevirtual

Access : set the storage type of the class id.

Definition at line 79 of file RootObjAddress.h.

79 { m_svcType = typ; }
long m_svcType
Storage type.
long RootHistCnv::RootObjAddress::svcType ( ) const
inlineoverridevirtual

Access : retrieve the storage type of the class id.

Implements IOpaqueAddress.

Definition at line 77 of file RootObjAddress.h.

77 { return m_svcType; }
long m_svcType
Storage type.
virtual TObject* RootHistCnv::RootObjAddress::tObj ( ) const
inlinevirtual

Retrieve TObject* ptr.

Definition at line 86 of file RootObjAddress.h.

86 { return m_tObj; }
TObject * m_tObj
Pointer to TObject.

Member Data Documentation

CLID RootHistCnv::RootObjAddress::m_clID = 0
protected

Class id.

Definition at line 20 of file RootObjAddress.h.

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

Integer parameters to be accessed.

Definition at line 24 of file RootObjAddress.h.

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

String parameters to be accessed.

Definition at line 22 of file RootObjAddress.h.

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

Pointer to corresponding directory.

Definition at line 26 of file RootObjAddress.h.

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

Definition at line 16 of file RootObjAddress.h.

long RootHistCnv::RootObjAddress::m_svcType = 0
protected

Storage type.

Definition at line 18 of file RootObjAddress.h.

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

Pointer to TObject.

Definition at line 28 of file RootObjAddress.h.


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