Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::gen::degenerate_set Class Template Reference

A set which supports degenerate elements. More...

#include <more/gen/degenerate_set.h>

Inheritance diagram for more::gen::degenerate_set:

Inheritance graph
[legend]
List of all members.

Public Types

Public Methods


Detailed Description

template<typename Key, typename Compare = std::less<Key>>
class more::gen::degenerate_set< Key, Compare >

A set which supports degenerate elements.

The degeneracy of an element is defined as the number of insertions minus the number of erases of the element or values which is equal to it according to the given comparison functional.


Member Typedef Documentation

template<typename Key, typename Compare = std::less<Key>>
typedef transforming_iterator<sub_iterator, selector> more::gen::degenerate_set::const_iterator
 

template<typename Key, typename Compare = std::less<Key>>
typedef const value_type& more::gen::degenerate_set::const_reference
 

template<typename Key, typename Compare = std::less<Key>>
typedef transforming_iterator<reverse_sub_iterator, selector> more::gen::degenerate_set::const_reverse_iterator
 

template<typename Key, typename Compare = std::less<Key>>
typedef container::difference_type more::gen::degenerate_set::difference_type
 

template<typename Key, typename Compare = std::less<Key>>
typedef const_iterator more::gen::degenerate_set::iterator
 

template<typename Key, typename Compare = std::less<Key>>
typedef Compare more::gen::degenerate_set::key_compare
 

template<typename Key, typename Compare = std::less<Key>>
typedef Key more::gen::degenerate_set::key_type
 

template<typename Key, typename Compare = std::less<Key>>
typedef value_type* more::gen::degenerate_set::pointer
 

template<typename Key, typename Compare = std::less<Key>>
typedef value_type& more::gen::degenerate_set::reference
 

template<typename Key, typename Compare = std::less<Key>>
typedef const_reverse_iterator more::gen::degenerate_set::reverse_iterator
 

template<typename Key, typename Compare = std::less<Key>>
typedef container::size_type more::gen::degenerate_set::size_type
 

template<typename Key, typename Compare = std::less<Key>>
typedef std::size_t more::gen::degenerate_set::size_type
 

template<typename Key, typename Compare = std::less<Key>>
typedef Compare more::gen::degenerate_set::value_compare
 

template<typename Key, typename Compare = std::less<Key>>
typedef Key more::gen::degenerate_set::value_type
 


Constructor & Destructor Documentation

template<typename Key, typename Compare = std::less<Key>>
more::gen::degenerate_set< Key, Compare >::degenerate_set   [inline]
 

template<typename Key, typename Compare = std::less<Key>>
more::gen::degenerate_set< Key, Compare >::degenerate_set degenerate_set< Key, Compare > const &    x [inline]
 

template<typename Key, typename Compare = std::less<Key>>
more::gen::degenerate_set< Key, Compare >::degenerate_set key_compare const &    kc [inline]
 


Member Function Documentation

template<typename Key, typename Compare = std::less<Key>>
iterator more::gen::degenerate_set< Key, Compare >::begin   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::count key_type const &    k const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::degeneracy key_type const &    k const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::degeneracy iterator    it const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::empty   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
iterator more::gen::degenerate_set< Key, Compare >::end   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
std::pair<iterator, iterator> more::gen::degenerate_set< Key, Compare >::equal_range key_type const &    k const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::erase key_type const &    k [inline]
 

Sink the degeneracy of k, and remove if zero.

template<typename Key, typename Compare = std::less<Key>>
void more::gen::degenerate_set< Key, Compare >::erase iterator    it,
iterator    it_end
[inline]
 

Erase a range of iterators.

template<typename Key, typename Compare = std::less<Key>>
void more::gen::degenerate_set< Key, Compare >::erase iterator    it [inline]
 

Decrease the degeneracy of it, and remove if zero.

Precondition:
it must be a valid iterator in this container.

template<typename Key, typename Compare = std::less<Key>>
iterator more::gen::degenerate_set< Key, Compare >::find key_type const &    k const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
std::pair<iterator, size_type> more::gen::degenerate_set< Key, Compare >::insert iterator    it [inline]
 

Increase the degneracy of it.

Precondition:
it must be a valid iterator pointing into this container.

template<typename Key, typename Compare = std::less<Key>>
std::pair<iterator, size_type> more::gen::degenerate_set< Key, Compare >::insert iterator    hint,
const value_type   x
[inline]
 

Insert with hint.

template<typename Key, typename Compare = std::less<Key>>
std::pair<iterator, size_type> more::gen::degenerate_set< Key, Compare >::insert const value_type   x [inline]
 

Insert x into the set.

Returns:
A pair of the iterator to the value, and the degeneracy of the value before the insertion.

template<typename Key, typename Compare = std::less<Key>>
key_compare more::gen::degenerate_set< Key, Compare >::key_comp   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
iterator more::gen::degenerate_set< Key, Compare >::lower_bound const key_type   k const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::max_size   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
bool more::gen::degenerate_set< Key, Compare >::operator!= degenerate_set< Key, Compare > const &    rhs const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
bool more::gen::degenerate_set< Key, Compare >::operator< degenerate_set< Key, Compare > const &    rhs const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
bool more::gen::degenerate_set< Key, Compare >::operator<= degenerate_set< Key, Compare > const &    rhs const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
degenerate_set& more::gen::degenerate_set< Key, Compare >::operator= degenerate_set< Key, Compare > const &    rhs [inline]
 

template<typename Key, typename Compare = std::less<Key>>
bool more::gen::degenerate_set< Key, Compare >::operator== degenerate_set< Key, Compare > const &    rhs const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
bool more::gen::degenerate_set< Key, Compare >::operator> degenerate_set< Key, Compare > const &    rhs const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
bool more::gen::degenerate_set< Key, Compare >::operator>= degenerate_set< Key, Compare > const &    rhs const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
reverse_iterator more::gen::degenerate_set< Key, Compare >::rbegin   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
reverse_iterator more::gen::degenerate_set< Key, Compare >::rend   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
size_type more::gen::degenerate_set< Key, Compare >::size   const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
void more::gen::degenerate_set< Key, Compare >::swap degenerate_set< Key, Compare > &    x [inline]
 

template<typename Key, typename Compare = std::less<Key>>
iterator more::gen::degenerate_set< Key, Compare >::upper_bound const key_type   k const [inline]
 

template<typename Key, typename Compare = std::less<Key>>
value_compare more::gen::degenerate_set< Key, Compare >::value_comp   const [inline]
 


The documentation for this class was generated from the following file:
Generated on Sat Sep 7 19:12:25 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.