cheshirekow  v0.1.0
mpblocks::simplex_tree::Tree< Traits > Class Template Reference

base class for nodes, implements storage and interface for the simplex tree More...

#include <mpblocks/simplex_tree/Tree.h>

Public Types

typedef Traits::Format Format_t
 
typedef unsigned int Index_t
 
typedef Traits::Node Node_t
 
typedef Eigen::Matrix
< Format_t, Traits::NDim, 1 > 
Point_t
 
typedef Simplex< Traits > Simplex_t
 
typedef Eigen::Matrix
< Format_t, Traits::NDim, 1 > 
Vector_t
 
typedef Eigen::Matrix
< Format_t, Traits::NDim,
Eigen::Dynamic > 
Vertices_t
 

Public Member Functions

void insert (Node_t *)
 recursively inserts a point and returns the simplex which it was inserted into More...
 

Protected Attributes

Simplex_t m_root
 

Detailed Description

template<class Traits>
class mpblocks::simplex_tree::Tree< Traits >

base class for nodes, implements storage and interface for the simplex tree

The proper usage is to define a member class of Traits which is the actual node class, and which derives from this class. By CTRP it will contain storage and the necessary interface for the simplex tree, but the derived class is always returned through API calls

Definition at line 45 of file Tree.h.

Member Typedef Documentation

template<class Traits >
typedef Traits::Format mpblocks::simplex_tree::Tree< Traits >::Format_t

Definition at line 48 of file Tree.h.

template<class Traits >
typedef unsigned int mpblocks::simplex_tree::Tree< Traits >::Index_t

Definition at line 52 of file Tree.h.

template<class Traits >
typedef Traits::Node mpblocks::simplex_tree::Tree< Traits >::Node_t

Definition at line 49 of file Tree.h.

template<class Traits >
typedef Eigen::Matrix<Format_t,Traits::NDim,1> mpblocks::simplex_tree::Tree< Traits >::Point_t

Definition at line 54 of file Tree.h.

template<class Traits >
typedef Simplex<Traits> mpblocks::simplex_tree::Tree< Traits >::Simplex_t

Definition at line 50 of file Tree.h.

template<class Traits >
typedef Eigen::Matrix<Format_t,Traits::NDim,1> mpblocks::simplex_tree::Tree< Traits >::Vector_t

Definition at line 53 of file Tree.h.

template<class Traits >
typedef Eigen::Matrix<Format_t,Traits::NDim,Eigen::Dynamic> mpblocks::simplex_tree::Tree< Traits >::Vertices_t

Definition at line 55 of file Tree.h.

Member Function Documentation

template<class Traits >
void mpblocks::simplex_tree::Tree< Traits >::insert ( Node_t x)

recursively inserts a point and returns the simplex which it was inserted into

Definition at line 36 of file Tree.hpp.

Member Data Documentation

template<class Traits >
Simplex_t mpblocks::simplex_tree::Tree< Traits >::m_root
protected

Definition at line 59 of file Tree.h.


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