linbox
Public Member Functions
PrimeSequence< IteratorT, UniqueTrait > Class Template Reference

Adaptor class to make a fixed-length sequence behave like a PrimeIterator. More...

#include <random-prime.h>

Public Member Functions

PrimeSequenceoperator++ ()
 operator++() (prefix ++ operator) moves to the next prime in the sequence.
 
const Prime_Type & operator* () const
 get the prime. More...
 

Detailed Description

template<typename IteratorT, class UniqueTrait = std::true_type>
class LinBox::PrimeSequence< IteratorT, UniqueTrait >

Adaptor class to make a fixed-length sequence behave like a PrimeIterator.

Member Function Documentation

◆ operator*()

const Prime_Type& operator* ( ) const
inline

get the prime.

returns the actual prime.

Warning
a new prime is not generated.

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