Robotics Library  0.7.0
Public Types | Public Member Functions | Private Attributes | List of all members
rl::plan::NearestNeighbors Class Referenceabstract

#include <NearestNeighbors.h>

Inheritance diagram for rl::plan::NearestNeighbors:
Inheritance graph
[legend]

Public Types

typedef Metric::Distance Distance
 
typedef Metric::Value Value
 
typedef ::std::pair< Distance, ValueNeighbor
 

Public Member Functions

 NearestNeighbors (const bool &transformed)
 
virtual ~NearestNeighbors ()
 
virtual void clear ()=0
 
virtual bool empty () const =0
 
bool isTransformedDistance () const
 
virtual ::std::vector< Neighbornearest (const Value &query, const ::std::size_t &k, const bool &sorted=true) const =0
 
virtual void push (const Value &value)=0
 
virtual ::std::size_t size () const =0
 

Private Attributes

bool transformed
 

Member Typedef Documentation

◆ Distance

◆ Neighbor

◆ Value

Constructor & Destructor Documentation

◆ NearestNeighbors()

rl::plan::NearestNeighbors::NearestNeighbors ( const bool &  transformed)

◆ ~NearestNeighbors()

rl::plan::NearestNeighbors::~NearestNeighbors ( )
virtual

Member Function Documentation

◆ clear()

virtual void rl::plan::NearestNeighbors::clear ( )
pure virtual

◆ empty()

virtual bool rl::plan::NearestNeighbors::empty ( ) const
pure virtual

◆ isTransformedDistance()

bool rl::plan::NearestNeighbors::isTransformedDistance ( ) const

◆ nearest()

virtual ::std::vector<Neighbor> rl::plan::NearestNeighbors::nearest ( const Value query,
const ::std::size_t &  k,
const bool &  sorted = true 
) const
pure virtual

◆ push()

virtual void rl::plan::NearestNeighbors::push ( const Value value)
pure virtual

◆ size()

virtual ::std::size_t rl::plan::NearestNeighbors::size ( ) const
pure virtual

Member Data Documentation

◆ transformed

bool rl::plan::NearestNeighbors::transformed
private

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