Graphviz 13.0.0~dev.20250121.0651
|
A constraint determines a minimum or exact spacing required between two variables. More...
#include <constraint.h>
Public Member Functions | |
Constraint (Variable *left, Variable *right, double gap) | |
A constraint determines a minimum or exact spacing required between two variables. | |
~Constraint () | |
double | slack () const |
Data Fields | |
Variable * | left |
Variable * | right |
double | gap |
double | lm |
long | timeStamp |
bool | active |
bool | visited |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Constraint &c) |
Authors: Tim Dwyer tgdwy.nosp@m.er@g.nosp@m.mail..nosp@m.com
Copyright (C) 2005 Authors
This version is released under the CPL (Common Public License) with the Graphviz distribution. A version is also available under the LGPL as part of the Adaptagrams project: https://github.com/mjwybrow/adaptagrams.
If you make improvements or bug fixes to this code it would be much appreciated if you could also contribute those changes back to the Adaptagrams repository.
Definition at line 24 of file constraint.h.
Authors: Tim Dwyer tgdwy.nosp@m.er@g.nosp@m.mail..nosp@m.com
Copyright (C) 2005 Authors
This version is released under the CPL (Common Public License) with the Graphviz distribution. A version is also available under the LGPL as part of the Adaptagrams project: https://github.com/mjwybrow/adaptagrams.
If you make improvements or bug fixes to this code it would be much appreciated if you could also contribute those changes back to the Adaptagrams repository.
Definition at line 21 of file constraint.cpp.
References Variable::in, left, Variable::out, and right.
Constraint::~Constraint | ( | ) |
Definition at line 27 of file constraint.cpp.
References Variable::in, left, Variable::out, and right.
|
inline |
Definition at line 34 of file constraint.h.
References gap, left, Variable::position(), and right.
Referenced by compareConstraints(), Block::findMinInConstraint(), Blocks::mergeLeft(), Blocks::mergeRight(), and IncVPSC::satisfy().
|
friend |
Definition at line 38 of file constraint.cpp.
bool Constraint::active |
Definition at line 36 of file constraint.h.
Referenced by Block::merge(), IncVPSC::satisfy(), and Block::split().
double Constraint::gap |
Definition at line 30 of file constraint.h.
Referenced by Block::merge(), Blocks::mergeLeft(), Blocks::mergeRight(), and slack().
Variable* Constraint::left |
Definition at line 28 of file constraint.h.
Referenced by compareConstraints(), Constraint(), Block::findMinInConstraint(), Block::findMinOutConstraint(), Block::merge(), Blocks::mergeLeft(), Blocks::mergeRight(), IncVPSC::satisfy(), slack(), Block::split(), IncVPSC::splitBlocks(), and ~Constraint().
double Constraint::lm |
Definition at line 31 of file constraint.h.
Referenced by IncVPSC::splitBlocks().
Variable* Constraint::right |
Definition at line 29 of file constraint.h.
Referenced by compareConstraints(), Constraint(), Block::findMinInConstraint(), Block::findMinOutConstraint(), Block::merge(), Blocks::mergeLeft(), Blocks::mergeRight(), IncVPSC::satisfy(), slack(), Block::split(), Blocks::split(), IncVPSC::splitBlocks(), and ~Constraint().
long Constraint::timeStamp |
Definition at line 35 of file constraint.h.
Referenced by compareConstraints(), and Block::findMinInConstraint().
bool Constraint::visited |
Definition at line 37 of file constraint.h.