token::compound Class Referenceabstract

Abstract base class for complex tokens. More...

Inheritance diagram for token::compound:
[legend]
Collaboration diagram for token::compound:
[legend]

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 ()=default
 Destructor. More...
 
bool empty () const
 
boolempty ()
 
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< compoundNew (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

Ostreamoperator<< (Ostream &os, const compound &ct)
 Output operator. More...
 

Detailed Description

Abstract base class for complex tokens.

Definition at line 143 of file token.H.

Constructor & Destructor Documentation

◆ compound()

compound ( )
inline

Construct null.

Definition at line 174 of file token.H.

◆ ~compound()

virtual ~compound ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "compound"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
compound  ,
Istream  ,
(Istream &is)  ,
(is)   
)

Declare run-time constructor selection table.

◆ New()

Foam::autoPtr< Foam::token::compound > New ( const word type,
Istream is 
)
static

Select null constructed.

Definition at line 56 of file token.C.

References Foam::abort(), Foam::FatalIOError, and FatalIOErrorInLookup.

Referenced by UIPstream::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isCompound()

bool isCompound ( const word name)
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty() [1/2]

bool empty ( ) const
inline

Definition at line 195 of file token.H.

Referenced by Foam::printTokenInfo().

Here is the caller graph for this function:

◆ empty() [2/2]

bool& empty ( )
inline

Definition at line 200 of file token.H.

◆ size()

virtual label size ( ) const
pure virtual

Implemented in token::Compound< T >.

◆ write()

virtual void write ( Ostream os) const
pure virtual

Implemented in token::Compound< T >.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream os,
const compound ct 
)
friend

Output operator.


The documentation for this class was generated from the following files: