ViennaGrid - The Vienna Grid Library  2.1.0
Public Types | Public Member Functions | Friends
hidden_key_map< KeyT, ValueT > Class Template Reference

STL-like map where the key is automatically deduced from the value object (hence 'hidden'). More...

#include <hidden_key_map.hpp>

Public Types

typedef
hidden_key_map_const_iterator
< SelfType
const_iterator
typedef const value_typeconst_pointer
typedef const value_typeconst_reference
typedef
hidden_key_map_const_reverse_iterator
< SelfType
const_reverse_iterator
typedef std::map< KeyT, ValueT > container_type
typedef
hidden_key_map_iterator
< SelfType
iterator
typedef KeyT key_type
typedef value_typepointer
typedef value_typereference
typedef
hidden_key_map_reverse_iterator
< SelfType
reverse_iterator
typedef container_type::size_type size_type
typedef ValueT value_type

Public Member Functions

iterator begin ()
const_iterator begin () const
void clear ()
bool empty () const
iterator end ()
const_iterator end () const
iterator erase (iterator to_erase)
iterator find (const value_type &element)
const_iterator find (const value_type &element) const
std::pair< iterator, bool > insert (const value_type &element)
size_type size () const

Friends

class hidden_key_map_const_iterator< SelfType >
class hidden_key_map_const_reverse_iterator< SelfType >
class hidden_key_map_iterator< SelfType >
class hidden_key_map_reverse_iterator< SelfType >

Detailed Description

template<typename KeyT, typename ValueT>
class viennagrid::hidden_key_map< KeyT, ValueT >

STL-like map where the key is automatically deduced from the value object (hence 'hidden').

Template Parameters:
KeyTThe key functor type which extracts the key from the value object
ValueTThe value type, i.e. the element stored inside the map.

Member Typedef Documentation

typedef const value_type* const_pointer
typedef const value_type& const_reference
typedef std::map< KeyT, ValueT > container_type
typedef KeyT key_type
typedef value_type* pointer
typedef container_type::size_type size_type
typedef ValueT value_type

Member Function Documentation

iterator begin ( ) [inline]
const_iterator begin ( ) const [inline]
void clear ( ) [inline]
bool empty ( ) const [inline]
iterator end ( ) [inline]
const_iterator end ( ) const [inline]
iterator erase ( iterator  to_erase) [inline]
iterator find ( const value_type element) [inline]
const_iterator find ( const value_type element) const [inline]
std::pair<iterator, bool> insert ( const value_type element) [inline]
size_type size ( ) const [inline]

Friends And Related Function Documentation

friend class hidden_key_map_const_iterator< SelfType > [friend]
friend class hidden_key_map_iterator< SelfType > [friend]
friend class hidden_key_map_reverse_iterator< SelfType > [friend]

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