LatNet Builder Manual
2.0.1-11
Software Package for Constructing Highly Uniform Point Sets
|
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 |
Immutable random indexed iterator.
SEQ | Type of sequence to which the iterator points. Must implement value_type operator[](SEQ::size_type). |
RAND | Random generator type. |