Public Member Functions | Static Public Member Functions | Friends | List of all members
token::compound Class Referenceabstract

Abstract base class for complex tokens. More...

Inheritance diagram for token::compound:
Inheritance graph
[legend]
Collaboration diagram for token::compound:
Collaboration graph
[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 ()
 Destructor. More...
 
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. More...
 
int count () const
 Return the reference count. More...
 
bool okToDelete () const
 Return true if the reference count is zero. More...
 
void resetRefCount ()
 Reset the reference count to 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 &)
 

Detailed Description

Abstract base class for complex tokens.

Definition at line 122 of file token.H.

Constructor & Destructor Documentation

compound ( )
inline

Construct null.

Definition at line 160 of file token.H.

References token::compound::isCompound(), Foam::name(), token::compound::New(), token::type(), and token::compound::~compound().

Here is the call graph for this function:

~compound ( )
virtual

Destructor.

Definition at line 53 of file token.C.

References token::compound::New().

Referenced by token::compound::compound().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

TypeName ( "compound"  )

Runtime type information.

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

Declare run-time constructor selection table.

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

Select null constructed.

Definition at line 60 of file token.C.

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

Referenced by token::compound::compound(), UIPstream::read(), and token::compound::~compound().

Here is the call graph for this function:

Here is the caller graph for this function:

bool isCompound ( const word name)
static

Return true if name is a compound type.

Definition at line 83 of file token.C.

Referenced by token::compound::compound(), and UIPstream::read().

Here is the caller graph for this function:

bool empty ( ) const
inline

Definition at line 183 of file token.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

bool& empty ( )
inline

Definition at line 188 of file token.H.

References token::compound::operator<<, token::compound::size(), and token::compound::write().

Here is the call graph for this function:

virtual label size ( ) const
pure virtual

Implemented in token::Compound< T >.

Referenced by token::compound::empty().

Here is the caller graph for this function:

virtual void write ( Ostream ) const
pure virtual

Implemented in token::Compound< T >.

Referenced by token::compound::empty(), and Foam::operator<<().

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Referenced by token::compound::empty().


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