Abstract base class for complex tokens. More...
#include <src/OpenFOAM/db/IOstreams/token/token.H>
Inheritance diagram for token::compound:
Collaboration diagram for token::compound:Public Member Functions | |
| TypeName ("compound") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, compound, Istream,(Istream &is),(is)) | |
| Declare run-time constructor selection table. | |
| compound () | |
| Construct null. | |
| virtual | ~compound () |
| bool | empty () const |
| bool & | empty () |
| virtual label | size () const =0 |
| virtual void | write (Ostream &) const =0 |
Public Member Functions inherited from refCount | |
| refCount () | |
| Construct null with zero count. | |
| int | count () const |
| Return the reference count. | |
| bool | okToDelete () const |
| Return true if the reference count is zero. | |
| void | resetRefCount () |
| Reset the reference count to zero. | |
| void | operator++ () |
| Increment the reference count. | |
| void | operator++ (int) |
| Increment the reference count. | |
| void | operator-- () |
| Decrement the reference count. | |
| void | operator-- (int) |
| Decrement the reference count. | |
Static Public Member Functions | |
| static autoPtr< compound > | New (const word &type, Istream &) |
| Select null constructed. | |
| static bool | isCompound (const word &name) |
| Return true if name is a compound type. | |
Friends | |
| Ostream & | operator<< (Ostream &, const compound &) |
| TypeName | ( | "compound" | ) |
Runtime type information.
Declare run-time constructor selection table.
|
static |
Select null constructed.
Definition at line 56 of file token.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and Foam::nl.
Referenced by ISstream::read(), and IPstream::read().
|
static |
Return true if name is a compound type.
Definition at line 79 of file token.C.
Referenced by ISstream::read(), and IPstream::read().
|
inline |
Definition at line 182 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<<().