class
Directory
(Return to index)
A map of string versus pointer to Object.
Used as the directory for MAD objects.
Type: |
Instantiable |
Include file: |
./AbstractObjects/Directory.hh |
Synopsis (including inherited members):
- Public members:
-
Directory
()
;
-
~Directory
()
;
-
ObjectDir::iterator begin
()
;
-
ObjectDir::const_iterator begin
()const
;
-
ObjectDir::iterator end
()
;
-
ObjectDir::const_iterator end
()const
;
-
void erase
()
;
-
void erase
(const string&)
;
-
Object* find
(const string&)const
;
-
void insert
(const string&,Object*)
;
Documentation:
- Public members:
-
Directory
()
;
- Constructor.
Build empty directory.
-
ObjectDir::iterator begin
()
;
- First object in alphabetic order of name
(Version for non-constant directory).
-
ObjectDir::const_iterator begin
()const
;
- First object in alphabetic order of name
(Version for constant directory).
-
ObjectDir::iterator end
()
;
- Last object in alphabetic order of name
(Version for non-constant directory).
-
ObjectDir::const_iterator end
()const
;
- Last object in alphabetic order of name
(Version for constant directory).
-
void erase
()
;
- Delete all entries.
-
void erase
(const string&)
;
- Remove existing entry.
The entry is identified by name.
-
Object* find
(const string&)const
;
- Find entry.
The entry is identified by name.
If the entry name does not exist, return NULL.
-
void insert
(const string&,Object*)
;
- Define new object.
Insert new object in directory.
If the entry name exists already, it is removed.
Documentation generated by fci on Mon Feb 7 12:29:48 2000