| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Protected Attributes

# RootHistCnv::RootObjAddress Class Reference

`#include <RootObjAddress.h>`

Inheritance diagram for RootHistCnv::RootObjAddress:
[legend]
Collaboration diagram for RootHistCnv::RootObjAddress:
[legend]

List of all members.

## Public Member Functions
| RootObjAddress ()
| Dummy constructor.
| RootObjAddress (const RootObjAddress &copy)
| RootObjAddress (long svc, const CLID &clid, const std::string &p1="", const std::string &p2="", unsigned long ip1=0, unsigned long ip2=0, TObject *tObj=0)
| Standard Constructor.
virtual | ~RootObjAddress ()
| 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.
virtual const CLID & | clID () const
| Access : Retrieve class ID of the link.
virtual void | setClID (const CLID &clid)
| Access : Set class ID of the link.
virtual long | svcType () const
| Access : retrieve the storage type of the class id.
virtual void | setSvcType (long typ)
| Access : set the storage type of the class id.
virtual const std::string * | par () const
| Retrieve string parameters.
virtual const unsigned long * | ipar () const
| Retrieve integer parameters.
virtual TObject * | tObj () const
| Retrieve TObject* ptr.
## Protected Attributes
unsigned long | m_refCount
long | m_svcType
| Storage type.
CLID | m_clID
| Class id.
std::string | m_par [2]
| String parameters to be accessed.
unsigned long | m_ipar [2]
| Integer parameters to be accessed.
IRegistry * | m_pRegistry
| Pointer to corresponding directory.
TObject * | m_tObj
| Pointer to TObject.

## Detailed Description

Definition at line 10 of file RootObjAddress.h.

## Constructor & Destructor Documentation

RootHistCnv::RootObjAddress::RootObjAddress | ( | ) | `[inline]`

Dummy constructor.

Definition at line 32 of file RootObjAddress.h.

          : m_refCount(0),
          m_svcType(0),
          m_clID(0),
          m_pRegistry(0),
          m_tObj(0)
        {
          m_ipar[0]=m_ipar[1]=0xFFFFFFFF;
        }

RootHistCnv::RootObjAddress::RootObjAddress | ( | const RootObjAddress & | copy ) | `[inline]`

Definition at line 42 of file RootObjAddress.h.

          : IOpaqueAddress(copy),
            m_refCount(0),
            m_svcType(copy.m_svcType),
            m_clID(copy.m_clID),
            m_pRegistry(copy.m_pRegistry),
            m_tObj(copy.m_tObj)
        {
          m_par[0]  = copy.m_par[0];
          m_par[1]  = copy.m_par[1];
          m_ipar[0] = copy.m_ipar[0];
          m_ipar[1] = copy.m_ipar[1];
        }

RootHistCnv::RootObjAddress::RootObjAddress | ( | long | svc,
|  | const CLID & | clid,
|  | const std::string & | p1 = `""`,
|  | const std::string & | p2 = `""`,
|  | unsigned long | ip1 = `0`,
|  | unsigned long | ip2 = `0`,
|  | TObject * | tObj = `0`
| ) |  | `[inline]`

Standard Constructor.

Definition at line 57 of file RootObjAddress.h.

          : m_refCount(0),
          m_svcType(svc),
          m_clID(clid),
          m_pRegistry(0),
          m_tObj(tObj)
        {
          m_par[0]  = p1;
          m_par[1]  = p2;
          m_ipar[0] = ip1;
          m_ipar[1] = ip2;
        }

virtual RootHistCnv::RootObjAddress::~RootObjAddress | ( | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 77 of file RootObjAddress.h.

                                    {
        }

## Member Function Documentation

virtual unsigned long RootHistCnv::RootObjAddress::addRef | ( | ) | `[inline, virtual]`

Add reference to object.

Implements IOpaqueAddress.

Definition at line 81 of file RootObjAddress.h.

                                            {
          return ++m_refCount;
        }

virtual const CLID& RootHistCnv::RootObjAddress::clID | ( | ) | const`[inline, virtual]`

Access : Retrieve class ID of the link.

Implements IOpaqueAddress.

Definition at line 101 of file RootObjAddress.h.

                                            {
          return m_clID;
        }

virtual const unsigned long* RootHistCnv::RootObjAddress::ipar | ( | ) | const`[inline, virtual]`

Retrieve integer parameters.

Implements IOpaqueAddress.

Definition at line 121 of file RootObjAddress.h.

                                                    {
          return m_ipar;
        }

virtual const std::string* RootHistCnv::RootObjAddress::par | ( | ) | const`[inline, virtual]`

Retrieve string parameters.

Implements IOpaqueAddress.

Definition at line 117 of file RootObjAddress.h.

                                               {
          return m_par;
        }

virtual IRegistry* RootHistCnv::RootObjAddress::registry | ( | ) | const`[inline, virtual]`

Pointer to directory.

Implements IOpaqueAddress.

Definition at line 93 of file RootObjAddress.h.

                                                  {
          return m_pRegistry;
        }

virtual unsigned long RootHistCnv::RootObjAddress::release | ( | ) | `[inline, virtual]`

release reference to object

Implements IOpaqueAddress.

Definition at line 85 of file RootObjAddress.h.

                                            {
          int cnt = --m_refCount;
          if ( 0 == cnt )   {
            delete this;
          }
          return cnt;
        }

virtual void RootHistCnv::RootObjAddress::setClID | ( | const CLID & | clid ) | `[inline, virtual]`

Access : Set class ID of the link.

Definition at line 105 of file RootObjAddress.h.

                                                 {
          m_clID = clid;
        }

virtual void RootHistCnv::RootObjAddress::setRegistry | ( | IRegistry * | pRegistry ) | `[inline, virtual]`

Set pointer to directory.

Implements IOpaqueAddress.

Definition at line 97 of file RootObjAddress.h.

                                                         {
          m_pRegistry = pRegistry;
        }

virtual void RootHistCnv::RootObjAddress::setSvcType | ( | long | typ ) | `[inline, virtual]`

Access : set the storage type of the class id.

Definition at line 113 of file RootObjAddress.h.

                                             {
          m_svcType = typ;
        }

virtual long RootHistCnv::RootObjAddress::svcType | ( | ) | const`[inline, virtual]`

Access : retrieve the storage type of the class id.

Implements IOpaqueAddress.

Definition at line 109 of file RootObjAddress.h.

                                         {
          return m_svcType;
        }

virtual TObject* RootHistCnv::RootObjAddress::tObj | ( | ) | const`[inline, virtual]`

Retrieve TObject* ptr.

Definition at line 126 of file RootObjAddress.h.

                                      {
          return m_tObj;
        }

## Member Data Documentation

CLID RootHistCnv::RootObjAddress::m_clID`[protected]`

Class id.

Definition at line 19 of file RootObjAddress.h.

unsigned long RootHistCnv::RootObjAddress::m_ipar[2]`[protected]`

Integer parameters to be accessed.

Definition at line 23 of file RootObjAddress.h.

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

String parameters to be accessed.

Definition at line 21 of file RootObjAddress.h.

IRegistry* RootHistCnv::RootObjAddress::m_pRegistry`[protected]`

Pointer to corresponding directory.

Definition at line 25 of file RootObjAddress.h.

unsigned long RootHistCnv::RootObjAddress::m_refCount`[protected]`

Definition at line 15 of file RootObjAddress.h.

long RootHistCnv::RootObjAddress::m_svcType`[protected]`

Storage type.

Definition at line 17 of file RootObjAddress.h.

TObject* RootHistCnv::RootObjAddress::m_tObj`[protected]`

Pointer to TObject.

Definition at line 27 of file RootObjAddress.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/RootHistCnv/src/RootObjAddress.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines