|
Sector decomposition
|
#include <multi_index.h>
Public Member Functions | |
| 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 | |
| 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 basic_multi_index &v) |
basic_multi_index is a base class.
| basic_multi_index | ( | void | ) |
Default constructor
|
explicit |
Construct a multi_index with upper limit N and size k .
|
explicit |
Construct from a vector.
|
virtual |
Initialize the multi-index to
![\[
(n_1,n_2,n_3,...,n_k) = (0,0,...,0)
\]](form_25.png)
Reimplemented in multi_index_ordered, multi_index_counter, and multi_index_counter_indv.
| size_t & operator() | ( | size_t | i | ) |
Subscription via ()
| size_t operator() | ( | size_t | i | ) | const |
Subscription via ()
|
virtual |
No effect for basic_multi_index
Reimplemented in multi_index_ordered, multi_index_counter, and multi_index_counter_indv.
| size_t & operator[] | ( | size_t | i | ) |
Subscription via []
| size_t operator[] | ( | size_t | i | ) | const |
Subscription via []
| bool overflow | ( | void | ) | const |
Return the overflow flag.
| size_t size | ( | void | ) | const |
Returns the size of a multi_index.
|
friend |
Output operator. A multi_index prints out as basic_multi_index( 