Order permutator. Generates all permutations of orders from a set defined by a range of orders. More...
#include <order_permutator.h>
Public Member Functions | |
| OrderPermutator (int start_quad_order=0, int end_quad_order=0, bool iso_p=false, int *tgt_quad_order=NULL) | |
| Constructor. | |
| bool | next () |
| Moves to the next permutation of orders. | |
| void | reset () |
| Resets permutator to the starting order. | |
| int | get_order_h () const |
| Returns the current horizontal order. | |
| int | get_order_v () const |
| Returns the current vertical order. | |
| int | get_quad_order () const |
| Returns the current order in an encoded form. | |
| int | get_start_quad_order () const |
| Returns the starting order in an encoded form. | |
| int | get_end_quad_order () const |
| Returns the ending order in an encoded form. | |
Protected Attributes | |
| int | order_h |
| The current horizontal order. | |
| int | order_v |
| The current verical order. | |
| int | start_order_h |
| The starting horizontal order. | |
| int | start_order_v |
| The starting vertical order. | |
| int | end_order_h |
| The ending horizontal order. | |
| int | end_order_v |
| The ending vertical order. | |
| bool | iso_p |
| True if orders is incresed in both the horizontal order and the vertical order are increased simultaneously. | |
| int * | tgt_quad_order |
| A pointer to which a current order is stored in encoded form. Ignored if NULL. | |
Order permutator. Generates all permutations of orders from a set defined by a range of orders.
Used to generate all possible generation of horizontal and vertical orders bettween the starting order and the ending order. Both the starting order and the ending order are included.
OrderPermutator order_perm(start_order, end_order, false); do { int order_h = order_perm.get_order_h(); } while (order_perm.next());
| RefinementSelectors::OrderPermutator::OrderPermutator | ( | int | start_quad_order = 0, |
|
| int | end_quad_order = 0, |
|||
| bool | iso_p = false, |
|||
| int * | tgt_quad_order = NULL | |||
| ) |
Constructor.
| [in] | start_quad_order | The starting order in an encoded form. |
| [in] | end_quad_order | The ending order in an encoded form. |
| [in] | iso_p | True if both orders (i.e. horizontal and vertical) should be increased simultaneously. |
| [in] | tgt_quad_order | A point to a location to which a current orders (i.e. horizontal and vertical) are stored in an encoded form. Ignored if NULL. |
| int RefinementSelectors::OrderPermutator::get_end_quad_order | ( | ) | const [inline] |
Returns the ending order in an encoded form.
| int RefinementSelectors::OrderPermutator::get_order_h | ( | ) | const [inline] |
Returns the current horizontal order.
| int RefinementSelectors::OrderPermutator::get_order_v | ( | ) | const [inline] |
Returns the current vertical order.
| int RefinementSelectors::OrderPermutator::get_quad_order | ( | ) | const [inline] |
Returns the current order in an encoded form.
| int RefinementSelectors::OrderPermutator::get_start_quad_order | ( | ) | const [inline] |
Returns the starting order in an encoded form.
| bool RefinementSelectors::OrderPermutator::next | ( | ) |
Moves to the next permutation of orders.
| void RefinementSelectors::OrderPermutator::reset | ( | ) |
Resets permutator to the starting order.
int RefinementSelectors::OrderPermutator::end_order_h [protected] |
The ending horizontal order.
int RefinementSelectors::OrderPermutator::end_order_v [protected] |
The ending vertical order.
bool RefinementSelectors::OrderPermutator::iso_p [protected] |
True if orders is incresed in both the horizontal order and the vertical order are increased simultaneously.
int RefinementSelectors::OrderPermutator::order_h [protected] |
The current horizontal order.
int RefinementSelectors::OrderPermutator::order_v [protected] |
The current verical order.
int RefinementSelectors::OrderPermutator::start_order_h [protected] |
The starting horizontal order.
int RefinementSelectors::OrderPermutator::start_order_v [protected] |
The starting vertical order.
int* RefinementSelectors::OrderPermutator::tgt_quad_order [protected] |
A pointer to which a current order is stored in encoded form. Ignored if NULL.
1.6.3