Mackey  V3.3
A C++ library for computing RO(G) graded homology
InterpolatingVectorGenerator< T > Class Template Reference

Generates all vectors interpolating between given min and max vectors. More...

#include <General.hpp>

Classes

class  const_iterator
 Constant iterator through generated vectors. More...
 

Public Member Functions

 InterpolatingVectorGenerator (const T &min, const T &max)
 Constructor using min, max and policy. More...
 
size_t size () const
 Returns the total amount of elements that will be generated. More...
 
std::vector< T > operator() () const
 Returns vector of all generated elements. More...
 
auto begin () const
 Initial generator. More...
 
auto end () const
 Terminal generator. More...
 

Detailed Description

template<typename T>
class mackey::InterpolatingVectorGenerator< T >

Generates all vectors interpolating between given min and max vectors.

Template Parameters
TThe type of vectors eg std::vector<int>

Use with a ranged for loop: Ex for (const auto& i:v){ ... } where v is a vector_interpolate_generator object.

Constructor & Destructor Documentation

◆ InterpolatingVectorGenerator()

InterpolatingVectorGenerator ( const T &  min,
const T &  max 
)

Constructor using min, max and policy.

Member Function Documentation

◆ size()

size_t size ( ) const

Returns the total amount of elements that will be generated.

◆ operator()()

std::vector<T> operator() ( ) const

Returns vector of all generated elements.

◆ begin()

auto begin ( ) const

Initial generator.

◆ end()

auto end ( ) const

Terminal generator.


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