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

DictionaryBase Class Template Reference

Inheritance diagram for DictionaryBase:

Inheritance graph
[legend]
Collaboration diagram for DictionaryBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class IDLListType, class T>
class Foam::DictionaryBase< IDLListType, T >

Definition at line 74 of file DictionaryBase.H.


Public Member Functions

 DictionaryBase ()
 Null constructor.
 DictionaryBase (const DictionaryBase &)
 Copy construct.
template<class INew>
 DictionaryBase (Istream &is, const INew &inewt)
 Construct from Istream using given Istream constructor class.
 DictionaryBase (Istream &is)
 Construct from Istream.
bool found (const word &keyword) const
 Search DictionaryBase for given keyword.
const T * lookup (const word &) const
 Find and return entry.
T * lookup (const word &)
 Find and return entry.
wordList toc () const
 Return the table of contents.
void insert (const word &keyword, T *)
 Add at head of dictionary.
void append (const word &keyword, T *)
 Add at tail of dictionary.
T * remove (const word &keyword)
 Remove and return entry specified by keyword.
void clear ()
 Clear the dictionary.
void operator= (const DictionaryBase &)
const T * operator[] (const word &key) const
 Find and return entry.
T * operator[] (const word &key)
 Find and return entry.

Friends

Ostream & operator (Ostream &, const DictionaryBase< IDLListType, T > &)

Constructor & Destructor Documentation

DictionaryBase (  ) 

Null constructor.

DictionaryBase ( const DictionaryBase< IDLListType, T > &   ) 

Copy construct.

DictionaryBase ( Istream &  is,
const INew &  inewt 
)

Construct from Istream using given Istream constructor class.

DictionaryBase ( Istream &  is  ) 

Construct from Istream.


Member Function Documentation

bool found ( const word &  keyword  )  const

Search DictionaryBase for given keyword.

const T* lookup ( const word &   )  const

Find and return entry.

Referenced by DictionaryBase< Foam::DLList< T * >, T >::operator[]().

Here is the caller graph for this function:

T* lookup ( const word &   ) 

Find and return entry.

wordList toc (  )  const

Return the table of contents.

void insert ( const word &  keyword,
T *   
)

Add at head of dictionary.

void append ( const word &  keyword,
T *   
)

Add at tail of dictionary.

T* remove ( const word &  keyword  ) 

Remove and return entry specified by keyword.

void clear (  ) 

Clear the dictionary.

void operator= ( const DictionaryBase< IDLListType, T > &   ) 

const T* operator[] ( const word &  key  )  const [inline]

Find and return entry.

Definition at line 145 of file DictionaryBase.H.

T* operator[] ( const word &  key  )  [inline]

Find and return entry.

Definition at line 151 of file DictionaryBase.H.


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const DictionaryBase< IDLListType, T > &   
) [friend]


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd