FairMQParts is a lightweight convenience wrapper around a vector of unique pointers to FairMQMessage, used for sending multi-part messages.
More...
#include <FairMQParts.h>
|
using | iterator = container::iterator |
|
using | const_iterator = container::const_iterator |
|
FairMQParts is a lightweight convenience wrapper around a vector of unique pointers to FairMQMessage, used for sending multi-part messages.
◆ AddPart() [1/2]
Adds part (FairMQMessage) to the container
- Parameters
-
msg | message pointer (for example created with NewMessage() method of FairMQDevice) |
◆ AddPart() [2/2]
void FairMQParts::AddPart |
( |
std::unique_ptr< FairMQMessage > && |
msg | ) |
|
|
inline |
Adds part (std::unique_ptr<FairMQMessage>&) to the container (move)
- Parameters
-
msg | unique pointer to FairMQMessage rvalue ref (move required when passing argument) |
◆ At()
std::unique_ptr<FairMQMessage>& FairMQParts::At |
( |
const int |
index | ) |
|
|
inline |
Get reference to unique pointer to part in the container at index (with bounds check)
- Parameters
-
◆ operator[]()
Get reference to part in the container at index (without bounds check)
- Parameters
-
◆ Size()
int FairMQParts::Size |
( |
| ) |
const |
|
inline |
Get number of parts in the container
- Returns
- number of parts in the container
The documentation for this class was generated from the following file: