queso-0.53.0
Classes | Typedefs | Enumerations | Functions | Variables
ANNx.h File Reference
#include <iomanip>
#include <ANN/ANN.h>
Include dependency graph for ANNx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ANNorthRect
 
class  ANNorthHalfSpace
 

Typedefs

typedef ANNorthHalfSpaceANNorthHSArray
 

Enumerations

enum  { ANN_LO =0, ANN_HI =1 }
 
enum  { ANN_IN =0, ANN_OUT =1 }
 
enum  ANNerr { ANNwarn = 0, ANNabort = 1 }
 

Functions

void annError (const char *msg, ANNerr level)
 
void annPrintPt (ANNpoint pt, int dim, std::ostream &out)
 
void annAssignRect (int dim, ANNorthRect &dest, const ANNorthRect &source)
 

Variables

int ANNmaxPtsVisited
 
int ANNptsVisited
 

Typedef Documentation

Definition at line 167 of file ANNx.h.

Enumeration Type Documentation

anonymous enum
Enumerator
ANN_LO 
ANN_HI 

Definition at line 45 of file ANNx.h.

45 {ANN_LO=0, ANN_HI=1}; // splitting indices
Definition: ANNx.h:45
Definition: ANNx.h:45
anonymous enum
Enumerator
ANN_IN 
ANN_OUT 

Definition at line 46 of file ANNx.h.

46 {ANN_IN=0, ANN_OUT=1}; // shrinking indices
Definition: ANNx.h:46
Definition: ANNx.h:46
enum ANNerr
Enumerator
ANNwarn 
ANNabort 

Definition at line 48 of file ANNx.h.

48 {ANNwarn = 0, ANNabort = 1};
Definition: ANNx.h:48
Definition: ANNx.h:48

Function Documentation

void annAssignRect ( int  dim,
ANNorthRect dest,
const ANNorthRect source 
)

Definition at line 148 of file ANN.cpp.

References dim, ANNorthRect::hi, and ANNorthRect::lo.

Referenced by annBnds2Box(), and tryCentroidShrink().

149 {
150  for (int i = 0; i < dim; i++) {
151  dest.lo[i] = source.lo[i];
152  dest.hi[i] = source.hi[i];
153  }
154 }
ANNpoint lo
Definition: ANNx.h:93
int dim
Definition: ann2fig.cpp:81
ANNpoint hi
Definition: ANNx.h:94
void annError ( const char *  msg,
ANNerr  level 
)

Definition at line 169 of file ANN.cpp.

References ANNabort.

Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree::ANNkd_tree(), ANNbruteForce::annkSearch(), ANNkd_tree::annkSearch(), annReadDump(), annReadTree(), ANNpr_queue::insert(), and selectDecomp().

170 {
171  if (level == ANNabort) {
172  cerr << "ANN: ERROR------->" << msg << "<-------------ERROR\n";
173  exit(1);
174  }
175  else {
176  cerr << "ANN: WARNING----->" << msg << "<-------------WARNING\n";
177  }
178 }
Definition: ANNx.h:48
void annPrintPt ( ANNpoint  pt,
int  dim,
std::ostream &  out 
)

Definition at line 70 of file ANN.cpp.

References dim.

Referenced by ANNkd_tree::Dump(), and ANNkd_tree::Print().

74 {
75  for (int j = 0; j < dim; j++) {
76  out << pt[j];
77  if (j < dim-1) out << " ";
78  }
79 }
int dim
Definition: ann2fig.cpp:81

Variable Documentation

int ANNmaxPtsVisited
int ANNptsVisited

Generated on Thu Jun 11 2015 13:52:33 for queso-0.53.0 by  doxygen 1.8.5