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

CdbBdbSCell Class Reference

Object of this class represent "cells". More...

#include <CdbBdbSCell.hh>

List of all members.

Public Member Functions

 CdbBdbSCell (const BdbTime &theBeginValidity=BdbTime::minusInfinity, const BdbTime &theEndValidity=BdbTime::plusInfinity, const BdbTime &theBeginInsertion=BdbTime::minusInfinity, const BdbTime &theEndInsertion=BdbTime::plusInfinity)
 CdbBdbSCell (const CdbBdbSCell &theCell)
 Copy constructor.

 ~CdbBdbSCell ()
 The destructor.

CdbBdbSCell & operator= (const CdbBdbSCell &theCell)
 The assignment operator.

void close (const BdbTime &theTime)
 Close the cell at specified point of the INSERTION timeline.

bool operator== (const CdbBdbSCell &theCell) const
 The "equal" operator.

bool operator!= (const CdbBdbSCell &theCell) const
 The "not-equal" operator.

bool in (const BdbTime &theValidityTime, const BdbTime &theInsertionTime) const
 Check if specified point is inside the current cell.

bool inValidityRange (const BdbTime &theTime) const
 Check if specified validity time is inside the validity range of the current cell.

bool overlap (const CdbBdbSCell &theCell) const
 Check if specified cell overlaps with the current one.

void dump (std::ostream &o) const
 Dump the object contents into a stream.


Public Attributes

const BdbTime beginValidity
const BdbTime endValidity
const BdbTime beginInsertion
const BdbTime endInsertion


Detailed Description

Object of this class represent "cells".

Objects of this embedded class represent a "cell" in 2-dimesion space of the VALIDITY and INSERTION timelines. Each cell is described by its range it spans in both dimensions.

The surface occupied by a cell has the following semantics:

[ beginValidity , endValidity ) [ beginInsertion , endInsertion )

INSERTION : ........ : # . : # . : ######## ..............VALIDITY

Definition at line 33 of file CdbBdbSCell.hh.


Constructor & Destructor Documentation

CdbBdbSCell::CdbBdbSCell const BdbTime   theBeginValidity = BdbTime::minusInfinity,
const BdbTime   theEndValidity = BdbTime::plusInfinity,
const BdbTime   theBeginInsertion = BdbTime::minusInfinity,
const BdbTime   theEndInsertion = BdbTime::plusInfinity
 

Definition at line 96 of file CdbBdbSCell.cc.

CdbBdbSCell::CdbBdbSCell const CdbBdbSCell &    theCell
 

Copy constructor.

Definition at line 109 of file CdbBdbSCell.cc.

CdbBdbSCell::~CdbBdbSCell  
 

The destructor.

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

Definition at line 116 of file CdbBdbSCell.cc.


Member Function Documentation

void CdbBdbSCell::close const BdbTime   theTime
 

Close the cell at specified point of the INSERTION timeline.

The specified time must be strictly greater than the "bottom" insertion time of the cell and be less or eqal to the "topmost" time. Otherwise the method will abort the execution of an application.

Definition at line 132 of file CdbBdbSCell.cc.

Referenced by CdbBdbSPartitionBaseP::closeCell().

void CdbBdbSCell::dump std::ostream &    o const
 

Dump the object contents into a stream.

Definition at line 173 of file CdbBdbSCell.cc.

References beginInsertion, beginValidity, endInsertion, and endValidity.

Referenced by operator<<().

bool CdbBdbSCell::in const BdbTime   theValidityTime,
const BdbTime   theInsertionTime
const
 

Check if specified point is inside the current cell.

Definition at line 150 of file CdbBdbSCell.cc.

References beginInsertion, beginValidity, endInsertion, and endValidity.

Referenced by CdbBdbSPartitionsLayoutP::find().

bool CdbBdbSCell::inValidityRange const BdbTime   theTime const
 

Check if specified validity time is inside the validity range of the current cell.

Definition at line 160 of file CdbBdbSCell.cc.

References beginValidity, and endValidity.

Referenced by CdbBdbSPartitionsLayoutP::find(), CdbBdbSPartitionsLayoutP::next(), and CdbBdbSPartitionsLayoutP::topmost().

bool CdbBdbSCell::operator!= const CdbBdbSCell &    theCell const [inline]
 

The "not-equal" operator.

Definition at line 74 of file CdbBdbSCell.hh.

References operator==().

CdbBdbSCell & CdbBdbSCell::operator= const CdbBdbSCell &    theCell
 

The assignment operator.

Definition at line 120 of file CdbBdbSCell.cc.

References beginInsertion, beginValidity, endInsertion, and endValidity.

bool CdbBdbSCell::operator== const CdbBdbSCell &    theCell const
 

The "equal" operator.

Definition at line 141 of file CdbBdbSCell.cc.

References beginInsertion, beginValidity, endInsertion, and endValidity.

Referenced by operator!=().

bool CdbBdbSCell::overlap const CdbBdbSCell &    theCell const
 

Check if specified cell overlaps with the current one.

DEFINITION: Two cells are said to be "overlapped" when and only when the area of their intersection is more than 0.

Please, take into account the definition of the cell given at the beginning of this file.

Definition at line 167 of file CdbBdbSCell.cc.

Referenced by CdbBdbSPartitionsLayoutP::insert(), and CdbBdbSPartitionsLayoutP::iterator().


Member Data Documentation

const BdbTime CdbBdbSCell::beginInsertion
 

Definition at line 108 of file CdbBdbSCell.hh.

Referenced by CdbBdbSPartitionBaseP::closeCell(), CdbBdbSPartitionBaseP::dump(), dump(), in(), CdbBdbSPartitionP::instantiate(), operator=(), operator==(), and CdbBdbSPartitionsLayoutP::update().

const BdbTime CdbBdbSCell::beginValidity
 

Definition at line 106 of file CdbBdbSCell.hh.

Referenced by CdbBdbSPartitionBaseP::dump(), dump(), in(), CdbBdbSPartitionP::instantiate(), inValidityRange(), operator=(), operator==(), and CdbBdbSPartitionsLayoutP::update().

const BdbTime CdbBdbSCell::endInsertion
 

Definition at line 109 of file CdbBdbSCell.hh.

Referenced by CdbBdbSPartitionBaseP::closeCell(), CdbBdbSPartitionBaseP::dump(), dump(), CdbBdbSPartitionsLayoutP::find(), in(), CdbBdbSPartitionBaseP::isClosed(), operator=(), and operator==().

const BdbTime CdbBdbSCell::endValidity
 

Definition at line 107 of file CdbBdbSCell.hh.

Referenced by CdbBdbSPartitionBaseP::dump(), dump(), in(), CdbBdbSPartitionP::instantiate(), inValidityRange(), operator=(), operator==(), CdbBdbSCondition::storeObject(), and CdbBdbSPartitionsLayoutP::update().


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