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

CdbBdbSIncrementCollection Class Reference

Objects of this class represent collections of "increments". More...

#include <CdbBdbSIncrementCollection.hh>

List of all members.

Public Member Functions

 CdbBdbSIncrementCollection ()
 Default constructor.

 CdbBdbSIncrementCollection (const CdbBdbSIncrementCollection &theCollection)
 Copy constructor.

 ~CdbBdbSIncrementCollection ()
 The destructor.

CdbBdbSIncrementCollection & operator= (const CdbBdbSIncrementCollection &theCollection)
 The assignment operator.

d_UShort numIncrements () const
 Get the total number of "increments".

CdbStatus increment (d_UShort theNumber, CdbBdbSIncrement &theIncrement) const
 Get the specified "increment".

CdbStatus createIncrement (const BdbTime &theSplitTime)
 Create new "increment".


Detailed Description

Objects of this class represent collections of "increments".

Objects of this embedded class represent collections of "increments" to describe the data placement for a condition or a cluster of thoses ones.

Definition at line 16 of file CdbBdbSIncrementCollection.hh.


Constructor & Destructor Documentation

CdbBdbSIncrementCollection::CdbBdbSIncrementCollection  
 

Default constructor.

Will construct a collection with a single "increment" covering the whole range of the insertion time.

Definition at line 17 of file CdbBdbSIncrementCollectionP.cc.

CdbBdbSIncrementCollection::CdbBdbSIncrementCollection const CdbBdbSIncrementCollection &    theCollection
 

Copy constructor.

Definition at line 24 of file CdbBdbSIncrementCollectionP.cc.

CdbBdbSIncrementCollection::~CdbBdbSIncrementCollection  
 

The destructor.

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

Definition at line 29 of file CdbBdbSIncrementCollectionP.cc.


Member Function Documentation

CdbStatus CdbBdbSIncrementCollection::createIncrement const BdbTime   theSplitTime
 

Create new "increment".

The method if successfull will increase the number of increments by one.

Parameters:
theSplitTime  the split time for a new incrementhe increment

Definition at line 57 of file CdbBdbSIncrementCollectionP.cc.

References CdbStatus::Error, BdbTime::minusInfinity, numIncrements(), BdbTime::plusInfinity, and CdbStatus::Success.

Referenced by CdbBdbSSimpleClusterP::createIncrement(), and CdbBdbSPartitionP::createIncrement().

CdbStatus CdbBdbSIncrementCollection::increment d_UShort    theNumber,
CdbBdbSIncrement   theIncrement
const
 

Get the specified "increment".

The method will return CdbStatus::NotFound if the index is not in a valid range.

Parameters:
theNumber  the number of the increment in question
theIncrement  the value of the increment to be set up

Definition at line 48 of file CdbBdbSIncrementCollectionP.cc.

References CdbStatus::NotFound, numIncrements(), and CdbStatus::Success.

Referenced by CdbBdbSSimpleClusterP::increment(), and CdbBdbSPartitionP::increment().

d_UShort CdbBdbSIncrementCollection::numIncrements   const
 

Get the total number of "increments".

Definition at line 42 of file CdbBdbSIncrementCollectionP.cc.

Referenced by CdbBdbSPartitionP::close(), CdbBdbSSimpleClusterP::createIncrement(), CdbBdbSPartitionP::createIncrement(), createIncrement(), increment(), CdbBdbSSimpleClusterP::numIncrements(), and CdbBdbSPartitionP::numIncrements().

CdbBdbSIncrementCollection & CdbBdbSIncrementCollection::operator= const CdbBdbSIncrementCollection &    theCollection
 

The assignment operator.

Definition at line 33 of file CdbBdbSIncrementCollectionP.cc.


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