OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
Directory Class Reference

A map of string versus pointer to Object. More...

#include <Directory.h>

Public Member Functions

 Directory ()
 Constructor. More...
 
 ~Directory ()
 
ObjectDir::iterator begin ()
 First object in alphabetic order of name. More...
 
ObjectDir::const_iterator begin () const
 First object in alphabetic order of name. More...
 
ObjectDir::iterator end ()
 Last object in alphabetic order of name. More...
 
ObjectDir::const_iterator end () const
 Last object in alphabetic order of name. More...
 
void erase ()
 Delete all entries. More...
 
void erase (const std::string &name)
 Remove existing entry. More...
 
Objectfind (const std::string &name) const
 Find entry. More...
 
void insert (const std::string &name, Object *newObject)
 Define new object. More...
 

Private Attributes

ObjectDir dir
 

Detailed Description

A map of string versus pointer to Object.

Definition at line 38 of file Directory.h.

Constructor & Destructor Documentation

Directory::Directory ( )

Constructor.

Definition at line 26 of file Directory.cpp.

Directory::~Directory ( )

Definition at line 31 of file Directory.cpp.

References erase().

Here is the call graph for this function:

Member Function Documentation

ObjectDir::iterator Directory::begin ( )

First object in alphabetic order of name.

Definition at line 36 of file Directory.cpp.

References dir.

Referenced by OpalData::apply(), OpalData::define(), OpalData::erase(), OpalData::getAllNames(), OpalData::printNames(), and OpalData::update().

ObjectDir::const_iterator Directory::begin ( ) const

First object in alphabetic order of name.

Definition at line 41 of file Directory.cpp.

References dir.

ObjectDir::iterator Directory::end ( )

Last object in alphabetic order of name.

Definition at line 46 of file Directory.cpp.

References dir.

Referenced by OpalData::apply(), OpalData::define(), OpalData::erase(), OpalData::getAllNames(), OpalData::printNames(), and OpalData::update().

ObjectDir::const_iterator Directory::end ( ) const

Last object in alphabetic order of name.

Definition at line 51 of file Directory.cpp.

References dir.

void Directory::erase ( )

Delete all entries.

Definition at line 56 of file Directory.cpp.

References dir.

Referenced by OpalData::erase(), ~Directory(), and OpalDataImpl::~OpalDataImpl().

void Directory::erase ( const std::string &  name)

Remove existing entry.

Definition at line 61 of file Directory.cpp.

References dir.

Object * Directory::find ( const std::string &  name) const
void Directory::insert ( const std::string &  name,
Object newObject 
)

Define new object.

Definition at line 77 of file Directory.cpp.

References dir, and value_type().

Referenced by OpalData::create(), OpalData::define(), EditParser::EditParser(), MatchParser::MatchParser(), and TrackParser::TrackParser().

Here is the call graph for this function:

Member Data Documentation

ObjectDir Directory::dir
private

Definition at line 84 of file Directory.h.

Referenced by begin(), end(), erase(), find(), and insert().


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