| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Protected Attributes

# GenericAddress Class Reference

Generic Transient Address. More...

`#include <GaudiKernel/GenericAddress.h>`

Inheritance diagram for GenericAddress:
[legend]
Collaboration diagram for GenericAddress:
[legend]

List of all members.

## Public Member Functions
| GenericAddress ()
| Dummy constructor.
| GenericAddress (const GenericAddress &copy)
| Standard Constructor.
| GenericAddress (long svc, const CLID &clid, const std::string &p1="", const std::string &p2="", unsigned long ip1=0, unsigned long ip2=0)
| Standard Constructor.
virtual | ~GenericAddress ()
| 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
| Retrieve string parameters.
virtual const unsigned long * | ipar () const
| Retrieve integer parameters.
## Protected Attributes
unsigned long | m_refCount
| Reference count.
long | m_svcType
| Storage type.
CLID | m_clID
| Class id.
std::string | m_par [3]
| String parameters to be accessed.
unsigned long | m_ipar [2]
| Integer parameters to be accessed.
IRegistry * | m_pRegistry
| Pointer to corresponding directory.

## Detailed Description

Generic 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 21 of file GenericAddress.h.

## Constructor & Destructor Documentation

GenericAddress::GenericAddress | ( | ) | `[inline]`

Dummy constructor.

Definition at line 38 of file GenericAddress.h.

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

GenericAddress::GenericAddress | ( | const GenericAddress & | copy ) | `[inline]`

Standard Constructor.

Definition at line 47 of file GenericAddress.h.

        : IOpaqueAddress(copy),
          m_refCount(0),
          m_svcType(copy.m_svcType),
          m_clID(copy.m_clID),
          m_pRegistry(copy.m_pRegistry)
      {
        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];
      }

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

Standard Constructor.

Definition at line 60 of file GenericAddress.h.

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

virtual GenericAddress::~GenericAddress | ( | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 78 of file GenericAddress.h.

                                  {
      }

## Member Function Documentation

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

Add reference to object.

Implements IOpaqueAddress.

Definition at line 82 of file GenericAddress.h.

                                          {
        return ++m_refCount;
      }

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

Access : Retrieve class ID of the link.

Implements IOpaqueAddress.

Definition at line 102 of file GenericAddress.h.

                                  {
        return m_clID;
      }

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

Retrieve integer parameters.

Implements IOpaqueAddress.

Definition at line 122 of file GenericAddress.h.

                                                  {
        return m_ipar;
      }

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

Retrieve string parameters.

Implements IOpaqueAddress.

Definition at line 118 of file GenericAddress.h.

                                             {
        return m_par;
      }

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

Pointer to directory.

Implements IOpaqueAddress.

Definition at line 94 of file GenericAddress.h.

                                                {
        return m_pRegistry;
      }

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

release reference to object

Implements IOpaqueAddress.

Definition at line 86 of file GenericAddress.h.

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

void GenericAddress::setClID | ( | const CLID & | clid ) | `[inline]`

Access : Set class ID of the link.

Definition at line 106 of file GenericAddress.h.

                                       {
        m_clID = clid;
      }

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

Set pointer to directory.

Implements IOpaqueAddress.

Definition at line 98 of file GenericAddress.h.

                                                       {
        m_pRegistry = pRegistry;
      }

void GenericAddress::setSvcType | ( | long | typ ) | `[inline]`

Access : set the storage type of the class id.

Definition at line 114 of file GenericAddress.h.

                                   {
        m_svcType = typ;
      }

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

Access : retrieve the storage type of the class id.

Implements IOpaqueAddress.

Definition at line 110 of file GenericAddress.h.

                               {
        return m_svcType;
      }

## Member Data Documentation

CLID GenericAddress::m_clID`[protected]`

Class id.

Definition at line 28 of file GenericAddress.h.

unsigned long GenericAddress::m_ipar[2]`[protected]`

Integer parameters to be accessed.

Definition at line 32 of file GenericAddress.h.

std::string GenericAddress::m_par[3]`[protected]`

String parameters to be accessed.

Definition at line 30 of file GenericAddress.h.

IRegistry* GenericAddress::m_pRegistry`[protected]`

Pointer to corresponding directory.

Definition at line 34 of file GenericAddress.h.

unsigned long GenericAddress::m_refCount`[protected]`

Reference count.

Definition at line 24 of file GenericAddress.h.

long GenericAddress::m_svcType`[protected]`

Storage type.

Definition at line 26 of file GenericAddress.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiKernel/GaudiKernel/GenericAddress.h

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