Sector decomposition
|
#include <multi_index.h>
Public Member Functions | |
multi_index_counter (void) | |
multi_index_counter (size_t N, size_t k) | |
multi_index_counter (size_t N, const std::vector< size_t > &vv) | |
basic_multi_index & | init (void) |
basic_multi_index & | operator++ (int) |
![]() | |
basic_multi_index (void) | |
basic_multi_index (size_t N, size_t k) | |
basic_multi_index (size_t N, const std::vector< size_t > &vv) | |
size_t | size (void) const |
bool | overflow (void) const |
size_t | operator[] (size_t i) const |
size_t & | operator[] (size_t i) |
size_t | operator() (size_t i) const |
size_t & | operator() (size_t i) |
virtual basic_multi_index & | init (void) |
virtual basic_multi_index & | operator++ (int) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const multi_index_counter &v) |
Additional Inherited Members | |
![]() | |
size_t | N |
upper limit for all components | |
std::vector< size_t > | v |
a vector holding the multi-index | |
bool | flag_overflow |
a flag indicating overflow | |
The class multi_index_counter defines a multi_index
multi_index_counter | ( | void | ) |
Default constructor
|
explicit |
Construct a multi_index with upper limit N and size k .
|
explicit |
Construct from a vector.
|
virtual |
|
virtual |
The postfix increment operator allows to write for a multi-index n++, which will update n to the next configuration.
If n is in the last configuration and the increment operator ++ is applied to n, the overflow flag will be raised.
Reimplemented from basic_multi_index.
|
friend |
Output operator. A multi_index_counter prints out as multi_index_counter(