TDbiRegistry::TDbiRegistryKey Class Reference

#include <TDbiRegistry.hxx>

Collaboration diagram for TDbiRegistry::TDbiRegistryKey:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TDbiRegistryKey ()
 TDbiRegistryKey (const TDbiRegistry *r)
virtual ~TDbiRegistryKey ()
const char * operator() (void)

Private Attributes

const TDbiRegistryfReg
std::map< std::string,
TDbiRegistryItem * >::iterator 
fIt

Detailed Description

Container for a registry key. Contains a std::map of key value pairs where key is a string and value is a registry item. Also stores pointer to a TDbiRegistry object.

Definition at line 163 of file TDbiRegistry.hxx.


Constructor & Destructor Documentation

TDbiRegistry::TDbiRegistryKey::TDbiRegistryKey (  ) 

Definition at line 203 of file TDbiRegistry.cxx.

00204 {
00205 }

TDbiRegistry::TDbiRegistryKey::TDbiRegistryKey ( const TDbiRegistry r  ) 

Definition at line 195 of file TDbiRegistry.cxx.

References fIt, TDbiRegistry::fMap, and fReg.

00195                                                                   :
00196     fReg(r)
00197 {
00198     // FIXME!  Figure out how to correctly declare fIt to reflect
00199     // constness.
00200     fIt = const_cast<TDbiRegistry*>(fReg)->fMap.begin();
00201 }

TDbiRegistry::TDbiRegistryKey::~TDbiRegistryKey (  )  [virtual]

Definition at line 207 of file TDbiRegistry.cxx.

00208 {
00209 }


Member Function Documentation

const char * TDbiRegistry::TDbiRegistryKey::operator() ( void   ) 

Definition at line 211 of file TDbiRegistry.cxx.

References fIt, TDbiRegistry::fMap, and fReg.

00212 {
00213     if (fIt == fReg->fMap.end()) return 0;
00214     const char* s = fIt->first.c_str();
00215     ++ fIt;
00216     return s;
00217 }


Member Data Documentation

std::map<std::string,TDbiRegistryItem*>::iterator TDbiRegistry::TDbiRegistryKey::fIt [private]

Definition at line 176 of file TDbiRegistry.hxx.

Referenced by operator()(), and TDbiRegistryKey().

Definition at line 175 of file TDbiRegistry.hxx.

Referenced by operator()(), and TDbiRegistryKey().


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

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1