Public Member Functions | List of all members
Dictionary< T > Class Template Reference

General purpose template dictionary class that manages the storage associated with it. More...

Inheritance diagram for Dictionary< T >:
Inheritance graph
[legend]
Collaboration diagram for Dictionary< T >:
Collaboration graph
[legend]

Public Member Functions

 Dictionary (const label size=128)
 
 Dictionary (const Dictionary &dict)
 
bool erase (const word &keyword)
 
- Public Member Functions inherited from DictionaryBase< IDLList< T >, T >
 DictionaryBase (const label size=128)
 
 DictionaryBase (const DictionaryBase &dict)
 
 DictionaryBase (Istream &is, const INew &inew)
 
 DictionaryBase (Istream &is)
 
bool found (const word &keyword) const
 
const Tcfind (const word &keyword) const
 
Tfind (const word &keyword)
 
const Tlookup (const word &keyword) const
 
Tlookup (const word &keyword)
 
wordList toc () const
 
wordList sortedToc () const
 
wordList sortedToc (const Compare &comp) const
 
Foam::wordList sortedToc (const Compare &comp) const
 
void insert (const word &keyword, T *)
 
void append (const word &keyword, T *)
 
Tremove (const word &keyword)
 
void clear ()
 
void transfer (DictionaryBase< IDLListType, T > &dict)
 
void operator= (const DictionaryBase &)
 
const Toperator[] (const word &key) const
 
Toperator[] (const word &key)
 
const TlookupPtr (const word &keyword) const
 
TlookupPtr (const word &keyword)
 

Additional Inherited Members

- Protected Member Functions inherited from DictionaryBase< IDLList< T >, T >
void addEntries ()
 
- Protected Attributes inherited from DictionaryBase< IDLList< T >, T >
HashTable< T * > hashedTs_
 

Detailed Description

template<class T>
class Foam::Dictionary< T >

General purpose template dictionary class that manages the storage associated with it.

It is derived from DictionaryBase instantiated on a memory managed form of intrusive doubly-linked list of <T>.

Source files

Definition at line 53 of file Dictionary.H.

Constructor & Destructor Documentation

◆ Dictionary() [1/2]

Dictionary ( const label  size = 128)
explicit

Definition at line 27 of file Dictionary.C.

◆ Dictionary() [2/2]

Dictionary ( const Dictionary< T > &  dict)

Definition at line 34 of file Dictionary.C.

Member Function Documentation

◆ erase()

bool erase ( const word keyword)

Definition at line 43 of file Dictionary.C.


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