#include "kd_tree.h"
#include "bd_tree.h"
#include <cstring>
#include <cstdlib>
Go to the source code of this file.
Enumerations | |
enum | ANNtreeType { KD_TREE, BD_TREE } |
Functions | |
static ANNkd_ptr | annReadDump (istream &in, ANNtreeType tree_type, ANNpointArray &the_pts, ANNidxArray &the_pidx, int &the_dim, int &the_n_pts, int &the_bkt_size, ANNpoint &the_bnd_box_lo, ANNpoint &the_bnd_box_hi) |
static ANNkd_ptr | annReadTree (istream &in, ANNtreeType tree_type, ANNidxArray the_pidx, int &next_idx) |
Variables | |
const double | EPSILON = 1E-5 |
const int | STRING_LEN = 500 |
enum ANNtreeType |
Definition at line 48 of file kd_dump.cpp.
static ANNkd_ptr annReadDump | ( | istream & | in, | |
ANNtreeType | tree_type, | |||
ANNpointArray & | the_pts, | |||
ANNidxArray & | the_pidx, | |||
int & | the_dim, | |||
int & | the_n_pts, | |||
int & | the_bkt_size, | |||
ANNpoint & | the_bnd_box_lo, | |||
ANNpoint & | the_bnd_box_hi | |||
) | [static] |
Definition at line 255 of file kd_dump.cpp.
References ANNabort, annAllocPt(), annAllocPts(), annError(), annReadTree(), ANNwarn, and STRING_LEN.
Referenced by ANNbd_tree::ANNbd_tree(), and ANNkd_tree::ANNkd_tree().
static ANNkd_ptr annReadTree | ( | istream & | in, | |
ANNtreeType | tree_type, | |||
ANNidxArray | the_pidx, | |||
int & | next_idx | |||
) | [static] |
Definition at line 370 of file kd_dump.cpp.
References ANNabort, annError(), BD_TREE, KD_TRIVIAL, n_pts, and STRING_LEN.
Referenced by annReadDump().
const double EPSILON = 1E-5 |
Definition at line 46 of file kd_dump.cpp.
const int STRING_LEN = 500 |
Definition at line 45 of file kd_dump.cpp.