CAPD RedHom Library
capd::homAux::SortedIndices< Rng, Cmp > Class Template Reference

#include <capd/homAux/SortedIndices.h>

Classes

struct  GetValue
 

Public Types

typedef boost::range_reference< Rng >::type reference
 
typedef std::vector< size_tIndices
 
typedef boost::transform_iterator< GetValue, typename boost::range_iterator< Indices >::type, reference, referenceValueIterator
 

Public Member Functions

 SortedIndices (Rng &rng, Cmp cmp=Cmp())
 
void operator() ()
 
const Indicesindices ()
 
boost::iterator_range< ValueIteratorvalues ()
 
size_t size () const
 
reference operator[] (size_t idx)
 

Member Typedef Documentation

template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
typedef std::vector<size_t> capd::homAux::SortedIndices< Rng, Cmp >::Indices
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
typedef boost::range_reference<Rng>::type capd::homAux::SortedIndices< Rng, Cmp >::reference
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
typedef boost::transform_iterator<GetValue, typename boost::range_iterator<Indices>::type, reference, reference> capd::homAux::SortedIndices< Rng, Cmp >::ValueIterator

Constructor & Destructor Documentation

template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
capd::homAux::SortedIndices< Rng, Cmp >::SortedIndices ( Rng &  rng,
Cmp  cmp = Cmp() 
)
inlineexplicit

Member Function Documentation

template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
const Indices& capd::homAux::SortedIndices< Rng, Cmp >::indices ( )
inline
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
void capd::homAux::SortedIndices< Rng, Cmp >::operator() ( )
inline
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
reference capd::homAux::SortedIndices< Rng, Cmp >::operator[] ( size_t  idx)
inline
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
size_t capd::homAux::SortedIndices< Rng, Cmp >::size ( ) const
inline
template<typename Rng , typename Cmp = std::less<typename Rng::value_type>>
boost::iterator_range<ValueIterator> capd::homAux::SortedIndices< Rng, Cmp >::values ( )
inline