Graphviz 13.0.0~dev.20241222.1117
|
#include <variable.h>
Public Member Functions | |
char * | toString () |
Variable (const int id_, const double desiredPos_, const double weight_) | |
double | position () const |
Data Fields | |
const int | id |
double | desiredPosition |
const double | weight |
double | offset |
Block * | block = nullptr |
bool | visited |
Constraints | in |
Constraints | out |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Variable &v) |
Definition at line 25 of file variable.h.
|
inline |
Definition at line 38 of file variable.h.
|
inline |
Definition at line 46 of file variable.h.
References offset.
Referenced by Block::cost(), getVariablePos(), and Constraint::slack().
char * Variable::toString | ( | ) |
|
friend |
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 17 of file variable.cpp.
Block* Variable::block = nullptr |
Definition at line 33 of file variable.h.
Referenced by compareConstraints(), Block::findMinInConstraint(), Block::findMinOutConstraint(), Block::merge(), Block::merge(), Blocks::mergeLeft(), Blocks::mergeRight(), IncVPSC::satisfy(), Blocks::split(), and IncVPSC::splitBlocks().
double Variable::desiredPosition |
Definition at line 30 of file variable.h.
Referenced by Block::cost(), Block::desiredWeightedPosition(), generateXConstraints(), generateYConstraints(), and setVariableDesiredPos().
const int Variable::id |
Definition at line 29 of file variable.h.
Referenced by compareConstraints().
Constraints Variable::in |
Definition at line 35 of file variable.h.
Referenced by Constraint::Constraint(), remapInConstraints(), and Constraint::~Constraint().
double Variable::offset |
Definition at line 32 of file variable.h.
Referenced by Block::Block(), Block::desiredWeightedPosition(), Block::merge(), Block::merge(), Blocks::mergeLeft(), Blocks::mergeRight(), and position().
Constraints Variable::out |
Definition at line 36 of file variable.h.
Referenced by Constraint::Constraint(), remapOutConstraints(), and Constraint::~Constraint().
bool Variable::visited |
Definition at line 34 of file variable.h.
Referenced by Blocks::totalOrder().
const double Variable::weight |
Definition at line 31 of file variable.h.
Referenced by Block::cost(), and Block::desiredWeightedPosition().