LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
Loading...
Searching...
No Matches
LatBuilder::CachedSeq< BASE, LR, ET, COMPRESS > Class Template Reference

Cached sequence wrapper. More...

#include <CachedSeq.h>

Inherits BASE.

Public Types

typedef BASE Base
typedef LatBuilder::Storage< LR, ET, 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, LatticeType LR, EmbeddingType ET, Compress COMPRESS>
class LatBuilder::CachedSeq< BASE, LR, ET, 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:
  • include/latbuilder/CachedSeq.h