16 #include "order_permutator.h"
22 namespace RefinementSelectors
25 : start_order_h(
H2D_GET_H_ORDER(start_quad_order)), start_order_v(H2D_GET_V_ORDER(start_quad_order))
26 , end_order_h(
H2D_GET_H_ORDER(end_quad_order)), end_order_v(H2D_GET_V_ORDER(end_quad_order))
27 , iso_p(iso_p), tgt_quad_order(tgt_quad_order)
unsigned short get_order_v() const
Returns the current vertical order.
unsigned short order_h
The current horizontal order.
unsigned short start_order_v
The starting vertical order.
Common definitions for Hermes2D.
unsigned short get_quad_order() const
Returns the current order in an encoded form.
unsigned short order_v
The current verical order.
unsigned short get_order_h() const
Returns the current horizontal order.
#define H2D_GET_H_ORDER(encoded_order)
Macros for combining quad horizontal and vertical encoded_orders.
bool next()
Moves to the next permutation of orders.
bool iso_p
True if orders is incresed in both the horizontal order and the vertical order are increased simultan...
unsigned short end_order_v
The ending vertical order.
unsigned short get_start_quad_order() const
Returns the starting order in an encoded form.
unsigned short end_order_h
The ending horizontal order.
unsigned short get_end_quad_order() const
Returns the ending order in an encoded form.
unsigned short * tgt_quad_order
A pointer to which a current order is stored in encoded form. Ignored if nullptr. ...
void reset()
Resets permutator to the starting order.
unsigned short start_order_h
The starting horizontal order.
OrderPermutator(unsigned short start_quad_order=0, unsigned short end_quad_order=0, bool iso_p=false, unsigned short *tgt_quad_order=nullptr)
Constructor.