|
CeresEngine 0.2.0
A game development framework
|
An equation or inequality involving one or more variables. More...
#include <CeresEngine/Foundation/Constraint/Constraint.hpp>
Classes | |
| class | Data |
Public Member Functions | |
| Constraint ()=default | |
| Constraint (const ConstraintExpression &expr, const ConstraintRelationalOperator op, const ConstraintStrength &strength=ConstraintStrength::required) | |
| Constraint (const Constraint &other, const ConstraintStrength &strength) | |
| Constraint (const Constraint &)=default | |
| Constraint & | operator= (const Constraint &)=default |
| Constraint (Constraint &&) noexcept=default | |
| Constraint & | operator= (Constraint &&) noexcept=default |
| ~Constraint ()=default | |
| const ConstraintExpression & | getExpression () const |
| ConstraintRelationalOperator | getOperator () const |
| const ConstraintStrength & | getStrength () const |
| bool | isViolated () const |
| bool | isSatisfied () const noexcept |
| bool | operator! () const |
| String | toString () const |
| Gets a string representation of the constraint. | |
Static Private Member Functions | |
| static ConstraintExpression | reduce (const ConstraintExpression &expr) |
Private Attributes | |
| RC< Data > | mData |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const Constraint &constraint) |
Writes the constraint to the given stream. | |
| bool | operator< (const Constraint &lhs, const Constraint &rhs) |
| bool | operator== (const Constraint &lhs, const Constraint &rhs) |
| bool | operator!= (const Constraint &lhs, const Constraint &rhs) |
An equation or inequality involving one or more variables.
Constraints can be defined as "normal" C++ expressions:
|
default |
|
inline |
|
inline |
|
default |
|
defaultnoexcept |
|
default |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
| bool CeresEngine::Constraint::Constraint::isViolated | ( | ) | const |
|
inline |
|
default |
|
defaultnoexcept |
|
staticprivate |
| String CeresEngine::Constraint::Constraint::toString | ( | ) | const |
Gets a string representation of the constraint.
|
friend |
|
friend |
|
friend |
Writes the constraint to the given stream.
|
friend |