NDEVR
API Documentation
VirtualTree< t_dims, t_type >

A polymorphic spatial tree that can instantiate either a KDTree or RTree at runtime based on configuration. More...

Public Types

enum  TreeType { e_KD , R }
 Enumerates the available spatial tree implementations. More...

Public Member Functions

void createKDTree (uint04 leaf_size)
 Creates a KDTree with the specified leaf size.
void createRTree (uint04 leaf_size)
 Creates an RTree with the specified leaf size.

Public Attributes

uint04 m_bucket_size
 The bucket size for leaf nodes.
TreeObject * m_object
 Pointer to the underlying tree implementation.
TreeType m_type
 The currently selected tree type.

Detailed Description

template<uint01 t_dims, class t_type>
class VirtualTree< t_dims, t_type >

A polymorphic spatial tree that can instantiate either a KDTree or RTree at runtime based on configuration.


Definition at line 42 of file VirtualTree.h.

Member Enumeration Documentation

◆ TreeType

template<uint01 t_dims, class t_type>
enum VirtualTree::TreeType

Enumerates the available spatial tree implementations.


Enumerator
e_KD 

KD-Tree spatial index.

R-Tree spatial index.

Definition at line 48 of file VirtualTree.h.

Member Function Documentation

◆ createKDTree()

template<uint01 t_dims, class t_type>
void VirtualTree< t_dims, t_type >::createKDTree ( uint04 leaf_size)
inline

Creates a KDTree with the specified leaf size.

Parameters
[in]leaf_sizeThe number of elements per leaf node.

Definition at line 59 of file VirtualTree.h.

References m_object.

◆ createRTree()

template<uint01 t_dims, class t_type>
void VirtualTree< t_dims, t_type >::createRTree ( uint04 leaf_size)
inline

Creates an RTree with the specified leaf size.

Parameters
[in]leaf_sizeThe number of elements per leaf node.

Definition at line 80 of file VirtualTree.h.

References m_object.


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