Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
csolve_VPSC.h File Reference
#include <stdbool.h>
Include dependency graph for csolve_VPSC.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pointf_s
 
struct  boxf
 

Typedefs

typedef struct Variable Variable
 Bridge for C programs to access solve_VPSC (which is in C++)
 
typedef struct Constraint Constraint
 
typedef struct VPSC VPSC
 
typedef struct pointf_s pointf
 
typedef struct IncVPSC IncVPSC
 

Functions

VariablenewVariable (int id, double desiredPos, double weight)
 Bridge for C programs to access solve_VPSC (which is in C++)
 
void setVariableDesiredPos (Variable *, double desiredPos)
 
double getVariablePos (const Variable *)
 
ConstraintnewConstraint (Variable *left, Variable *right, double gap)
 
void deleteVPSC (VPSC *)
 
void deleteConstraint (Constraint *)
 
void deleteVariable (Variable *)
 
Constraint ** newConstraints (int m)
 
void deleteConstraints (int m, Constraint **)
 
void remapInConstraints (Variable *u, Variable *v, double dgap)
 
void remapOutConstraints (Variable *u, Variable *v, double dgap)
 
int genXConstraints (int n, boxf[], Variable **vs, Constraint ***cs, bool transitiveClosure)
 
int genYConstraints (int n, boxf[], Variable **vs, Constraint ***cs)
 
void satisfyVPSC (VPSC *)
 
void solveVPSC (VPSC *)
 
VPSCnewIncVPSC (int n, Variable *vs[], int m, Constraint *cs[])
 

Typedef Documentation

◆ Constraint

typedef struct Constraint Constraint

Definition at line 29 of file csolve_VPSC.h.

◆ IncVPSC

typedef struct IncVPSC IncVPSC

Definition at line 51 of file csolve_VPSC.h.

◆ pointf

typedef struct pointf_s pointf

◆ Variable

typedef struct Variable Variable

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 csolve_VPSC.h.

◆ VPSC

typedef struct VPSC VPSC

Definition at line 32 of file csolve_VPSC.h.

Function Documentation

◆ deleteConstraint()

void deleteConstraint ( Constraint c)

Definition at line 65 of file csolve_VPSC.cpp.

◆ deleteConstraints()

void deleteConstraints ( int  m,
Constraint **  cs 
)

Definition at line 59 of file csolve_VPSC.cpp.

◆ deleteVariable()

void deleteVariable ( Variable v)

Definition at line 68 of file csolve_VPSC.cpp.

◆ deleteVPSC()

void deleteVPSC ( VPSC vpsc)

Definition at line 79 of file csolve_VPSC.cpp.

◆ genXConstraints()

int genXConstraints ( int  n,
boxf  [],
Variable **  vs,
Constraint ***  cs,
bool  transitiveClosure 
)

◆ genYConstraints()

int genYConstraints ( int  n,
boxf  [],
Variable **  vs,
Constraint ***  cs 
)

◆ getVariablePos()

double getVariablePos ( const Variable v)

Definition at line 89 of file csolve_VPSC.cpp.

References Variable::position().

Here is the call graph for this function:

◆ newConstraint()

Constraint * newConstraint ( Variable left,
Variable right,
double  gap 
)

Definition at line 31 of file csolve_VPSC.cpp.

References left, and right.

◆ newConstraints()

Constraint ** newConstraints ( int  m)

Definition at line 56 of file csolve_VPSC.cpp.

◆ newIncVPSC()

VPSC * newIncVPSC ( int  n,
Variable vs[],
int  m,
Constraint cs[] 
)

Definition at line 34 of file csolve_VPSC.cpp.

◆ newVariable()

Variable * newVariable ( int  id,
double  desiredPos,
double  weight 
)

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 28 of file csolve_VPSC.cpp.

◆ remapInConstraints()

void remapInConstraints ( Variable u,
Variable v,
double  dgap 
)

Definition at line 92 of file csolve_VPSC.cpp.

References Variable::in.

◆ remapOutConstraints()

void remapOutConstraints ( Variable u,
Variable v,
double  dgap 
)

Definition at line 100 of file csolve_VPSC.cpp.

References Variable::out.

◆ satisfyVPSC()

void satisfyVPSC ( VPSC vpsc)

Definition at line 71 of file csolve_VPSC.cpp.

References VPSC::satisfy().

Here is the call graph for this function:

◆ setVariableDesiredPos()

void setVariableDesiredPos ( Variable v,
double  desiredPos 
)

Definition at line 86 of file csolve_VPSC.cpp.

References Variable::desiredPosition.

◆ solveVPSC()

void solveVPSC ( VPSC vpsc)

Definition at line 83 of file csolve_VPSC.cpp.

References VPSC::solve().

Here is the call graph for this function: