OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

entry Class Reference

Inheritance diagram for entry:

Inheritance graph
[legend]
Collaboration diagram for entry:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 67 of file entry.H.


Public Member Functions

 entry (const word &keyword)
 Construct from keyword.
 entry (const entry &)
 Construct as copy.
virtual autoPtr< entry > clone () const=0
virtual ~entry ()
const word & keyword () const
 Return keyword.
word & keyword ()
 Return non-const access to keyword.
virtual const fileName & name () const=0
 Return the dictionary name.
virtual fileName & name ()=0
 Return the dictionary name.
virtual label startLineNumber () const=0
 Return line number of first token in dictionary.
virtual label endLineNumber () const=0
 Return line number of last token in dictionary.
virtual bool isStream () const
 Return true if this entry is a stream.
virtual ITstream & stream () const=0
 Return token stream if this entry is a primitive entry.
virtual bool isDict () const
 Return true if this entry is a dictionary.
virtual const dictionary & dict () const=0
 Return token stream if this entry is a primitive entry.
virtual void write (Ostream &) const =0
 Write.
void operator= (const entry &)
bool operator== (const entry &) const
bool operator!= (const entry &) const

Static Public Member Functions

static autoPtr< entry > New (Istream &is)
 Construct on freestore from Istream.

Friends

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

Constructor & Destructor Documentation

entry ( const word &  keyword  ) 

Construct from keyword.

entry ( const entry &   ) 

Construct as copy.

virtual ~entry (  )  [inline, virtual]

Definition at line 95 of file entry.H.


Member Function Documentation

virtual autoPtr<entry> clone (  )  const [pure virtual]

Implemented in dictionaryEntry, and primitiveEntry.

static autoPtr<entry> New ( Istream &  is  )  [static]

Construct on freestore from Istream.

const word& keyword (  )  const [inline]

Return keyword.

Definition at line 102 of file entry.H.

word& keyword (  )  [inline]

Return non-const access to keyword.

Definition at line 108 of file entry.H.

virtual const fileName& name (  )  const [pure virtual]

Return the dictionary name.

Implemented in dictionaryEntry, and primitiveEntry.

virtual fileName& name (  )  [pure virtual]

Return the dictionary name.

Implemented in dictionaryEntry, and primitiveEntry.

virtual label startLineNumber (  )  const [pure virtual]

Return line number of first token in dictionary.

Implemented in dictionaryEntry, and primitiveEntry.

virtual label endLineNumber (  )  const [pure virtual]

Return line number of last token in dictionary.

Implemented in dictionaryEntry, and primitiveEntry.

virtual bool isStream (  )  const [inline, virtual]

Return true if this entry is a stream.

Reimplemented in primitiveEntry.

Definition at line 126 of file entry.H.

virtual ITstream& stream (  )  const [pure virtual]

Return token stream if this entry is a primitive entry.

Implemented in dictionaryEntry, and primitiveEntry.

virtual bool isDict (  )  const [inline, virtual]

Return true if this entry is a dictionary.

Reimplemented in dictionaryEntry.

Definition at line 135 of file entry.H.

virtual const dictionary& dict (  )  const [pure virtual]

Return token stream if this entry is a primitive entry.

Implemented in dictionaryEntry, and primitiveEntry.

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

Write.

Implemented in dictionaryEntry, and primitiveEntry.

void operator= ( const entry &   ) 

bool operator== ( const entry &   )  const

bool operator!= ( const entry &   )  const


Friends And Related Function Documentation

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


The documentation for this class was generated from the following file:
  • src/OpenFOAM/db/dictionary/entry/entry.H
Copyright © 2000-2007 OpenCFD Ltd