Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbBdbSId Class Reference

Object of this class represent "extended" identifier for Condition/DB objects. More...

#include <CdbBdbSId.hh>

List of all members.

Public Member Functions

 CdbBdbSId (d_UShort theOriginId=0, d_UShort theLocalId=0)
 Normal & also default constructor.

 CdbBdbSId (const CdbId &theTransientId)
 Normal constructor.

 CdbBdbSId (const CdbBdbSId &theId)
 Copy constructor.

 ~CdbBdbSId ()
 The destructor.

CdbBdbSId & operator= (const CdbBdbSId &theId)
 The assignment operator (the same class).

CdbBdbSId & operator= (const CdbId &theTransientId)
 The assignment operator (the transient counterpart).

bool operator== (const CdbBdbSId &theId) const
 The "equal" operator.

bool operator!= (const CdbBdbSId &theId) const
 The "not-equal" operator.

bool operator< (const CdbBdbSId &theId) const
 The "less" operator.

CdbId transient () const
 Get a transient identifier.


Public Attributes

d_UShort origin
d_UShort local


Detailed Description

Object of this class represent "extended" identifier for Condition/DB objects.

This is "extended" object identifier. It defines an address of some entiry in the distributed database as:

16-bit "origin" identifier 16-bit "local" object's ide in the scope of an origin

Objects of this class can be used either as embedded ones in persistent objects or in the transient code.

Objects of this class can also be stored in the "B-tree". The interface of the "id" class meet the necessary requirements (constructors, operators and supplementary class B-tree "order").

The class also provides ways to convert back and forth to and from its transient coutrepart class CdbId.

See also:
class CdbId

Definition at line 33 of file CdbBdbSId.hh.


Constructor & Destructor Documentation

CdbBdbSId::CdbBdbSId d_UShort    theOriginId = 0,
d_UShort    theLocalId = 0
[inline]
 

Normal & also default constructor.

Definition at line 40 of file CdbBdbSId.hh.

References local, and origin.

CdbBdbSId::CdbBdbSId const CdbId   theTransientId [inline, explicit]
 

Normal constructor.

Build an object from its transient counterpart

Definition at line 50 of file CdbBdbSId.hh.

References local, and origin.

CdbBdbSId::CdbBdbSId const CdbBdbSId &    theId [inline]
 

Copy constructor.

Definition at line 58 of file CdbBdbSId.hh.

References local, and origin.

CdbBdbSId::~CdbBdbSId   [inline]
 

The destructor.

NOTE: The destructor is NOT virtual because this is an embedded class.

Definition at line 69 of file CdbBdbSId.hh.


Member Function Documentation

bool CdbBdbSId::operator!= const CdbBdbSId &    theId const [inline]
 

The "not-equal" operator.

Definition at line 106 of file CdbBdbSId.hh.

References operator==().

bool CdbBdbSId::operator< const CdbBdbSId &    theId const [inline]
 

The "less" operator.

This operator is required to insert objects of this class into a B-tree.

Definition at line 116 of file CdbBdbSId.hh.

References local, and origin.

CdbBdbSId& CdbBdbSId::operator= const CdbId   theTransientId [inline]
 

The assignment operator (the transient counterpart).

Definition at line 86 of file CdbBdbSId.hh.

References CdbId::local, local, CdbId::origin, and origin.

CdbBdbSId& CdbBdbSId::operator= const CdbBdbSId &    theId [inline]
 

The assignment operator (the same class).

Definition at line 74 of file CdbBdbSId.hh.

References local, and origin.

bool CdbBdbSId::operator== const CdbBdbSId &    theId const [inline]
 

The "equal" operator.

This operator is required to insert objects of this class into a B-tree.

Definition at line 98 of file CdbBdbSId.hh.

References local, and origin.

Referenced by operator!=().

CdbId CdbBdbSId::transient   const [inline]
 

Get a transient identifier.

Definition at line 123 of file CdbBdbSId.hh.


Member Data Documentation

d_UShort CdbBdbSId::local
 

Definition at line 131 of file CdbBdbSId.hh.

Referenced by CdbBdbSId(), CdbBdbSFolder::findCondition(), main(), operator<(), operator<<(), operator=(), operator==(), CdbBdbSCondition::physicalId(), and CdbBdbSCondition::storeObject().

d_UShort CdbBdbSId::origin
 

Definition at line 130 of file CdbBdbSId.hh.

Referenced by CdbBdbSId(), CdbBdbSCondition::createRevision(), CdbBdbSFolder::findCondition(), main(), operator<(), operator<<(), operator=(), operator==(), CdbBdbSCondition::physicalId(), and CdbBdbSCondition::storeObject().


The documentation for this class was generated from the following file:
Generated on Mon Dec 5 18:22:19 2005 for CDB by doxygen1.3-rc3