1#ifndef INCLUDE_REFINMENTCRITERION_H_
2#define INCLUDE_REFINMENTCRITERION_H_
4enum RefinementCriterionFlags
7 criterion_value = 0x0001,
8 criterion_gradient = 0x0002
12inline RefinementCriterionFlags
13operator|(
const RefinementCriterionFlags flag_1,
const RefinementCriterionFlags flag_2)
15 return static_cast<RefinementCriterionFlags
>(
static_cast<unsigned int>(flag_1) |
16 static_cast<unsigned int>(flag_2));
20inline RefinementCriterionFlags &
21operator|=(RefinementCriterionFlags &flag_1,
const RefinementCriterionFlags flag_2)
23 flag_1 = flag_1 | flag_2;
28inline RefinementCriterionFlags
29operator&(
const RefinementCriterionFlags flag_1,
const RefinementCriterionFlags flag_2)
31 return static_cast<RefinementCriterionFlags
>(
static_cast<unsigned int>(flag_1) &
32 static_cast<unsigned int>(flag_2));
36inline RefinementCriterionFlags &
37operator&=(RefinementCriterionFlags &flag_1,
const RefinementCriterionFlags flag_2)
39 flag_1 = flag_1 & flag_2;
50 std::string variable_name;
51 unsigned int variable_index;
52 RefinementCriterionFlags criterion_type;
53 double value_lower_bound;
54 double value_upper_bound;
55 double gradient_lower_bound;
Definition RefinementCriterion.h:48