Lattice Builder Manual
Software Package for Constructing Rank-1 Lattices
LatBuilder::CachedSeq< BASE, LAT, COMPRESS > Class Template Reference

Cached sequence wrapper. More...

#include <CachedSeq.h>

Inherits BASE.

Public Types

typedef BASE Base
 
typedef LatBuilder::Storage< LAT, COMPRESS > Storage
 
typedef Storage::value_type value_type
 
typedef Storage::size_type size_type
 
typedef Storage::const_iterator const_iterator
 

Public Member Functions

 CachedSeq (Base base)
 
CachedSeqoperator= (Base base)
 
size_type size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

template<class BASE, LatType LAT, Compress COMPRESS>
class LatBuilder::CachedSeq< BASE, LAT, COMPRESS >

Cached sequence wrapper.

Allows the elements of a dynamically generated sequence to be pre-computed and stored in a container.

Example:

CachedSeq<MySeq> seq;
seq = MySeq(...);
for (const auto& elem : seq)
std::cout << elem << std::endl;

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