Qt 4.8
|
#include <qsimplex_p.h>
Public Types | |
enum | Ratio { LessOrEqual = 0, Equal, MoreOrEqual } |
Public Functions | |
void | invert () |
bool | isSatisfied () |
QSimplexConstraint () | |
QString | toString () |
Public Variables | |
QSimplexVariable * | artificial |
qreal | constant |
QPair< QSimplexVariable *, qreal > | helper |
Ratio | ratio |
QHash< QSimplexVariable *, qreal > | variables |
Representation of a LP constraint like:
(c1 * X1) + (c2 * X2) + ... = K or <= K or >= K
Where (ci, Xi) are the pairs in "variables" and K the real "constant".
Definition at line 81 of file qsimplex_p.h.
Enumerator | |
---|---|
LessOrEqual | |
Equal | |
MoreOrEqual |
Definition at line 85 of file qsimplex_p.h.
|
inline |
Definition at line 83 of file qsimplex_p.h.
void QSimplexConstraint::invert | ( | ) |
Definition at line 692 of file qsimplex_p.cpp.
Referenced by QSimplex::simplifyConstraints().
|
inline |
Definition at line 100 of file qsimplex_p.h.
Referenced by QSimplex::simplifyConstraints().
|
inline |
Definition at line 124 of file qsimplex_p.h.
QSimplexVariable* QSimplexConstraint::artificial |
Definition at line 96 of file qsimplex_p.h.
Referenced by QSimplex::setConstraints().
qreal QSimplexConstraint::constant |
Definition at line 92 of file qsimplex_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints(), createSlack(), QSimplex::setConstraints(), shiftConstraints(), QSimplex::simplifyConstraints(), and QGraphicsAnchorLayoutPrivate::solvePreferred().
QPair<QSimplexVariable *, qreal> QSimplexConstraint::helper |
Definition at line 95 of file qsimplex_p.h.
Referenced by QSimplex::setConstraints().
Ratio QSimplexConstraint::ratio |
Definition at line 93 of file qsimplex_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints(), createSlack(), QSimplex::setConstraints(), and QSimplex::simplifyConstraints().
QHash<QSimplexVariable *, qreal> QSimplexConstraint::variables |
Definition at line 91 of file qsimplex_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::addAnchorMaybeParallel(), GraphPath::constraint(), QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints(), QGraphicsAnchorLayoutPrivate::createCenterAnchors(), createSlack(), QGraphicsAnchorLayoutPrivate::getGraphParts(), getVariables(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedConstraints(), QSimplex::setConstraints(), shiftConstraints(), QSimplex::simplifyConstraints(), QGraphicsAnchorLayoutPrivate::solveMinMax(), QGraphicsAnchorLayoutPrivate::solvePreferred(), and QSimplex::solver().