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

CdbRooRoViewCollectionR Class Reference

A persistent implementation the collection of persistent "view". More...

Inheritance diagram for CdbRooRoViewCollectionR:

CdbRooRoNameIdCollectionR< CdbRooRoViewR > CdbRooRoPersistentCollectionR List of all members.

Public Member Functions

 CdbRooRoViewCollectionR ()
 Default constructor.

virtual ~CdbRooRoViewCollectionR ()
 Destructor.

virtual CdbStatus add (const CdbRooRoViewR &theRef)
 Insert an element.

virtual CdbStatus newest (CdbRooRoViewR &theRef)
 Find the most recent view.

virtual CdbStatus newest (CdbCPtr< CdbRooRoViewR > &thePtr)
 Find the most recent view.


Detailed Description

A persistent implementation the collection of persistent "view".

In addition to its base class, the current collection brings in the concept and extended API for the "newest" element. The "newest" element is the view, which has the most recent creation time.

Definition at line 18 of file CdbRooRoViewCollectionR.rdl.


Constructor & Destructor Documentation

CdbRooRoViewCollectionR::CdbRooRoViewCollectionR  
 

Default constructor.

Initializes empty collection.

Definition at line 19 of file CdbRooRoViewCollectionR.cc.

CdbRooRoViewCollectionR::~CdbRooRoViewCollectionR   [virtual]
 

Destructor.

Definition at line 24 of file CdbRooRoViewCollectionR.cc.


Member Function Documentation

CdbStatus CdbRooRoViewCollectionR::add const CdbRooRoViewR   theRef [virtual]
 

Insert an element.

Extend the "::add" method of the base class to perform additional tests which are important in the current context.

See also:
CdbRooRoNameIdCollectionR::add()

Reimplemented from CdbRooRoNameIdCollectionR< CdbRooRoViewR >.

Definition at line 28 of file CdbRooRoViewCollectionR.cc.

References CdbRooRoNameIdCollectionR< T >::add(), CdbRooRoViewR::created(), CdbStatus::Error, CdbRooRoNameIdCollectionR< CdbRooRoViewR >::find(), CdbRooRoViewR::id(), CdbRooRoNameIdCollectionR< CdbRooRoViewR >::size(), and CdbStatus::Success.

CdbStatus CdbRooRoViewCollectionR::newest CdbCPtr< CdbRooRoViewR > &    thePtr [virtual]
 

Find the most recent view.

Being functionally similar to the previous method this one would initialize a counted smart pointer onto the found object.

Definition at line 81 of file CdbRooRoViewCollectionR.cc.

References CdbRooRoNameIdCollectionR< CdbRooRoViewR >::find(), CdbStatus::NotFound, and CdbRooRoNameIdCollectionR< CdbRooRoViewR >::size().

CdbStatus CdbRooRoViewCollectionR::newest CdbRooRoViewR   theRef [virtual]
 

Find the most recent view.

The most recent view is the one having the most recent creation time. The method will return CdbStatus::NotFound if the collection is empty.

Definition at line 73 of file CdbRooRoViewCollectionR.cc.

References CdbRooRoNameIdCollectionR< CdbRooRoViewR >::find(), CdbStatus::NotFound, and CdbRooRoNameIdCollectionR< CdbRooRoViewR >::size().


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