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... | |
compound (const compound &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~compound () |
Destructor. More... | |
bool | empty () const |
bool & | empty () |
virtual label | size () const =0 |
virtual void | write (Ostream &) const =0 |
void | operator= (const compound &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from refCount | |
int | count () const |
Return the current reference count. More... | |
bool | unique () const |
Return true if the reference count is 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... | |
void | operator= (const refCount &)=delete |
Disallow bitwise assignment. 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... | |
Friends | |
Ostream & | operator<< (Ostream &, const compound &) |
Additional Inherited Members | |
Protected Member Functions inherited from refCount | |
refCount () | |
Construct null initialising count to 0. More... | |
refCount (const refCount &)=delete | |
Disallow copy. More... | |
TypeName | ( | "compound" | ) |
Runtime type information.
Declare run-time constructor selection table.
|
static |
Select null constructed.
Definition at line 77 of file token.C.
References Foam::abort(), Foam::endl(), Foam::FatalIOError, FatalIOErrorInFunction, and Foam::nl.
Referenced by UIPstream::read().
|
static |
Return true if name is a compound type.
Definition at line 118 of file token.C.
References Foam::name().
Referenced by UIPstream::read(), and Foam::writeEntry().
|
inline |
Definition at line 183 of file token.H.
Referenced by Foam::operator<<().
|
pure virtual |
Implemented in token::Compound< T >.
|
pure virtual |
Implemented in token::Compound< T >.
Referenced by Foam::operator<<().
|
delete |
Disallow default bitwise assignment.