ug4
boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap > Class Template Reference

#include <bucket_sorter.hpp>

Classes

class  stack_
 

Public Types

typedef BucketType bucket_type
 
typedef Bucket Bucket_type
 
typedef stack_< ConstIter, ConstIndexValueMapconst_stack
 
typedef std::vector< value_type >::const_iterator ConstIndexValueMap
 
typedef std::vector< size_type >::const_iterator ConstIter
 
typedef std::vector< value_type >::iterator IndexValueMap
 
typedef std::vector< size_type >::iterator Iter
 
typedef std::vector< value_type >::size_type size_type
 
typedef stack_< Iter, IndexValueMapstack
 
typedef ValueIndexMap value_index_map
 
typedef ValueType value_type
 

Public Member Functions

 bucket_sorter ()
 
 bucket_sorter (size_type _length, bucket_type _max_bucket, const Bucket &_bucket=Bucket(), const ValueIndexMap &_id=ValueIndexMap())
 
stack operator[] (const bucket_type &i)
 
const_stack operator[] (const bucket_type &i) const
 
void push (const value_type &x)
 
void push_back (const value_type &x)
 
void push_front (const value_type &x)
 
void remove (const value_type &x)
 
size_t size () const
 
void update (const value_type &x)
 
void update_back (const value_type &x)
 
void update_front (const value_type &x)
 

Static Public Member Functions

static size_type invalid_value ()
 

Protected Attributes

Bucket bucket
 
std::vector< size_type >::iterator head
 
ValueIndexMap id
 
std::vector< value_typeid_to_value
 
std::vector< size_typenext
 
std::vector< size_typeprev
 
std::vector< size_type >::iterator tail
 

Member Typedef Documentation

◆ bucket_type

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef BucketType boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::bucket_type

◆ Bucket_type

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef Bucket boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::Bucket_type

◆ const_stack

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef stack_<ConstIter, ConstIndexValueMap> boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::const_stack

◆ ConstIndexValueMap

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef std::vector<value_type>::const_iterator boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::ConstIndexValueMap

◆ ConstIter

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef std::vector<size_type>::const_iterator boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::ConstIter

◆ IndexValueMap

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef std::vector<value_type>::iterator boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::IndexValueMap

◆ Iter

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef std::vector<size_type>::iterator boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::Iter

◆ size_type

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef std::vector<value_type>::size_type boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::size_type

◆ stack

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef stack_<Iter, IndexValueMap> boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::stack

◆ value_index_map

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef ValueIndexMap boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::value_index_map

◆ value_type

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
typedef ValueType boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::value_type

Constructor & Destructor Documentation

◆ bucket_sorter() [1/2]

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::bucket_sorter ( size_type  _length,
bucket_type  _max_bucket,
const Bucket &  _bucket = Bucket(),
const ValueIndexMap &  _id = ValueIndexMap() 
)
inline

◆ bucket_sorter() [2/2]

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::bucket_sorter ( )
inline

References untested.

Member Function Documentation

◆ invalid_value()

◆ operator[]() [1/2]

◆ operator[]() [2/2]

◆ push()

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
void boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::push ( const value_type x)
inline

◆ push_back()

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
void boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::push_back ( const value_type x)
inline

◆ push_front()

◆ remove()

◆ size()

◆ update()

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
void boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::update ( const value_type x)
inline

◆ update_back()

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
void boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::update_back ( const value_type x)
inline

◆ update_front()

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
void boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::update_front ( const value_type x)
inline

Member Data Documentation

◆ bucket

◆ head

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
std::vector<size_type>::iterator boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::head
protected

◆ id

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
ValueIndexMap boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::id
protected

◆ id_to_value

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
std::vector<value_type> boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::id_to_value
protected

◆ next

◆ prev

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
std::vector<size_type> boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::prev
protected

◆ tail

template<class BucketType , class ValueType , class Bucket , class ValueIndexMap >
std::vector<size_type>::iterator boost::bucket_sorter< BucketType, ValueType, Bucket, ValueIndexMap >::tail
protected

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