Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
Variable Struct Reference

#include <variable.h>

Collaboration diagram for Variable:
[legend]

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
 
Blockblock = nullptr
 
bool visited
 
Constraints in
 
Constraints out
 

Friends

std::ostream & operator<< (std::ostream &os, const Variable &v)
 

Detailed Description

Definition at line 25 of file variable.h.

Constructor & Destructor Documentation

◆ Variable()

Variable::Variable ( const int  id_,
const double  desiredPos_,
const double  weight_ 
)
inline

Definition at line 38 of file variable.h.

Member Function Documentation

◆ position()

double Variable::position ( ) const
inline

Definition at line 46 of file variable.h.

References offset.

Referenced by Block::cost(), getVariablePos(), and Constraint::slack().

Here is the caller graph for this function:

◆ toString()

char * Variable::toString ( )

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Variable v 
)
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.

Field Documentation

◆ block

◆ desiredPosition

double Variable::desiredPosition

◆ id

const int Variable::id

Definition at line 29 of file variable.h.

Referenced by compareConstraints().

◆ in

Constraints Variable::in

Definition at line 35 of file variable.h.

Referenced by Constraint::Constraint(), remapInConstraints(), and Constraint::~Constraint().

◆ offset

◆ out

Constraints Variable::out

Definition at line 36 of file variable.h.

Referenced by Constraint::Constraint(), remapOutConstraints(), and Constraint::~Constraint().

◆ visited

bool Variable::visited

Definition at line 34 of file variable.h.

Referenced by Blocks::totalOrder().

◆ weight

const double Variable::weight

Definition at line 31 of file variable.h.

Referenced by Block::cost(), and Block::desiredWeightedPosition().


The documentation for this struct was generated from the following file: