kiwi

Constraint

Constraint

#include <constraint.h>
class Constraint

Defined in kiwi/constraint.h:29

List of all members

NameKindOwner
operator<friendDeclared here
operator==friendDeclared here
operator!=friendDeclared here
ConstraintfunctionDeclared here
ConstraintfunctionDeclared here
ConstraintfunctionDeclared here
ConstraintfunctionDeclared here
ConstraintfunctionDeclared here
expressionfunctionDeclared here
opfunctionDeclared here
strengthfunctionDeclared here
violatedfunctionDeclared here
operator!functionDeclared here
m_datavariableDeclared here
reducefunctionDeclared here

Friends

NameDescription
operator< inline
operator== inline
operator!= inline

operator<

inline

friend inline bool operator<(const Constraint & lhs, const Constraint & rhs)

Defined in kiwi/constraint.h:124

References


operator==

inline

friend inline bool operator==(const Constraint & lhs, const Constraint & rhs)

Defined in kiwi/constraint.h:129

References


operator!=

inline

friend inline bool operator!=(const Constraint & lhs, const Constraint & rhs)

Defined in kiwi/constraint.h:134

References

Public Methods

ReturnNameDescription
ConstraintDefaulted constructor.
Constraint inline
Constraint inline
ConstraintDefaulted constructor.
Constraint noexceptDefaulted constructor.
const Expression &expression const inline
RelationalOperatorop const inline
doublestrength const inline
boolviolated const inline
booloperator! const inline

Constraint

Constraint() = default

Defined in kiwi/constraint.h:33

Referenced by

Defaulted constructor.


Constraint

inline

inline Constraint(const Expression & expr, RelationalOperator op, double strength = strength::required)

Defined in kiwi/constraint.h:35

References


Constraint

inline

inline Constraint(const Constraint & other, double strength)

Defined in kiwi/constraint.h:39

References


Constraint

Constraint(const Constraint &) = default

Defined in kiwi/constraint.h:41

References

Defaulted constructor.


Constraint

noexcept

Constraint(Constraint &&) noexcept = default

Defined in kiwi/constraint.h:43

References

Defaulted constructor.


expression

const inline

inline const Expression & expression() const

Defined in kiwi/constraint.h:47

Referenced by

References


op

const inline

inline RelationalOperator op() const

Defined in kiwi/constraint.h:52

Referenced by


strength

const inline

inline double strength() const

Defined in kiwi/constraint.h:57

Referenced by


violated

const inline

inline bool violated() const

Defined in kiwi/constraint.h:62

References


operator!

const inline

inline bool operator!() const

Defined in kiwi/constraint.h:74

Private Attributes

ReturnNameDescription
SharedDataPtr< ConstraintData >m_data

m_data

SharedDataPtr< ConstraintData > m_data

Defined in kiwi/constraint.h:122

Private Static Methods

ReturnNameDescription
Expressionreduce static inline

reduce

static inline

static inline Expression reduce(const Expression & expr)

Defined in kiwi/constraint.h:84