CAPD RedHom Library
data_structures::DirectMap< Key, Value, Hasher > Class Template Reference

#include <capd/redAlg/data_structures/direct_map.h>

Classes

class  const_iterator
 

Public Types

typedef int IntType
 
typedef std::pair< Key, Value > KeyValuePair
 

Public Member Functions

 DirectMap ()
 
 DirectMap (int capacity)
 
 DirectMap (const DirectMap &other)
 
const DirectMapoperator= (const DirectMap &other)
 
 ~DirectMap ()
 
void resize (int capacity)
 
const_iterator begin () const
 
const_iterator end () const
 
bool empty () const
 
int capacity () const
 
const_iterator find (const Key &key) const
 
bool contains (const Key &key) const
 
Value & operator[] (const Key &key)
 
void erase (const Key &key)
 
void swap (DirectMap &other)
 

Member Typedef Documentation

template<typename Key, typename Value, typename Hasher>
typedef int data_structures::DirectMap< Key, Value, Hasher >::IntType
template<typename Key, typename Value, typename Hasher>
typedef std::pair<Key, Value> data_structures::DirectMap< Key, Value, Hasher >::KeyValuePair

Constructor & Destructor Documentation

template<typename Key, typename Value, typename Hasher>
data_structures::DirectMap< Key, Value, Hasher >::DirectMap ( )
inline
template<typename Key, typename Value, typename Hasher>
data_structures::DirectMap< Key, Value, Hasher >::DirectMap ( int  capacity)
inline
template<typename Key, typename Value, typename Hasher>
data_structures::DirectMap< Key, Value, Hasher >::DirectMap ( const DirectMap< Key, Value, Hasher > &  other)
inline
template<typename Key, typename Value, typename Hasher>
data_structures::DirectMap< Key, Value, Hasher >::~DirectMap ( )
inline

Member Function Documentation

template<typename Key, typename Value, typename Hasher>
const_iterator data_structures::DirectMap< Key, Value, Hasher >::begin ( ) const
inline
template<typename Key, typename Value, typename Hasher>
int data_structures::DirectMap< Key, Value, Hasher >::capacity ( ) const
inline
template<typename Key, typename Value, typename Hasher>
bool data_structures::DirectMap< Key, Value, Hasher >::contains ( const Key &  key) const
inline
template<typename Key, typename Value, typename Hasher>
bool data_structures::DirectMap< Key, Value, Hasher >::empty ( ) const
inline
template<typename Key, typename Value, typename Hasher>
const_iterator data_structures::DirectMap< Key, Value, Hasher >::end ( ) const
inline
template<typename Key, typename Value, typename Hasher>
void data_structures::DirectMap< Key, Value, Hasher >::erase ( const Key &  key)
inline
template<typename Key, typename Value, typename Hasher>
const_iterator data_structures::DirectMap< Key, Value, Hasher >::find ( const Key &  key) const
inline
template<typename Key, typename Value, typename Hasher>
const DirectMap& data_structures::DirectMap< Key, Value, Hasher >::operator= ( const DirectMap< Key, Value, Hasher > &  other)
inline
template<typename Key, typename Value, typename Hasher>
Value& data_structures::DirectMap< Key, Value, Hasher >::operator[] ( const Key &  key)
inline
template<typename Key, typename Value, typename Hasher>
void data_structures::DirectMap< Key, Value, Hasher >::resize ( int  capacity)
inline
template<typename Key, typename Value, typename Hasher>
void data_structures::DirectMap< Key, Value, Hasher >::swap ( DirectMap< Key, Value, Hasher > &  other)
inline