Logo Search packages:      
Sourcecode: pan version File versions  Download package

Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Friends

Loki::AssocVector< K, V, C, A > Class Template Reference

Inheritance diagram for Loki::AssocVector< K, V, C, A >:
Inheritance graph
[legend]
Collaboration diagram for Loki::AssocVector< K, V, C, A >:
Collaboration graph
[legend]

List of all members.

Classes

class  value_compare

Public Types

typedef A allocator_type
typedef Base::const_iterator const_iterator
typedef A::const_pointer const_pointer
typedef A::const_reference const_reference
typedef
Base::const_reverse_iterator 
const_reverse_iterator
typedef Base::difference_type difference_type
typedef Base::iterator iterator
typedef C key_compare
typedef K key_type
typedef V mapped_type
typedef A::pointer pointer
typedef A::reference reference
typedef Base::reverse_iterator reverse_iterator
typedef Base::size_type size_type
typedef Base::value_type value_type

Public Member Functions

template<class InputIterator >
void assign (InputIterator first, InputIterator last)
 AssocVector (const key_compare &comp=key_compare(), const A &alloc=A())
template<class InputIterator >
 AssocVector (InputIterator first, InputIterator last, const key_compare &comp=key_compare(), const A &alloc=A())
iterator begin ()
const_iterator begin () const
void clear ()
size_type count (const key_type &k) const
bool empty () const
const_iterator end () const
iterator end ()
std::pair< iterator, iterator > equal_range (const key_type &k)
std::pair< const_iterator,
const_iterator > 
equal_range (const key_type &k) const
void erase (iterator pos)
size_type erase (const key_type &k)
void erase (iterator first, iterator last)
iterator find (const key_type &k)
const_iterator find (const key_type &k) const
std::pair< iterator, bool > insert (const value_type &val)
iterator insert (iterator pos, const value_type &val)
template<class InputIterator >
void insert (InputIterator first, InputIterator last)
key_compare key_comp () const
const_iterator lower_bound (const key_type &k) const
iterator lower_bound (const key_type &k)
size_type max_size ()
bool operator< (const AssocVector &rhs) const
AssocVectoroperator= (const AssocVector &rhs)
mapped_type & operator[] (const key_type &key)
const_reverse_iterator rbegin () const
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rend () const
size_type size () const
void swap (AssocVector &other)
iterator upper_bound (const key_type &k)
const_iterator upper_bound (const key_type &k) const
value_compare value_comp () const

Private Types

typedef std::vector< std::pair
< K, V >, A > 
Base
typedef
Private::AssocVectorCompare< V,
C
MyCompare

Private Member Functions

bool operator() (const first_argument_type &lhs, const first_argument_type &rhs) const
bool operator() (const first_argument_type &lhs, const Data &rhs) const
bool operator() (const Data &lhs, const first_argument_type &rhs) const
bool operator() (const Data &lhs, const Data &rhs) const

Friends

bool operator!= (const AssocVector &lhs, const AssocVector &rhs)
bool operator<= (const AssocVector &lhs, const AssocVector &rhs)
bool operator== (const AssocVector &lhs, const AssocVector &rhs)
bool operator> (const AssocVector &lhs, const AssocVector &rhs)
bool operator>= (const AssocVector &lhs, const AssocVector &rhs)

Detailed Description

template<class K, class V, class C = std::less<K>, class A = std::allocator< std::pair<K, V> >>
class Loki::AssocVector< K, V, C, A >

Definition at line 84 of file map-vector.h.


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

Generated by  Doxygen 1.6.0   Back to index