Ponca  d7cfd56d3b941b19b948598cbad1ad5fa74092e9
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::ComputeObject< Derived > Struct Template Reference

ComputeObject is a virtual object that represents an algorithm which can be used with the compute functions. More...

#include <basket.h>

+ Inheritance diagram for Ponca::ComputeObject< Derived >:
+ Collaboration diagram for Ponca::ComputeObject< Derived >:

Public Member Functions

template<typename Container >
FIT_RESULT compute (const Container &c)
 Convenience function for STL-like container

 
template<typename IteratorBegin , typename IteratorEnd >
FIT_RESULT compute (const IteratorBegin &begin, const IteratorEnd &end)
 Convenience function for STL-like iterators.
 
template<typename IndexRange , typename PointContainer >
FIT_RESULT computeWithIds (IndexRange, const PointContainer &)
 Convenience function to iterate over a subset of samples in a PointContainer.
 

Protected Member Functions

Derived & derived ()
 Retrieve the top layer object Returns a reference to the derived class so that we can use its overwritten methods.
 

Detailed Description

template<typename Derived>
struct Ponca::ComputeObject< Derived >

ComputeObject is a virtual object that represents an algorithm which can be used with the compute functions.

The compute(begin, end) and computeWithIds(ids, points) methods must be implemented by the inheriting class.

Note
The compute(container) that is defined in this structure can be reused in the inheriting class by adding "using ComputeObject<Self>::compute;" to make it accessible

Definition at line 82 of file basket.h.

Member Function Documentation

◆ compute() [1/2]

template<typename Derived >
template<typename Container >
FIT_RESULT Ponca::ComputeObject< Derived >::compute ( const Container &  c)
inline

Convenience function for STL-like container

Uses the compute(IteratorBegin, IteratorEnd) function

Template Parameters
ContainerAnd STL-Like container
See also
compute(const IteratorBegin& begin, const IteratorEnd& end)

Definition at line 95 of file basket.h.

◆ compute() [2/2]

template<typename Derived >
template<typename IteratorBegin , typename IteratorEnd >
FIT_RESULT Ponca::ComputeObject< Derived >::compute ( const IteratorBegin &  begin,
const IteratorEnd &  end 
)
inline

Convenience function for STL-like iterators.

Template Parameters
IteratorBeginThe beginning of the iterator (std::begin(iterator)
IteratorEndThe end of the iterator (std::end(iterator)

Definition at line 105 of file basket.h.

◆ computeWithIds()

template<typename Derived >
template<typename IndexRange , typename PointContainer >
FIT_RESULT Ponca::ComputeObject< Derived >::computeWithIds ( IndexRange  ,
const PointContainer &   
)
inline

Convenience function to iterate over a subset of samples in a PointContainer.

Template Parameters
IndexRangeSTL-Like range storing indices of the neighbors
PointContainerSTL-like container storing the points
See also
compute(const IteratorBegin& begin, const IteratorEnd& end)

Definition at line 113 of file basket.h.

◆ derived()

template<typename Derived >
Derived & Ponca::ComputeObject< Derived >::derived ( )
inlineprotected

Retrieve the top layer object Returns a reference to the derived class so that we can use its overwritten methods.

Definition at line 86 of file basket.h.