FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

token::compound Class Reference

Abstract base class for complex tokens. More...

#include <src/OpenFOAM/db/IOstreams/token/token.H>


Detailed Description

Abstract base class for complex tokens.

Definition at line 120 of file token.H.

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

List of all members.

Public Member Functions

 TypeName ("compound")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, compound, Istream,(Istream &is),(is))
 Declare run-time constructor selection table.
 compound ()
 Construct null.
virtual  ~compound ()
bool  empty () const
bool &  empty ()
virtual label  size () const =0
virtual void  write (Ostream &) const =0

Static Public Member Functions

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

Friends

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

Constructor & Destructor Documentation

compound (  ) [inline]

Construct null.

Definition at line 158 of file token.H.

~compound (  ) [virtual]

Definition at line 49 of file token.C.


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

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, and Foam::nl.

Referenced by ISstream::read(), and IPstream::read().

bool isCompound ( const word &   name  ) [static]

Return true if name is a compound type.

Definition at line 79 of file token.C.

Referenced by ISstream::read(), and IPstream::read().

bool empty (  ) const [inline]

Definition at line 182 of file token.H.

bool& empty (  ) [inline]

Definition at line 187 of file token.H.

virtual label size (  ) const [pure virtual]

Implemented in token::Compound< T >.

virtual void write ( Ostream &    ) const [pure virtual]

Implemented in token::Compound< T >.

Referenced by Foam::operator<<().


Friends And Related Function Documentation

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

The documentation for this class was generated from the following files:
  • src/OpenFOAM/db/IOstreams/token/token.H
  • src/OpenFOAM/db/IOstreams/token/token.C