StarEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
star::Dictionary< TKey, TValue > Class Template Reference

#include <Dictionary.h>

Collaboration diagram for star::Dictionary< TKey, TValue >:
Collaboration graph

Public Types

typedef
std::unordered_multimap< TKey,
TValue > 
dictionary
 
typedef dictionary::iterator iterator
 
typedef dictionary::const_iterator const_interator
 
typedef TKey key_type
 
typedef TValue value_type
 
typedef uint32 size_type
 
typedef dictionary::reference reference
 
typedef dictionary::const_reference const_reference
 
typedef dictionary::difference_type difference_type
 
typedef dictionary::allocator_type allocator_type
 
typedef dictionary::mapped_type mapped_type
 
typedef std::pair< TKey, TValue > dkv_pair
 
typedef std::pair< TKey,
size_type
dki_pair
 
typedef std::pair< typename
dictionary::iterator, typename
dictionary::iterator > 
dictionary_pair
 

Public Member Functions

 Dictionary ()
 
 Dictionary (const Dictionary &yRef)
 
 Dictionary (Dictionary &&yRef)
 
 Dictionary (iterator begin, iterator end)
 
 ~Dictionary ()
 
Dictionary< TKey, TValue > & operator= (const Dictionary< TKey, TValue > &yRef)
 
Dictionary< TKey, TValue > & operator= (Dictionary< TKey, TValue > &&yRef)
 
TValue & operator[] (const TKey &key)
 
TValue & operator[] (dki_pair &ki_pair)
 
TValue & at (const TKey &key)
 
TValue & at (dki_pair &ki_pair)
 
TValue & at (const TKey &key, size_type index)
 
iterator begin ()
 
iterator end ()
 
const_interator cbegin () const
 
const_interator cend () const
 
iterator find (const TKey &key) const
 
size_type count (const TKey &key) const
 
const_interator lower_bound (const TKey &key) const
 
const_interator upper_bound (const TKey &key) const
 
iterator insert (const TValue &value)
 
iterator insert (TValue &&value)
 
iterator insert (const_interator hint, const value_type &value)
 
iterator insert (const_interator hint, value_type &&value)
 
iterator insert (const dkv_pair &kv_pair)
 
iterator erase (const_interator position)
 
size_type erase (const key_type &key)
 
iterator erase (const_interator first, const_interator last)
 
void clear ()
 
void swap (Dictionary< TKey, TValue > &yRef)
 
bool empty () const
 
size_type size () const
 
size_type max_size () const
 

Protected Attributes

dictionary m_MultiMap
 

Friends

template<typename TFriendKey , typename TFriendValue >
void swap (Dictionary< TFriendKey, TFriendValue > &lhs, Dictionary< TFriendKey, TFriendValue > &rhs)
 
template<typename TFriendKey , typename TFriendValue >
bool operator== (Dictionary< TFriendKey, TFriendValue > &lhs, Dictionary< TFriendKey, TValue > &rhs)
 
template<typename TFriendKey , typename TFriendValue >
bool operator!= (Dictionary< TFriendKey, TFriendValue > &lhs, Dictionary< TFriendKey, TValue > &rhs)
 

Member Typedef Documentation

template<class TKey, class TValue>
typedef dictionary::allocator_type star::Dictionary< TKey, TValue >::allocator_type
template<class TKey, class TValue>
typedef dictionary::const_iterator star::Dictionary< TKey, TValue >::const_interator
template<class TKey, class TValue>
typedef dictionary::const_reference star::Dictionary< TKey, TValue >::const_reference
template<class TKey, class TValue>
typedef std::unordered_multimap<TKey, TValue> star::Dictionary< TKey, TValue >::dictionary
template<class TKey, class TValue>
typedef std::pair< typename dictionary::iterator, typename dictionary::iterator > star::Dictionary< TKey, TValue >::dictionary_pair
template<class TKey, class TValue>
typedef dictionary::difference_type star::Dictionary< TKey, TValue >::difference_type
template<class TKey, class TValue>
typedef std::pair<TKey, size_type> star::Dictionary< TKey, TValue >::dki_pair
template<class TKey, class TValue>
typedef std::pair<TKey, TValue> star::Dictionary< TKey, TValue >::dkv_pair
template<class TKey, class TValue>
typedef dictionary::iterator star::Dictionary< TKey, TValue >::iterator
template<class TKey, class TValue>
typedef TKey star::Dictionary< TKey, TValue >::key_type
template<class TKey, class TValue>
typedef dictionary::mapped_type star::Dictionary< TKey, TValue >::mapped_type
template<class TKey, class TValue>
typedef dictionary::reference star::Dictionary< TKey, TValue >::reference
template<class TKey, class TValue>
typedef uint32 star::Dictionary< TKey, TValue >::size_type
template<class TKey, class TValue>
typedef TValue star::Dictionary< TKey, TValue >::value_type

Constructor & Destructor Documentation

template<typename TKey , typename TValue >
star::Dictionary< TKey, TValue >::Dictionary ( )
template<typename TKey , typename TValue >
star::Dictionary< TKey, TValue >::Dictionary ( const Dictionary< TKey, TValue > &  yRef)
template<typename TKey , typename TValue >
star::Dictionary< TKey, TValue >::Dictionary ( Dictionary< TKey, TValue > &&  yRef)
template<class TKey, class TValue>
star::Dictionary< TKey, TValue >::Dictionary ( iterator  begin,
iterator  end 
)
template<typename TKey , typename TValue >
star::Dictionary< TKey, TValue >::~Dictionary ( )

Member Function Documentation

template<typename TKey, typename TValue >
TValue & star::Dictionary< TKey, TValue >::at ( const TKey &  key)
template<typename TKey, typename TValue >
TValue & star::Dictionary< TKey, TValue >::at ( dki_pair ki_pair)
template<typename TKey, typename TValue >
TValue & star::Dictionary< TKey, TValue >::at ( const TKey &  key,
size_type  index 
)
template<typename TKey , typename TValue >
Dictionary< TKey, TValue >::iterator star::Dictionary< TKey, TValue >::begin ( )
template<typename TKey , typename TValue >
Dictionary< TKey, TValue >::const_interator star::Dictionary< TKey, TValue >::cbegin ( ) const
template<typename TKey , typename TValue >
Dictionary< TKey, TValue >::const_interator star::Dictionary< TKey, TValue >::cend ( ) const
template<typename TKey , typename TValue >
void star::Dictionary< TKey, TValue >::clear ( )
template<typename TKey, typename TValue >
Dictionary< TKey, TValue >::size_type star::Dictionary< TKey, TValue >::count ( const TKey &  key) const
template<typename TKey , typename TValue >
bool star::Dictionary< TKey, TValue >::empty ( ) const
template<typename TKey , typename TValue >
Dictionary< TKey, TValue >::iterator star::Dictionary< TKey, TValue >::end ( )
template<class TKey, class TValue>
iterator star::Dictionary< TKey, TValue >::erase ( const_interator  position)
template<class TKey, class TValue>
size_type star::Dictionary< TKey, TValue >::erase ( const key_type key)
template<class TKey, class TValue>
iterator star::Dictionary< TKey, TValue >::erase ( const_interator  first,
const_interator  last 
)
template<typename TKey, typename TValue >
Dictionary< TKey, TValue >::iterator star::Dictionary< TKey, TValue >::find ( const TKey &  key) const
template<typename TKey , typename TValue>
Dictionary< TKey, TValue >::iterator star::Dictionary< TKey, TValue >::insert ( const TValue &  value)
template<typename TKey , typename TValue>
Dictionary< TKey, TValue >::iterator star::Dictionary< TKey, TValue >::insert ( TValue &&  value)
template<class TKey, class TValue>
iterator star::Dictionary< TKey, TValue >::insert ( const_interator  hint,
const value_type value 
)
template<class TKey, class TValue>
iterator star::Dictionary< TKey, TValue >::insert ( const_interator  hint,
value_type &&  value 
)
template<typename TKey , typename TValue>
Dictionary< TKey, TValue >::iterator star::Dictionary< TKey, TValue >::insert ( const dkv_pair kv_pair)
template<typename TKey, typename TValue >
Dictionary< TKey, TValue >::const_interator star::Dictionary< TKey, TValue >::lower_bound ( const TKey &  key) const
template<typename TKey , typename TValue >
Dictionary< TKey, TValue >::size_type star::Dictionary< TKey, TValue >::max_size ( ) const
template<typename TKey, typename TValue>
Dictionary< TKey, TValue > & star::Dictionary< TKey, TValue >::operator= ( const Dictionary< TKey, TValue > &  yRef)
template<typename TKey, typename TValue>
Dictionary< TKey, TValue > & star::Dictionary< TKey, TValue >::operator= ( Dictionary< TKey, TValue > &&  yRef)
template<typename TKey, typename TValue >
TValue & star::Dictionary< TKey, TValue >::operator[] ( const TKey &  key)
template<typename TKey, typename TValue >
TValue & star::Dictionary< TKey, TValue >::operator[] ( dki_pair ki_pair)
template<typename TKey , typename TValue >
Dictionary< TKey, TValue >::size_type star::Dictionary< TKey, TValue >::size ( ) const
template<typename TKey, typename TValue>
void star::Dictionary< TKey, TValue >::swap ( Dictionary< TKey, TValue > &  yRef)
template<typename TKey, typename TValue >
Dictionary< TKey, TValue >::const_interator star::Dictionary< TKey, TValue >::upper_bound ( const TKey &  key) const

Friends And Related Function Documentation

template<class TKey, class TValue>
template<typename TFriendKey , typename TFriendValue >
bool operator!= ( Dictionary< TFriendKey, TFriendValue > &  lhs,
Dictionary< TFriendKey, TValue > &  rhs 
)
friend
template<class TKey, class TValue>
template<typename TFriendKey , typename TFriendValue >
bool operator== ( Dictionary< TFriendKey, TFriendValue > &  lhs,
Dictionary< TFriendKey, TValue > &  rhs 
)
friend
template<class TKey, class TValue>
template<typename TFriendKey , typename TFriendValue >
void swap ( Dictionary< TFriendKey, TFriendValue > &  lhs,
Dictionary< TFriendKey, TFriendValue > &  rhs 
)
friend

Member Data Documentation

template<class TKey, class TValue>
dictionary star::Dictionary< TKey, TValue >::m_MultiMap
protected

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