Sector decomposition
|
#include <multi_index.h>
Public Member Functions | |
multi_index_counter_indv (void) | |
multi_index_counter_indv (const std::vector< size_t > &Nv, size_t k) | |
multi_index_counter_indv (const std::vector< size_t > &Nv, 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) |
Protected Attributes | |
std::vector< size_t > | Nv |
upper limit for the individual components | |
![]() | |
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 | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const multi_index_counter_indv &v) |
The class multi_index_counter_indv defines a multi_index
multi_index_counter_indv | ( | 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_indv prints out as multi_index_counter_indv(