tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
point.cpp File Reference
#include <limits.h>
#include <stdlib.h>
#include <tr1/unordered_set>
#include <iostream>
#include <iomanip>
#include "common.hpp"
#include "point.hpp"
Include dependency graph for point.cpp:

Functions

static TRANSACTION_SAFE double det3 (const double a, const double b, const double c, const double d, const double e, const double f, const double g, const double h, const double i)
 
static TRANSACTION_SAFE double det4 (const double a, const double b, const double c, const double d, const double e, const double f, const double g, const double h, const double i, const double j, const double k, const double l, const double m, const double n, const double o, const double p)
 
bool encircled (const point *A, const point *B, const point *C, const point *D, const int dir)
 
bool extern_angle (const point *p1, const point *p2, const point *p3, const int dir)
 
void create_points (const int seed)
 

Variables

pointall_points
 
int min_coord [2] = {INT_MAX, INT_MAX}
 
int max_coord [2] = {INT_MIN, INT_MIN}
 

Function Documentation

void create_points ( const int  seed)

Here is the caller graph for this function:

static TRANSACTION_SAFE double det3 ( const double  a,
const double  b,
const double  c,
const double  d,
const double  e,
const double  f,
const double  g,
const double  h,
const double  i 
)
static

Here is the caller graph for this function:

static TRANSACTION_SAFE double det4 ( const double  a,
const double  b,
const double  c,
const double  d,
const double  e,
const double  f,
const double  g,
const double  h,
const double  i,
const double  j,
const double  k,
const double  l,
const double  m,
const double  n,
const double  o,
const double  p 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

bool encircled ( const point A,
const point B,
const point C,
const point D,
const int  dir 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool extern_angle ( const point p1,
const point p2,
const point p3,
const int  dir 
)

Here is the caller graph for this function:

Variable Documentation

point* all_points
int max_coord[2] = {INT_MIN, INT_MIN}
int min_coord[2] = {INT_MAX, INT_MAX}