Abstract base class for complex tokens. More...
Public Member Functions | |
TypeName ("compound") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, compound, Istream,(Istream &is),(is)) | |
Declare run-time constructor selection table. More... | |
compound () | |
Construct null. More... | |
virtual | ~compound () |
Destructor. More... | |
bool | empty () const |
bool & | empty () |
virtual label | size () const =0 |
virtual void | write (Ostream &) const =0 |
![]() | |
refCount () | |
Construct null with zero count. More... | |
int | count () const |
Return the reference count. More... | |
bool | okToDelete () const |
Return true if the reference count is zero. More... | |
void | resetRefCount () |
Reset the reference count to zero. More... | |
void | operator++ () |
Increment the reference count. More... | |
void | operator++ (int) |
Increment the reference count. More... | |
void | operator-- () |
Decrement the reference count. More... | |
void | operator-- (int) |
Decrement the reference count. More... | |
Static Public Member Functions | |
static autoPtr< compound > | New (const word &type, Istream &) |
Select null constructed. More... | |
static bool | isCompound (const word &name) |
Return true if name is a compound type. More... | |
Private Member Functions | |
compound (const compound &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const compound &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
bool | empty_ |
Friends | |
Ostream & | operator<< (Ostream &, const compound &) |
|
private |
Disallow default bitwise assignment.
TypeName | ( | "compound" | ) |
Runtime type information.
Declare run-time constructor selection table.
|
static |
Select null constructed.
Definition at line 60 of file token.C.
References Foam::abort(), Foam::endl(), Foam::FatalIOError, FatalIOErrorInFunction, and Foam::nl.
Referenced by UIPstream::read(), and ISstream::readWordToken().
|
static |
Return true if name is a compound type.
Definition at line 83 of file token.C.
References Foam::name().
Referenced by UIPstream::read(), and ISstream::readWordToken().
|
inline |
Definition at line 183 of file token.H.
References token::compound::empty_.
Referenced by Foam::operator<<().
|
inline |
Definition at line 188 of file token.H.
References token::compound::empty_.
|
pure virtual |
Implemented in token::Compound< T >.
|
pure virtual |
Implemented in token::Compound< T >.
Referenced by Foam::operator<<().
|
private |
Definition at line 128 of file token.H.
Referenced by token::compound::empty().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.