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

CdbBdbObjectVisitorContext Class Reference

The current context of the objects visitor procedure. More...

#include <CdbBdbObjectVisitorContext.hh>

List of all members.

Public Member Functions

 CdbBdbObjectVisitorContext ()
 The default constructor.

virtual ~CdbBdbObjectVisitorContext ()
 The destructor.

void reset ()
 Reset the context to its initial state.

void push (const Element &theElement)
 Append ne more element at the end.

void pop ()
 Remove the last element (if any) from the very end.

const Elementfirst () const
 Get to the first element.

const Elementlast () const
 Get to the last element.

size_t size () const
 Get the total number of elements.

const Elementoperator[] (size_t theIndex) const
 Access elements using the array kind manner.


Detailed Description

The current context of the objects visitor procedure.

An object of this class is prepared by the visitor procedure and then is passed down to the user defined action method alongside with an objects to be evaluated in the current context.

IMPLEMENTATION NOTES:

(1) This class violates CDB API convention on the inclusion of "CdbBase/CdbCommon.hh" header file to avoid STD namespace conflicts of the kind described above.

Definition at line 26 of file CdbBdbObjectVisitorContext.hh.


Constructor & Destructor Documentation

CdbBdbObjectVisitorContext::CdbBdbObjectVisitorContext  
 

The default constructor.

Initializes an empty context

Definition at line 20 of file CdbBdbObjectVisitorContext.cc.

CdbBdbObjectVisitorContext::~CdbBdbObjectVisitorContext   [virtual]
 

The destructor.

Moe details...

Definition at line 23 of file CdbBdbObjectVisitorContext.cc.


Member Function Documentation

const CdbBdbObjectVisitorContext::Element & CdbBdbObjectVisitorContext::first   const
 

Get to the first element.

Definition at line 45 of file CdbBdbObjectVisitorContext.cc.

References size().

const CdbBdbObjectVisitorContext::Element & CdbBdbObjectVisitorContext::last   const
 

Get to the last element.

Definition at line 56 of file CdbBdbObjectVisitorContext.cc.

References size().

const CdbBdbObjectVisitorContext::Element & CdbBdbObjectVisitorContext::operator[] size_t    theIndex const
 

Access elements using the array kind manner.

Definition at line 73 of file CdbBdbObjectVisitorContext.cc.

References size().

void CdbBdbObjectVisitorContext::pop  
 

Remove the last element (if any) from the very end.

Definition at line 39 of file CdbBdbObjectVisitorContext.cc.

References size().

void CdbBdbObjectVisitorContext::push const Element   theElement
 

Append ne more element at the end.

Definition at line 33 of file CdbBdbObjectVisitorContext.cc.

void CdbBdbObjectVisitorContext::reset  
 

Reset the context to its initial state.

Definition at line 27 of file CdbBdbObjectVisitorContext.cc.

size_t CdbBdbObjectVisitorContext::size   const
 

Get the total number of elements.

Definition at line 67 of file CdbBdbObjectVisitorContext.cc.

Referenced by first(), last(), operator[](), and pop().


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