Classes | Typedefs | Enumerations | Functions | Variables

ANNx.h File Reference

#include <iomanip>
#include <ANN/ANN.h>

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 168 of file ANNx.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
ANN_LO 
ANN_HI 

Definition at line 46 of file ANNx.h.

{ANN_LO=0, ANN_HI=1};   // splitting indices
anonymous enum
Enumerator:
ANN_IN 
ANN_OUT 

Definition at line 47 of file ANNx.h.

{ANN_IN=0, ANN_OUT=1};  // shrinking indices
enum ANNerr
Enumerator:
ANNwarn 
ANNabort 

Definition at line 49 of file ANNx.h.

{ANNwarn = 0, ANNabort = 1};

Function Documentation

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

Definition at line 146 of file ANN.cpp.

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

Referenced by annBnds2Box(), and tryCentroidShrink().

{
        for (int i = 0; i < dim; i++) {
                dest.lo[i] = source.lo[i];
                dest.hi[i] = source.hi[i];
        }
}
void annError ( const char *  msg,
ANNerr  level 
)

Definition at line 167 of file ANN.cpp.

References ANNabort.

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

{
        if (level == ANNabort) {
                cerr << "ANN: ERROR------->" << msg << "<-------------ERROR\n";
                exit(1);
        }
        else {
                cerr << "ANN: WARNING----->" << msg << "<-------------WARNING\n";
        }
}
void annPrintPt ( ANNpoint  pt,
int  dim,
std::ostream &  out 
)

Definition at line 68 of file ANN.cpp.

{
        for (int j = 0; j < dim; j++) {
                out << pt[j];
                if (j < dim-1) out << " ";
        }
}

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines