22 static const int ccw = 0;
23 static const int cw = 1;
59 return !(*
this == rhs);
103 class with_locked_points {
104 set<point*, lt_point> *S;
106 with_locked_points(set<point*, lt_point> &pts) {
108 for (set<point*, lt_point>::iterator it = S->begin();
109 it != S->end(); ++it) {
113 ~with_locked_points() {
114 for (set<point*, lt_point>::reverse_iterator it = S->rbegin();
115 it != S->rend(); ++it) {
125 class point_set :
public set<point*, lt_point> {
127 point_set &operator|(
point *e) {
155 / (max_coord[
xdim] - min_coord[
xdim] + 1);
162 if (b == 0)
return 0;
170 const point* C,
const point* D,
const int dir);
176 const point* p3,
const int dir);
182 #endif // POINT_HPP__
point * all_points
Definition: point.cpp:30
TRANSACTION_SAFE bool extern_angle(const point *p1, const point *p2, const point *p3, const int dir)
Definition: point.cpp:86
bool operator()(const point *const p1, const point *const p2) const
Definition: point.hpp:89
TRANSACTION_SAFE int bucket(const point *const p)
Definition: point.hpp:153
static const int cw
Definition: point.hpp:23
point()
Definition: point.hpp:79
int min_coord[]
Definition: point.cpp:32
#define TRANSACTION_SAFE
Definition: common.hpp:87
TRANSACTION_SAFE int closest_seam(const point *const p)
Definition: point.hpp:160
TRANSACTION_SAFE bool operator<(const point &o) const
Definition: point.hpp:64
static int seed
Definition: mesh.cpp:40
int coord[2]
Definition: point.hpp:43
size_t operator()(const point *const p) const
Definition: point.hpp:95
static const int ccw
Definition: point.hpp:22
edge * first_edge
Definition: point.hpp:44
static const int MAX_COORD_BITS
Definition: point.hpp:25
bool operator()(const point *const p1, const point *const p2) const
Definition: point.hpp:83
static const int ydim
Definition: point.hpp:21
bool operator==(const point &o) const
Definition: point.hpp:51
bool operator!=(const point &rhs) const
Definition: point.hpp:57
size_t hash() const
Definition: point.hpp:46
TRANSACTION_SAFE bool encircled(const point *A, const point *B, const point *C, const point *D, const int dir)
Definition: point.cpp:67
void create_points(const int seed)
Definition: point.cpp:116
int stripe(const point *const p)
Definition: point.hpp:157
static node_t * insert(rbtree_t *s, void *k, void *v, node_t *n)
Definition: rbtree.c:617
int max_coord[]
Definition: point.cpp:33
static const int xdim
Definition: point.hpp:20
int num_workers
Definition: mesh.cpp:39
bool set_op int op_size set_t * l
Definition: stmskip.cc:240