Interface calss for data entry and dictionary
More...
Public Member Functions | |
TypeInfo ("iEntry") | |
Type info. More... | |
iEntry () | |
empty constructor More... | |
iEntry (const word &key) | |
construct with a keyword More... | |
virtual | ~iEntry () |
destructor More... | |
virtual const word & | keyword () const |
return keyword More... | |
virtual word & | keyword () |
return keyword More... | |
virtual word | name () const |
name/keyword of entry More... | |
virtual word | globalName () const =0 |
virtual dictionary * | dictPtr () |
pointer to this dictionary More... | |
virtual const dictionary * | dictPtr () const |
const pointer to this dictionary More... | |
virtual bool | isDictionary () const |
if this is a dictionary More... | |
virtual const dictionary & | parrentDict () const =0 |
const ref to parrent dictionary More... | |
virtual dictionary & | dict ()=0 |
ref to this dictionary, if it is a dictionary More... | |
virtual const dictionary & | dict () const =0 |
const ref to this dictionary, if it is a dicrionary More... | |
virtual iEntry * | clonePtr () const =0 |
clone the object More... | |
virtual uniquePtr< iEntry > | clone () const =0 |
virtual iEntry * | clonePtr (const dictionary &parDict) const =0 |
clone the object and change its ownership to parDict More... | |
virtual uniquePtr< iEntry > | clone (const dictionary &parDict) const =0 |
clone the object and change its ownership to parDict More... | |
virtual bool | read (iIstream &is)=0 |
read from stream More... | |
virtual bool | write (iOstream &os) const =0 |
write to stream More... | |
Static Public Member Functions | |
static bool | readKeyword (iIstream &is, word &keyword, token &tok) |
read a keyword from stream More... | |
static bool | createEntry (dictionary &parDict, iIstream &is, bool hasBlockToken=false) |
create an entry (dataEntry or dictionary) from stream More... | |
Protected Member Functions | |
bool | writeKeyword (iOstream &os) const |
Protected Attributes | |
word | keyword_ |
Interface calss for data entry and dictionary
Definition at line 42 of file iEntry.hpp.
|
inline |
empty constructor
Definition at line 70 of file iEntry.hpp.
construct with a keyword
Definition at line 74 of file iEntry.hpp.
|
inlinevirtual |
destructor
Definition at line 81 of file iEntry.hpp.
read a keyword from stream
Definition at line 32 of file iEntry.cpp.
|
static |
create an entry (dataEntry or dictionary) from stream
Definition at line 64 of file iEntry.cpp.
|
protected |
Definition at line 154 of file iEntry.cpp.
TypeInfo | ( | "iEntry" | ) |
Type info.
|
inlinevirtual |
return keyword
Definition at line 88 of file iEntry.hpp.
Referenced by dictionary::add(), dictionary::addOrKeep(), dictionary::getValOrSetMax(), dictionary::getValOrSetMin(), and iEntry< Key, T * >::name().
|
inlinevirtual |
return keyword
Definition at line 94 of file iEntry.hpp.
|
inlinevirtual |
name/keyword of entry
Definition at line 100 of file iEntry.hpp.
Referenced by baseShapeNames::indexToShapeName(), property::material(), property::nameToIndex(), Wall::readCommon(), Time::readDictionary(), baseShapeNames::shapeNameToIndex(), shape::shapeNameToPropId(), and countField::variableName().
|
pure virtual |
Implemented in dictionary, and dataEntry.
|
inlinevirtual |
pointer to this dictionary
Reimplemented in dictionary, and dataEntry.
Definition at line 109 of file iEntry.hpp.
|
inlinevirtual |
const pointer to this dictionary
Reimplemented in dictionary, and dataEntry.
Definition at line 115 of file iEntry.hpp.
|
inlinevirtual |
if this is a dictionary
Reimplemented in dictionary, and dataEntry.
Definition at line 121 of file iEntry.hpp.
|
pure virtual |
const ref to parrent dictionary
Implemented in dictionary, and dataEntry.
|
pure virtual |
ref to this dictionary, if it is a dictionary
Implemented in dictionary, and dataEntry.
|
pure virtual |
const ref to this dictionary, if it is a dicrionary
Implemented in dictionary, and dataEntry.
|
pure virtual |
clone the object
Implemented in dictionary, and dataEntry.
Implemented in dictionary, and dataEntry.
Referenced by dictionary::dictionary().
|
pure virtual |
clone the object and change its ownership to parDict
Implemented in dictionary, and dataEntry.
|
pure virtual |
clone the object and change its ownership to parDict
Implemented in dictionary, and dataEntry.
|
pure virtual |
read from stream
Implemented in dictionary, and dataEntry.
Referenced by pFlow::operator>>().
|
pure virtual |
write to stream
Implemented in dictionary, baseShapeNames, and dataEntry.
Referenced by pFlow::operator<<().
|
protected |
Definition at line 58 of file iEntry.hpp.
Referenced by iEntry< Key, T * >::iEntry(), and iEntry< Key, T * >::keyword().