9 #ifndef CMZN_FIELDLOGICALOPERATORS_HPP__ 10 #define CMZN_FIELDLOGICALOPERATORS_HPP__ 12 #include "opencmiss/zinc/fieldlogicaloperators.h" 13 #include "opencmiss/zinc/field.hpp" 14 #include "opencmiss/zinc/fieldmodule.hpp" 20 class FieldAnd :
public Field
33 explicit FieldAnd(cmzn_field_id field_id) : Field(field_id)
37 const Field& sourceField2);
46 inline FieldAnd operator&&(
const Field& operand1,
const Field& operand2)
50 class FieldEqualTo :
public Field
63 explicit FieldEqualTo(cmzn_field_id field_id) : Field(field_id)
67 const Field& sourceField2);
71 FieldEqualTo() : Field(0)
75 class FieldGreaterThan :
public Field
88 explicit FieldGreaterThan(cmzn_field_id field_id) : Field(field_id)
92 const Field& sourceField2);
96 FieldGreaterThan() : Field(0)
101 inline FieldGreaterThan operator>(
const Field& operand1,
const Field& operand2)
105 class FieldIsDefined :
public Field
117 explicit FieldIsDefined(cmzn_field_id field_id) : Field(field_id)
123 FieldIsDefined() : Field(0)
126 class FieldLessThan :
public Field
139 explicit FieldLessThan(cmzn_field_id field_id) : Field(field_id)
146 FieldLessThan() : Field(0)
151 inline FieldLessThan operator<(
const Field& operand1,
const Field& operand2)
155 class FieldOr :
public Field
168 explicit FieldOr(cmzn_field_id field_id) : Field(field_id)
172 const Field& sourceField2);
181 inline FieldOr operator||(
const Field& operand1,
const Field& operand2)
185 class FieldNot :
public Field
199 explicit FieldNot(cmzn_field_id field_id) : Field(field_id)
206 FieldNot() : Field(0)
211 inline FieldNot operator!(
const Field& operand)
215 class FieldXor :
public Field
228 explicit FieldXor(cmzn_field_id field_id) : Field(field_id)
232 const Field& sourceField2);
236 FieldXor() : Field(0)
243 return FieldAnd(cmzn_fieldmodule_create_field_and(
id,
249 return FieldEqualTo(cmzn_fieldmodule_create_field_equal_to(
id,
266 return FieldLessThan(cmzn_fieldmodule_create_field_less_than(
id,
272 return FieldOr(cmzn_fieldmodule_create_field_or(
id,
278 return FieldNot(cmzn_fieldmodule_create_field_not(
id, sourceField.
getId()));
283 return FieldXor(cmzn_fieldmodule_create_field_xor(
id,
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
FieldAnd createFieldAnd(const Field &sourceField1, const Field &sourceField2)
Definition: fieldlogicaloperators.hpp:241
FieldNot createFieldNot(const Field &sourceField)
Definition: fieldlogicaloperators.hpp:276
A field whose component values are 1 if that component of source_field_one OR source_field_two is non...
Definition: fieldlogicaloperators.hpp:224
FieldOr createFieldOr(const Field &sourceField1, const Field &sourceField2)
Definition: fieldlogicaloperators.hpp:270
cmzn_field_id getId() const
Definition: field.hpp:103
A field whose component values are 1 if that component of source_field_one AND source_field_two is no...
Definition: fieldlogicaloperators.hpp:29
A field whose component values are 1 if that component of source_field_one is less than the component...
Definition: fieldlogicaloperators.hpp:135
FieldXor createFieldXor(const Field &sourceField1, const Field &sourceField2)
Definition: fieldlogicaloperators.hpp:281
FieldIsDefined createFieldIsDefined(const Field &sourceField)
Definition: fieldlogicaloperators.hpp:259
A field whose component values are 1 if that component of the source_field is zero, 0 otherwise; effectively a component-wise logical not operator.
Definition: fieldlogicaloperators.hpp:195
A field returning 1 (true) at locations where the source field is defined and 0 (false) elsewhere...
Definition: fieldlogicaloperators.hpp:113
A field whose component values are 1 if that component of source_field_one EQUALS that component of s...
Definition: fieldlogicaloperators.hpp:59
FieldLessThan createFieldLessThan(const Field &sourceField1, const Field &sourceField2)
Definition: fieldlogicaloperators.hpp:264
The OpenCMISS namespace.
Definition: context.hpp:20
FieldGreaterThan createFieldGreaterThan(const Field &sourceField1, const Field &sourceField2)
Definition: fieldlogicaloperators.hpp:253
A field whose component values are 1 if that component of source_field_one is greater than the compon...
Definition: fieldlogicaloperators.hpp:84
A field whose component values are 1 if that component of source_field_one OR source_field_two is non...
Definition: fieldlogicaloperators.hpp:164
FieldEqualTo createFieldEqualTo(const Field &sourceField1, const Field &sourceField2)
Definition: fieldlogicaloperators.hpp:247
Fieldmodule getFieldmodule() const
Definition: fieldmodule.hpp:1786