![]() |
|
Public Member Functions | |
ClassName ("dictionary") | |
dictionary () | |
Construct null. | |
dictionary (Istream &, const word &lastEntry=word::null) | |
Construct from Istream, reading entries until lastEntry or EOF. | |
dictionary (const dictionary &) | |
Construct as copy. | |
autoPtr< dictionary > | clone () const |
Construct and return clone. | |
~dictionary () | |
const fileName & | name () const |
Return the dictionary name. | |
fileName & | name () |
Return the dictionary name. | |
label | startLineNumber () const |
Return line number of first token in dictionary. | |
label | endLineNumber () const |
Return line number of last token in dictionary. | |
bool | found (const word &keyword) const |
Search dictionary for given keyword. | |
const entry & | lookupEntry (const word &) const |
Find and return an entry data stream. | |
ITstream & | lookup (const word &) const |
Find and return an entry data stream. | |
bool | isDict (const word &) const |
Check if entry is a sub-dictionary. | |
const dictionary & | subDict (const word &) const |
Find and return a sub-dictionary. | |
wordList | toc () const |
Return the table of contents. | |
void | add (const entry &) |
Add an entry. | |
void | add (const word &keyword, const token &) |
Add a token entry. | |
void | add (const word &keyword, const word &) |
Add a word entry. | |
void | add (const word &keyword, const Foam::string &) |
Add a string entry. | |
void | add (const word &keyword, const label) |
Add a label entry. | |
void | add (const word &keyword, const scalar) |
Add a scalar entry. | |
void | add (const word &keyword, const ITstream &) |
Add an entry constructed from a ITstream. | |
void | add (const word &keyword, const tokenList &tokens) |
Add an entry constructed from a tokenList. | |
template<class T> | |
void | add (const word &keyword, const T &) |
Add a T entry. | |
void | add (const word &keyword, const dictionary &) |
Add a dictionary entry. | |
bool | remove (const word &keyword) |
Remove an entry specified by keyword. | |
void | write (Ostream &os, bool subDict=true) const |
ITstream & | operator[] (const word &) const |
Find and return entry. | |
void | operator= (const dictionary &) |
void | operator+= (const dictionary &) |
Static Public Member Functions | |
autoPtr< dictionary > | New (Istream &is) |
Construct on freestore from Istream. | |
Static Public Attributes | |
const dictionary | null |
Null dictionary. | |
Friends | |
Istream & | operator>> (Istream &, dictionary &) |
Read dictionary from Istream. | |
Ostream & | operator<< (Ostream &, const dictionary &) |
Write dictionary to Ostream. |
|
Construct null.
|
|
Construct from Istream, reading entries until lastEntry or EOF.
|
|
Construct as copy.
|
|
|
|
Add a dictionary entry.
|
|
Add a T entry.
|
|
Add an entry constructed from a tokenList.
|
|
Add an entry constructed from a ITstream.
|
|
Add a scalar entry.
|
|
Add a label entry.
|
|
Add a string entry.
|
|
Add a word entry.
|
|
Add a token entry.
|
|
Add an entry.
|
|
|
|
Construct and return clone.
Reimplemented in dictionaryEntry. |
|
Return line number of last token in dictionary.
Reimplemented in dictionaryEntry. |
|
Search dictionary for given keyword.
|
|
Check if entry is a sub-dictionary.
|
|
Find and return an entry data stream.
|
|
Find and return an entry data stream.
|
|
Return the dictionary name.
Reimplemented in dictionaryEntry. Definition at line 129 of file dictionary.H. References Foam::label, Foam::tokenList, and Foam::wordList. |
|
Return the dictionary name.
Reimplemented in dictionaryEntry, IOdictionary, and fvMesh. Definition at line 123 of file dictionary.H. |
|
Construct on freestore from Istream.
|
|
|
|
|
|
Find and return entry.
|
|
Remove an entry specified by keyword.
|
|
Return line number of first token in dictionary.
Reimplemented in dictionaryEntry. |
|
Find and return a sub-dictionary.
|
|
Return the table of contents.
|
|
|
|
Write dictionary to Ostream.
|
|
Read dictionary from Istream.
|
|
Null dictionary.
Definition at line 94 of file dictionary.H. |