Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Kdtree_interface< PT > Class Template Reference

#include <kdtree_d.h>

Public Types

typedef PT Point
 

Static Public Member Functions

static int dimension (const PT &pnt)
 
static int compare (int d, const PT &a, const PT &b)
 
static void copy_coord (int d, PT &a, const PT &b)
 

Detailed Description

template<class PT>
class Kdtree_interface< PT >

Definition at line 102 of file kdtree_d.h.

Member Typedef Documentation

typedef PT Point

Definition at line 105 of file kdtree_d.h.

Member Function Documentation

static int compare ( int  d,
const PT &  a,
const PT &  b 
)
inlinestatic

Definition at line 113 of file kdtree_d.h.

114  {
115  if ( a[ d ] < b[ d ] )
116  return -1;
117  if ( a[ d ] > b[ d ] )
118  return 1;
119 
120  return 0;
121  }
const NT & d
static void copy_coord ( int  d,
PT &  a,
const PT &  b 
)
inlinestatic

Definition at line 122 of file kdtree_d.h.

References d.

123  {
124  a[ d ] = b[ d ];
125  }
const NT & d
static int dimension ( const PT &  pnt)
inlinestatic

Definition at line 107 of file kdtree_d.h.

108  {
109  // return pnt.dimensions();
110  return pnt.dimension();
111  }
Point object that represents a single point.
Definition: datatypedef.h:68

The documentation for this class was generated from the following file: