Go to the documentation of this file.
24 #ifndef __dictionary_hpp__
25 #define __dictionary_hpp__
293 if(
auto entry = findEntry(keyword); entry!=
nullptr && !entry->isDictionary() )
314 if(!readDataEntry(keyword, val))
317 "cannot find dataEntry "<< keyword <<
" in dictionary "<< globalName()<<
endl;
331 if( readDataEntry(keyword, val) )
344 #endif // __dictionary_hpp__
List< iEntry * > orderedEntries_
T getValOrSet(const word &keyword, const T &setVal) const
virtual iTstream & stream()
virtual bool write(iOstream &os) const
wordList allKeywords() const
iEntry * findEntry(const word &keyword)
virtual bool read(iIstream &is)
const dictionary & parDict_
dictionary & operator=(const dictionary &rhs)
virtual word globalName() const
dictionary & subDictOrCreate(const word &keyword)
bool add(const word &keyword, const float &v)
virtual const word & keyword() const
virtual bool isDictionary() const
iOstream & endl(iOstream &os)
static dictionary nullDict
virtual iEntry * clonePtr() const
bool containsDataEntry(const word &name) const
wordList dictionaryKeywords() const
virtual dictionary * dictPtr()
wordOrderedMapPtr< iEntry > entries_
bool containsDictionay(const word &name) const
size_t numEntries() const
virtual uniquePtr< iEntry > clone() const
dataEntry * dataEntryPtr(const word &keyword)
#define fatalErrorInFunction
virtual bool isFileDict() const
virtual dictionary & dict()
bool readDictionary(iIstream &is)
bool writeDictionary(iOstream &os, bool withBlock=true) const
size_t numDataEntries() const
dataEntry & dataEntryRef(const word &keyword)
dictionary * subDictPtr(const word &keyword)
bool readDataEntry(const word &keyword, T &val) const
dictionary & subDict(const word &keyword)
virtual word name() const
T getVal(const word &keyword) const
bool addPtr(const word &keyword, uniquePtr< iEntry > &etry)
bool addDict(const word &keyword, const dictionary &dict)
size_t numDictionaries() const
virtual const dictionary & parrentDict() const
wordList dataEntryKeywords() const