Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

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

CdbBdbTestIterator< T > Class Template Reference
[CdbBdbTests]

The utility class for testing iteratots. More...

#include <CdbBdbTestIterator.hh>

List of all members.

Static Public Methods

void exerciseIterator ()
 Do the test.


Detailed Description

template<class T>
class CdbBdbTestIterator< T >

The utility class for testing iteratots.

The only template parameter of this class is T - the type of an iterator to be tested.

This test also assumes that the passed type corresponds to concrete iterator having a default constructor. Therefore the test will also instantiate the iterator.

Note the way the returned value is tested: we do not assume the presence of the default constructor for the value. This method can also return a reference, smart pointer onto an interface or a regular pointer.

See the implementation of this class for more details. Some tests may be implemented using full template specialization.

Definition at line 23 of file CdbBdbTestIterator.hh.


Member Function Documentation

void CdbBdbTestIterator<>::exerciseIterator   [static]
 

Do the test.

This method won't return any status. All problems will be detected either during its compilation or they will be reported through the "cout" or "assert" at the execution time.

Definition at line 15 of file CdbBdbTestIterator.cc.

References CdbStatus::Error.

Referenced by CdbBdbTestCompilation::iterators().


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002