CAPD RedHom Library
capd::persistence::PointCloud< Metric, _DIM > Class Template Reference

#include <capd/persistence/PointCloud.h>

Public Types

typedef Metric::Scalar Scalar
 
typedef Metric::Distance Distance
 
typedef capd::vectalg::Vector< Scalar, DIMPoint
 
typedef std::vector< PointPoints
 
typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::no_property, boost::no_property, boost::listS > Graph
 
typedef size_t Id
 

Public Member Functions

template<typename Iterator >
 PointCloud (Iterator begin, Iterator end, Metric metric=Metric())
 
virtual ~PointCloud ()
 
void setNeighbour (Id idxI, Id idxJ, double weight)
 
size_t size () const
 
const Pointoperator[] (size_t idx) const
 
void neighbours (Id idxI, std::vector< Id > &result) const
 
size_t edges ()
 
Distance distance (Id p1, Id p2) const
 
virtual std::vector< Idneighbours (Id idxI) const
 

Static Public Attributes

static const size_t DIM = _DIM
 

Member Typedef Documentation

template<typename Metric, size_t _DIM = 0>
typedef Metric::Distance capd::persistence::PointCloud< Metric, _DIM >::Distance
template<typename Metric, size_t _DIM = 0>
typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::no_property, boost::no_property, boost::no_property, boost::listS> capd::persistence::PointCloud< Metric, _DIM >::Graph
template<typename Metric, size_t _DIM = 0>
typedef capd::vectalg::Vector<Scalar, DIM> capd::persistence::PointCloud< Metric, _DIM >::Point
template<typename Metric, size_t _DIM = 0>
typedef std::vector<Point> capd::persistence::PointCloud< Metric, _DIM >::Points
template<typename Metric, size_t _DIM = 0>
typedef Metric::Scalar capd::persistence::PointCloud< Metric, _DIM >::Scalar

Constructor & Destructor Documentation

template<typename Metric, size_t _DIM = 0>
template<typename Iterator >
capd::persistence::PointCloud< Metric, _DIM >::PointCloud ( Iterator  begin,
Iterator  end,
Metric  metric = Metric() 
)
inline
template<typename Metric, size_t _DIM = 0>
virtual capd::persistence::PointCloud< Metric, _DIM >::~PointCloud ( )
inlinevirtual

Member Function Documentation

template<typename ScalarT , size_t _DIM>
PointCloud< ScalarT, _DIM >::Distance capd::persistence::PointCloud< ScalarT, _DIM >::distance ( Id  p1,
Id  p2 
) const
virtual
template<typename ScalarT , size_t _DIM>
size_t capd::persistence::PointCloud< ScalarT, _DIM >::edges ( )
virtual
virtual std::vector<Id> capd::persistence::AbstractPointCloud::neighbours ( Id  idxI) const
inlinevirtualinherited
template<typename Metric, size_t _DIM = 0>
void capd::persistence::PointCloud< ScalarT, _DIM >::neighbours ( Id  idxI,
std::vector< Id > &  result 
) const
virtual
template<typename Metric, size_t _DIM = 0>
const Point& capd::persistence::PointCloud< Metric, _DIM >::operator[] ( size_t  idx) const
inline
template<typename ScalarT , size_t _DIM>
void capd::persistence::PointCloud< ScalarT, _DIM >::setNeighbour ( Id  idxI,
Id  idxJ,
double  weight 
)
template<typename Metric, size_t _DIM = 0>
size_t capd::persistence::PointCloud< Metric, _DIM >::size ( ) const
inlinevirtual

Member Data Documentation

template<typename Metric, size_t _DIM = 0>
const size_t capd::persistence::PointCloud< Metric, _DIM >::DIM = _DIM
static