LatNet Builder Manual  2.0.1-11
Software Package for Constructing Highly Uniform Point Sets
LatBuilder::IndexedIterator::Random< SEQ, RAND > Class Template Reference

Immutable random indexed iterator. More...

#include <IndexedIterator.h>

Inherits iterator_facade< Random< SEQ, RAND >, const SEQ::value_type, boost::iterators::forward_traversal_tag >.

Classes

struct  end_tag
 

Public Types

typedef SEQ Seq
 
typedef Seq::value_type value_type
 
typedef Seq::size_type size_type
 
typedef RAND RandomGenerator
 

Public Member Functions

 Random (const Seq &seq, RandomGenerator rand=RandomGenerator())
 
 Random (const Seq &seq, size_type end)
 
size_type index () const
 Returns the index of the element in the sequence this iterator is currently pointing to.
 
const Seq & seq () const
 Returns a reference to the sequence.
 

Friends

class boost::iterators::iterator_core_access
 

Detailed Description

template<typename SEQ, typename RAND>
class LatBuilder::IndexedIterator::Random< SEQ, RAND >

Immutable random indexed iterator.

Template Parameters
SEQType of sequence to which the iterator points. Must implement value_type operator[](SEQ::size_type).
RANDRandom generator type.

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