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

Template dictionary class which manages the storage associated with it. More...

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

Public Member Functions

 PtrDictionary (const label size=128)
 
 PtrDictionary (const PtrDictionary &dict)
 
template<class INew >
 PtrDictionary (Istream &is, const INew &inew)
 
 PtrDictionary (Istream &is)
 
const Toperator[] (const word &key) const
 
Toperator[] (const word &key)
 
- Public Member Functions inherited from DictionaryBase< DLPtrList< 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< DLPtrList< T >, T >
void addEntries ()
 
- Protected Attributes inherited from DictionaryBase< DLPtrList< T >, T >
HashTable< T * > hashedTs_
 

Detailed Description

template<class T>
class Foam::PtrDictionary< T >

Template dictionary class which 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 51 of file PtrDictionary.H.

Constructor & Destructor Documentation

◆ PtrDictionary() [1/4]

PtrDictionary ( const label  size = 128)

Definition at line 26 of file PtrDictionary.C.

◆ PtrDictionary() [2/4]

PtrDictionary ( const PtrDictionary< T > &  dict)

Definition at line 33 of file PtrDictionary.C.

◆ PtrDictionary() [3/4]

PtrDictionary ( Istream is,
const INew inew 
)

Definition at line 41 of file PtrDictionary.C.

◆ PtrDictionary() [4/4]

Definition at line 48 of file PtrDictionary.C.

Member Function Documentation

◆ operator[]() [1/2]

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

Definition at line 77 of file PtrDictionary.H.

◆ operator[]() [2/2]

T& operator[] ( const word key)
inline

Definition at line 83 of file PtrDictionary.H.


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