Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Dictionary< T > Class Template Reference

#include <Dictionary.h>

List of all members.

Public Member Functions

 Dictionary ()
 ~Dictionary ()
T & operator[] (const Text &key)
void insert (const Text &key, const T &val)
void remove (const Text &key)
void clear ()
int size () const
int isEmpty () const
int contains (const Text &key) const
find (const Text &key, T defval) const

Friends

class DictionaryIter< T >

Detailed Description

template<class T>
class Dictionary< T >

Definition at line 28 of file Dictionary.h.


Constructor & Destructor Documentation

template<class T >
Dictionary< T >::Dictionary ( )

Definition at line 25 of file Dictionary.inl.

template<class T >
Dictionary< T >::~Dictionary ( )

Definition at line 29 of file Dictionary.inl.


Member Function Documentation

template<class T >
void Dictionary< T >::clear ( )

Definition at line 42 of file Dictionary.inl.

template<class T >
int Dictionary< T >::contains ( const Text key) const

Definition at line 145 of file Dictionary.inl.

template<class T>
T Dictionary< T >::find ( const Text key,
defval 
) const

Definition at line 164 of file Dictionary.inl.

template<class T>
void Dictionary< T >::insert ( const Text key,
const T &  val 
)

Definition at line 102 of file Dictionary.inl.

template<class T>
int Dictionary< T >::isEmpty ( ) const
inline

Definition at line 42 of file Dictionary.h.

template<class T >
T & Dictionary< T >::operator[] ( const Text key)

Definition at line 60 of file Dictionary.inl.

template<class T >
void Dictionary< T >::remove ( const Text key)

Definition at line 111 of file Dictionary.inl.

template<class T>
int Dictionary< T >::size ( ) const
inline

Definition at line 41 of file Dictionary.h.


Friends And Related Function Documentation

template<class T>
friend class DictionaryIter< T >
friend

Definition at line 55 of file Dictionary.h.


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