generate-constraints.cpp revision 6af8609f35d86944763dc80141002c548984b2ed
2N/A#include "generate-constraints.h"
2N/A#include "constraint.h"
2N/A delete leftNeighbours;
2N/A delete rightNeighbours;
2N/A v->addRightNeighbour(this);
2N/A v->addLeftNeighbour(this);
2N/Aint compare_events(const void *a, const void *b) {
2N/A * Prepares constraints in order to apply VPSC horizontally. Assumes variables have already been created.
2N/A * useNeighbourLists determines whether or not a heuristic is used to deciding whether to resolve
2N/Aint generateXConstraints(const int n, Rectangle** rs, Variable** vars, Constraint** &cs, const bool useNeighbourLists) {
2N/A if(useNeighbourLists) {
2N/A v->setNeighbours(
2N/A v->firstAbove=u;
2N/A u->firstBelow=v;
2N/A v->firstBelow=u;
2N/A u->firstAbove=v;
2N/A if(useNeighbourLists) {
2N/A v->firstAbove=u;
2N/A u->firstBelow=v;
2N/A v->firstBelow=u;
2N/A u->firstAbove=v;