##

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< F > | operator++ (int _dummy)
| Advance this iterator (postfix: it++) More...
GpuLaserDataIterator< F > & | operator-- ()
| Move itereator to previous (prefix: –it) More...
GpuLaserDataIterator< F > | operator-- (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

## ~GpuLaserDataIterator()

~GpuLaserDataIterator | ( |  | ) |

Destructor.

## GpuLaserDataIterator()

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

## operator!=()

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

Operator !=.

Parameters

  [in] | _rvalue | The iterator on the right of the !=

Returns
  true iff the iterators point to different readings

## operator*()

const GpuLaserData operator* | ( |  | ) | const

Dereference operator *iter.

Returns
  A struct of laser data

## operator++() [1/2]

GpuLaserDataIterator< F > & operator++ | ( |  | ) |

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

Returns
  reference to this pointer after advancing

## operator++() [2/2]

GpuLaserDataIterator< F > operator++ | ( | int | _dummy | ) |

Advance this iterator (postfix: it++)

Parameters

  [in] | _dummy | does nothing, required for postfix overload

Returns
  a copy of this iterator prior to advancing

## operator--() [1/2]

GpuLaserDataIterator< F > & operator-- | ( |  | ) |

Move itereator to previous (prefix: –it)

Returns
  reference to this pointer after moving

## operator--() [2/2]

GpuLaserDataIterator< F > operator-- | ( | int | _dummy | ) |

Move itereator to previous (postfix: it–)

Parameters

  [in] | _dummy | does nothing, required for postfix overload

Returns
  a copy of this iterator prior to moving

## operator->()

const std::unique_ptr< const GpuLaserData > operator-> | ( |  | ) | const

Dereference operator iter->

Returns
  a shared pointer object at the iterator's index

## operator==()

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

Operator ==.

Parameters

  [in] | _rvalue | The iterator on the right of the ==

Returns
  true iff the iterators point to the same reading

## Member Data Documentation

## F

friend F

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

- GpuLaserDataIterator.hh
- GpuLaserDataIteratorImpl.hh