vecmap< _Key, _Data, _Compare > Class Template Reference

#include <vecmap.h>

Collaboration diagram for vecmap< _Key, _Data, _Compare >:

Collaboration graph
[legend]

List of all members.

Classes

struct  key_compare

Public Types

typedef std::pair< _Key, _Data > value_type
typedef std::vector< value_typesorted_vector
typedef sorted_vector::iterator iterator

Public Member Functions

iterator begin ()
iterator end ()
unsigned size ()
void clear ()
void reserve (unsigned n)
iterator lower_bound (const _Key &k)
iterator find (const _Key &k)
_Data & operator[] (const _Key &k)
std::pair< iterator, bool > insert (const value_type &val)
void erase (const _Key &k)

Protected Attributes

sorted_vector svec
key_compare kcomp
_Compare comp


Detailed Description

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
class vecmap< _Key, _Data, _Compare >

Definition at line 27 of file vecmap.h.


Member Typedef Documentation

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
typedef sorted_vector::iterator vecmap< _Key, _Data, _Compare >::iterator

Definition at line 33 of file vecmap.h.

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
typedef std::vector<value_type> vecmap< _Key, _Data, _Compare >::sorted_vector

Definition at line 32 of file vecmap.h.

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
typedef std::pair<_Key, _Data> vecmap< _Key, _Data, _Compare >::value_type

Definition at line 31 of file vecmap.h.


Member Function Documentation

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
iterator vecmap< _Key, _Data, _Compare >::begin (  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
void vecmap< _Key, _Data, _Compare >::clear (  )  [inline]

Definition at line 53 of file vecmap.h.

References vecmap< _Key, _Data, _Compare >::svec.

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
iterator vecmap< _Key, _Data, _Compare >::end (  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
void vecmap< _Key, _Data, _Compare >::erase ( const _Key &  k  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
iterator vecmap< _Key, _Data, _Compare >::find ( const _Key &  k  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
std::pair<iterator,bool> vecmap< _Key, _Data, _Compare >::insert ( const value_type val  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
iterator vecmap< _Key, _Data, _Compare >::lower_bound ( const _Key &  k  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
_Data& vecmap< _Key, _Data, _Compare >::operator[] ( const _Key &  k  )  [inline]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
void vecmap< _Key, _Data, _Compare >::reserve ( unsigned  n  )  [inline]

Definition at line 54 of file vecmap.h.

References vecmap< _Key, _Data, _Compare >::svec.

Referenced by incremental_query::set().

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
unsigned vecmap< _Key, _Data, _Compare >::size (  )  [inline]

Definition at line 52 of file vecmap.h.

References vecmap< _Key, _Data, _Compare >::svec.


Member Data Documentation

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
_Compare vecmap< _Key, _Data, _Compare >::comp [protected]

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
key_compare vecmap< _Key, _Data, _Compare >::kcomp [protected]

Definition at line 45 of file vecmap.h.

Referenced by vecmap< _Key, _Data, _Compare >::lower_bound().

template<typename _Key, typename _Data, typename _Compare = std::less<_Key>>
sorted_vector vecmap< _Key, _Data, _Compare >::svec [protected]


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

Generated on Tue Mar 30 15:53:26 2010 for Polyora by  doxygen 1.5.9