token::compound Class Referenceabstract

Abstract base class for complex tokens. More...

Inheritance diagram for token::compound:
Collaboration diagram for token::compound:

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

Static Public Member Functions

static autoPtr< compoundNew (const word &type, Istream &)
 Select null constructed. More...
 
static bool isCompound (const word &name)
 Return true if name is a compound type. More...
 

Friends

Ostreamoperator<< (Ostream &, const compound &)
 

Additional Inherited Members

- Protected Member Functions inherited from refCount
 refCount ()
 Construct null initialising count to 0. More...
 

Detailed Description

Abstract base class for complex tokens.

Definition at line 127 of file token.H.

Constructor & Destructor Documentation

◆ compound() [1/2]

compound ( )
inline

Construct null.

Definition at line 156 of file token.H.

◆ compound() [2/2]

compound ( const compound )
delete

Disallow default bitwise copy construction.

◆ ~compound()

~compound ( )
virtual

Destructor.

Definition at line 52 of file token.C.

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 58 of file token.C.

References Foam::abort(), Foam::endl(), Foam::FatalIOError, FatalIOErrorInFunction, and Foam::nl.

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 compound type.

Definition at line 82 of file token.C.

References Foam::name().

Referenced by UIPstream::read(), and Foam::writeEntry().

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 180 of file token.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ empty() [2/2]

bool& empty ( )
inline

Definition at line 185 of file token.H.

◆ size()

virtual label size ( ) const
pure virtual

Implemented in token::Compound< T >.

◆ write()

virtual void write ( Ostream ) const
pure virtual

Implemented in token::Compound< T >.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const compound )
delete

Disallow default bitwise assignment.

Friends And Related Function Documentation

◆ operator<<

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

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