Gazebo Transport

API Reference

14.0.0
MsgIter Class Reference

Implements iterator for reading messages. More...

#include <MsgIter.hh>

Public Member Functions

 MsgIter ()
 Default constructor.
 
 MsgIter (MsgIter &&_orig)
 Move Constructor.
 
 ~MsgIter ()
 Destructor;.
 
bool operator!= (const MsgIter &_other) const
 Inequality operator.
 
const Messageoperator* () const
 Dereference Operator.
 
MsgIteroperator++ ()
 Copy-assignment operator.
 
const Messageoperator-> () const
 arrow dereference operator
 
MsgIteroperator= (MsgIter &&_other)
 Move assignement operator.
 
bool operator== (const MsgIter &_other) const
 Equality operator.
 

Detailed Description

Implements iterator for reading messages.

Constructor & Destructor Documentation

◆ MsgIter() [1/2]

MsgIter ( )

Default constructor.

◆ MsgIter() [2/2]

MsgIter ( MsgIter &&  _orig)

Move Constructor.

Parameters
[in]_origthe instance being copied

◆ ~MsgIter()

~MsgIter ( )

Destructor;.

Member Function Documentation

◆ operator!=()

bool operator!= ( const MsgIter _other) const

Inequality operator.

Parameters
[in]_otherthe iterator this is being compared to
Returns
false if the two iterator point to the same message

◆ operator*()

const Message & operator* ( ) const

Dereference Operator.

Returns
a reference to the message this is pointing to

◆ operator++()

MsgIter & operator++ ( )

Copy-assignment operator.

Parameters
[in]_origthe instance being copied
Returns
a reference to this instance

Prefix increment

Returns
a reference to this instance

◆ operator->()

const Message * operator-> ( ) const

arrow dereference operator

Returns
a pointer to the message this is pointing to

◆ operator=()

MsgIter & operator= ( MsgIter &&  _other)

Move assignement operator.

Parameters
[in]_otherthe new iterator replacing the current one
Returns
The updated MsgIter.

◆ operator==()

bool operator== ( const MsgIter _other) const

Equality operator.

Parameters
[in]_otherthe iterator this is being compared to
Returns
true if the two iterator point to the same message

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