* Adaptagrams repository.
*/
-#ifndef SEEN_REMOVEOVERLAP_BLOCK_H
-#define SEEN_REMOVEOVERLAP_BLOCK_H
+#pragma once
#include <vector>
#include <iostream>
void addVariable(Variable *v);
void setUpConstraintHeap(PairingHeap<Constraint*>* &h,bool in);
};
-
-#endif // SEEN_REMOVEOVERLAP_BLOCK_H
* Adaptagrams repository.
*/
-#ifndef SEEN_REMOVEOVERLAP_BLOCKS_H
-#define SEEN_REMOVEOVERLAP_BLOCKS_H
+#pragma once
#define LOGFILE "cRectangleOverlap.log"
};
extern long blockTimeCtr;
-#endif // SEEN_REMOVEOVERLAP_BLOCKS_H
* Adaptagrams repository.
*/
-#ifndef SEEN_REMOVEOVERLAP_CONSTRAINT_H
-#define SEEN_REMOVEOVERLAP_CONSTRAINT_H
+#pragma once
#include <iostream>
#include <vpsc/variable.h>
}
return sl < sr;
}
-
-#endif // SEEN_REMOVEOVERLAP_CONSTRAINT_H
* appreciated if you could also contribute those changes back to the
* Adaptagrams repository.
*/
-#ifndef _CSOLVE_VPSC_H_
-#define _CSOLVE_VPSC_H_
+#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
-#endif /* _CSOLVE_VPSC_H_ */
* appreciated if you could also contribute those changes back to the
* Adaptagrams repository.
*/
-#ifndef SEEN_REMOVEOVERLAP_GENERATE_CONSTRAINTS_H
-#define SEEN_REMOVEOVERLAP_GENERATE_CONSTRAINTS_H
+#pragma once
#include <iostream>
class Rectangle {
// returns number of constraints generated
int generateXConstraints(const int n, Rectangle** rs, Variable** vars, Constraint** &cs, const bool useNeighbourLists);
int generateYConstraints(const int n, Rectangle** rs, Variable** vars, Constraint** &cs);
-
-
-#endif // SEEN_REMOVEOVERLAP_GENERATE_CONSTRAINTS_H
/* vim:set shiftwidth=4 ts=8: */
-#ifndef DSEXCEPTIONS_H_
-#define DSEXCEPTIONS_H_
+#pragma once
class Underflow { };
-
-#endif
* appreciated if you could also contribute those changes back to the
* Adaptagrams repository.
*/
-#ifndef REMOVE_RECTANGLE_OVERLAP_H_SEEN
-#define REMOVE_RECTANGLE_OVERLAP_H_SEEN
+#pragma once
class Rectangle;
void removeRectangleOverlap(Rectangle *rs[], int n, double xBorder, double yBorder);
-
-
-#endif /* !REMOVE_RECTANGLE_OVERLAP_H_SEEN */
* appreciated if you could also contribute those changes back to the
* Adaptagrams repository.
*/
-#ifndef SEEN_REMOVEOVERLAP_SOLVE_VPSC_H
-#define SEEN_REMOVEOVERLAP_SOLVE_VPSC_H
+#pragma once
#include <vector>
class Variable;
ConstraintList inactive;
double mostViolated(ConstraintList &l,Constraint* &v);
};
-#endif // SEEN_REMOVEOVERLAP_SOLVE_VPSC_H
* appreciated if you could also contribute those changes back to the
* Adaptagrams repository.
*/
-#ifndef SEEN_REMOVEOVERLAP_VARIABLE_H
-#define SEEN_REMOVEOVERLAP_VARIABLE_H
+#pragma once
#include <vector>
#include <iostream>
return block->posn+offset;
}
};
-#endif // SEEN_REMOVEOVERLAP_VARIABLE_H