Abstract base class for complex tokens. More...
Public Member Functions | |
| TypeName ("compound") | |
| Declare type-name, virtual type (with debug switch) More... | |
| declareRunTimeSelectionTable (autoPtr, compound, Istream,(Istream &is),(is)) | |
| Declare run-time constructor selection table. More... | |
| compound () | |
| Default construct. More... | |
| virtual | ~compound ()=default |
| Destructor. More... | |
| bool | empty () const |
| bool & | empty () |
| virtual label | size () const =0 |
| virtual void | write (Ostream &os) const =0 |
Public Member Functions inherited from refCount | |
| constexpr | refCount () noexcept |
| Construct null initializing count to 0. More... | |
| int | count () const noexcept |
| Return the current reference count. More... | |
| bool | unique () const noexcept |
| Return true if the reference count is zero. More... | |
| void | operator++ () noexcept |
| Increment the reference count. More... | |
| void | operator++ (int) noexcept |
| Increment the reference count. More... | |
| void | operator-- () noexcept |
| Decrement the reference count. More... | |
| void | operator-- (int) noexcept |
| Decrement the reference count. More... | |
Static Public Member Functions | |
| static autoPtr< compound > | New (const word &type, Istream &is) |
| Select null constructed. More... | |
| static bool | isCompound (const word &name) |
| Return true if name is a known (registered) compound type. More... | |
Friends | |
| Ostream & | operator<< (Ostream &os, const compound &ct) |
| Output operator. More... | |
|
virtualdefault |
Destructor.
| TypeName | ( | "compound" | ) |
Declare type-name, virtual type (with debug switch)
Declare run-time constructor selection table.
|
static |
Select null constructed.
Definition at line 56 of file token.C.
References Foam::abort(), Foam::FatalIOError, and FatalIOErrorInLookup.
Referenced by UIPstream::read().
Return true if name is a known (registered) compound type.
Definition at line 80 of file token.C.
References Foam::name().
Referenced by UIPstream::read().
|
inline |
Definition at line 201 of file token.H.
Referenced by Foam::printTokenInfo().
|
pure virtual |
Implemented in token::Compound< T >.
|
pure virtual |
Implemented in token::Compound< T >.
Referenced by Foam::operator<<().