iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::PointCloud2::ConstIterator<> Class Template Reference

#include <nrt/PointCloud2/details/PointCloud2Impl.H>

template<>
class nrt::PointCloud2::ConstIterator<>

Template specialization for ConstIterator with no template parameters.

Definition at line 1332 of file PointCloud2Impl.H.

Inherits iterator_facade< ConstIterator<>, PointCloud2ConstDataRef<>, boost::random_access_traversal_tag, PointCloud2ConstDataRef<> >.

Public Types

typedef boost::iterator_facade
< ConstIterator
<>, PointCloud2ConstDataRef
<>, boost::random_access_traversal_tag,
PointCloud2ConstDataRef
<> >::difference_type 
difference_type
 To keep boost happy.
 

Public Member Functions

 ConstIterator (PointCloud2 const *const cloud, size_t index)
 Creates an iterator located at a certain index in the cloud. More...
 
 ConstIterator (PointCloud2 const *const cloud, size_t index, Indices const indices)
 Creates an iterator over a specific subset of points. More...
 
 ConstIterator (ConstIterator const &other)=default
 Copy construction.
 
bool sparse () const
 Get whether we contain sparse fields.
 
size_t index () const
 Get the current index in the point cloud of the iterator. More...
 

Friends

class boost::iterator_core_access
 

Constructor & Destructor Documentation

nrt::PointCloud2::ConstIterator<>::ConstIterator ( PointCloud2 const *const  cloud,
size_t  index 
)
inline

Creates an iterator located at a certain index in the cloud.

Parameters
cloudThe point cloud
indexThe starting index
nrt::PointCloud2::ConstIterator<>::ConstIterator ( PointCloud2 const *const  cloud,
size_t  index,
Indices const  indices 
)
inline

Creates an iterator over a specific subset of points.

Parameters
cloudThe point cloud
indexThe starting index in the set of indices
indicesThe indices that define a subset

Member Function Documentation

size_t nrt::PointCloud2::ConstIterator<>::index ( ) const
inline

Get the current index in the point cloud of the iterator.

The value returned is not guaranteed to be valid if the iterator is not within the bounds of the cloud


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