GpuLaserDataIterator< F > Class Template Reference

const Bidirectional iterator for laser data More...

#include <GpuLaserDataIterator.hh>

Public Member Functions

 ~GpuLaserDataIterator ()
 Destructor. More...
 
bool operator!= (const GpuLaserDataIterator &_rvalue) const
 Operator !=. More...
 
const GpuLaserData operator* () const
 Dereference operator *iter. More...
 
GpuLaserDataIterator< F > & operator++ ()
 Advance iterator to next reading (prefix: ++it) More...
 
GpuLaserDataIterator< Foperator++ (int _dummy)
 Advance this iterator (postfix: it++) More...
 
GpuLaserDataIterator< F > & operator-- ()
 Move itereator to previous (prefix: –it) More...
 
GpuLaserDataIterator< Foperator-- (int _dummy)
 Move itereator to previous (postfix: it–) More...
 
const std::unique_ptr< const
GpuLaserData
operator-> () const
 Dereference operator iter-> More...
 
bool operator== (const GpuLaserDataIterator &_rvalue) const
 Operator ==. More...
 

Public Attributes

friend F
 

Protected Member Functions

 GpuLaserDataIterator (const unsigned int _index, const float *_data, const unsigned int _skip, const unsigned int _rangeOffset, const unsigned int _intensityOffset, const unsigned int _horizontalResolution)
 contstruct an iterator to a specified index More...
 

Detailed Description

template<typename F>
class gazebo::rendering::GpuLaserDataIterator< F >

const Bidirectional iterator for laser data

This class contains the information needed to access Laser Data It implements a Bidirectional Input iterator http://www.cplusplus.com/reference/iterator/BidirectionalIterator/ The compiler should optimize out calls to this class

Constructor & Destructor Documentation

Destructor.

GpuLaserDataIterator ( const unsigned int  _index,
const float *  _data,
const unsigned int  _skip,
const unsigned int  _rangeOffset,
const unsigned int  _intensityOffset,
const unsigned int  _horizontalResolution 
)
protected

contstruct an iterator to a specified index

Member Function Documentation

bool operator!= ( const GpuLaserDataIterator< F > &  _rvalue) const

Operator !=.

Parameters
[in]_rvalueThe iterator on the right of the !=
Returns
true iff the iterators point to different readings
const GpuLaserData operator* ( ) const

Dereference operator *iter.

Returns
A struct of laser data
GpuLaserDataIterator< F > & operator++ ( )

Advance iterator to next reading (prefix: ++it)

Returns
reference to this pointer after advancing
GpuLaserDataIterator< F > operator++ ( int  _dummy)

Advance this iterator (postfix: it++)

Parameters
[in]_dummydoes nothing, required for postfix overload
Returns
a copy of this iterator prior to advancing
GpuLaserDataIterator< F > & operator-- ( )

Move itereator to previous (prefix: –it)

Returns
reference to this pointer after moving
GpuLaserDataIterator< F > operator-- ( int  _dummy)

Move itereator to previous (postfix: it–)

Parameters
[in]_dummydoes nothing, required for postfix overload
Returns
a copy of this iterator prior to moving
const std::unique_ptr< const GpuLaserData > operator-> ( ) const

Dereference operator iter->

Returns
a shared pointer object at the iterator's index
bool operator== ( const GpuLaserDataIterator< F > &  _rvalue) const

Operator ==.

Parameters
[in]_rvalueThe iterator on the right of the ==
Returns
true iff the iterators point to the same reading

Member Data Documentation

friend F

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