OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
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... | |
Object * | find (const std::string &name) const |
Find entry. More... | |
void | insert (const std::string &name, Object *newObject) |
Define new object. More... | |
Private Attributes | |
ObjectDir | dir |
A map of string versus pointer to Object.
Definition at line 38 of file Directory.h.
Directory::Directory | ( | ) |
Constructor.
Definition at line 26 of file Directory.cpp.
Directory::~Directory | ( | ) |
Definition at line 31 of file Directory.cpp.
References erase().
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::getVariableNames(), 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::getVariableNames(), 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 | ) |
Object * Directory::find | ( | const std::string & | name | ) | const |
Find entry.
Definition at line 66 of file Directory.cpp.
Referenced by OpalData::create(), OpalData::define(), OpalData::erase(), TrackParser::find(), and OpalData::find().
void Directory::insert | ( | const std::string & | name, |
Object * | newObject | ||
) |
Define new object.
Definition at line 77 of file Directory.cpp.
References dir, name, and value_type().
Referenced by OpalData::create(), OpalData::define(), and TrackParser::TrackParser().
|
private |