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... | |
constexpr | compound () noexcept |
Default construct. More... | |
virtual | ~compound () noexcept=default |
Destructor. More... | |
bool | moved () const noexcept |
Get compound transferred status. More... | |
void | moved (bool b) noexcept |
Set compound transferred status. More... | |
virtual label | size () const =0 |
The size of the underlying content. More... | |
virtual void | write (Ostream &os) const =0 |
Redirect write to underlying content. More... | |
![]() | |
constexpr | refCount () noexcept |
Default construct, 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) |
Construct compound from Istream. More... | |
static bool | isCompound (const word &name) |
Test if name is a known (registered) compound type. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const compound &ct) |
Output operator. More... | |
|
inlineconstexprnoexcept |
|
virtualdefaultnoexcept |
Destructor.
TypeName | ( | "compound" | ) |
Declare type-name, virtual type (with debug switch)
Declare run-time constructor selection table.
|
static |
Construct compound from Istream.
Definition at line 56 of file token.C.
References Foam::abort(), Foam::FatalIOError, and FatalIOErrorInLookup.
Referenced by UIPstream::read(), and ISstream::read().
Test if name is a known (registered) compound type.
Definition at line 80 of file token.C.
References Foam::name().
Referenced by UIPstream::read(), and ISstream::read().
|
inlinenoexcept |
Get compound transferred status.
Definition at line 219 of file token.H.
Referenced by Foam::printTokenInfo().
|
inlinenoexcept |
Set compound transferred status.
Definition at line 225 of file token.H.
References Foam::constant::physicoChemical::b.
|
pure virtual |
The size of the underlying content.
Implemented in token::Compound< T >.
|
pure virtual |
Redirect write to underlying content.
Implemented in token::Compound< T >.
Referenced by Foam::operator<<().