Gazebo Transport

API Reference

14.0.0~pre1

Holds the result of a query for messages. More...

#include <Batch.hh>

Public Types

using iterator = MsgIter
 typedef for prettiness
 

Public Member Functions

 Batch ()
 Default constructor.
 
 Batch (Batch &&_old)
 move constructor
 
 Batch (const Batch &other)=delete
 No copy constructor.
 
 ~Batch ()
 destructor
 
iterator begin ()
 Iterator to first message in batch.
 
iterator end ()
 Iterator to one past the last message in a batch.
 
Batchoperator= (Batch &&_other)
 Move assignement operator.
 
Batchoperator= (const Batch &other)=delete
 No copy-assignment operator.
 

Detailed Description

Holds the result of a query for messages.

Member Typedef Documentation

◆ iterator

using iterator = MsgIter

typedef for prettiness

Constructor & Destructor Documentation

◆ Batch() [1/3]

Batch ( )

Default constructor.

◆ Batch() [2/3]

Batch ( Batch &&  _old)

move constructor

Parameters
[in]_oldthe instance being moved into this one

◆ Batch() [3/3]

Batch ( const Batch other)
delete

No copy constructor.

◆ ~Batch()

~Batch ( )

destructor

Member Function Documentation

◆ begin()

iterator begin ( )

Iterator to first message in batch.

Remarks
the lowercase function name is required to support range-based for loops
Returns
an iterator to the start of the messages

◆ end()

iterator end ( )

Iterator to one past the last message in a batch.

Remarks
the lowercase function name is required to support range-based for loops
Returns
an iterator that is not equal to any iterator that points to a valid message

◆ operator=() [1/2]

Batch & operator= ( Batch &&  _other)

Move assignement operator.

Parameters
[in]_otherthe new Batch replacing the current one
Returns
The updated Batch instance.

◆ operator=() [2/2]

Batch & operator= ( const Batch other)
delete

No copy-assignment operator.


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