DUNE: Uniform Navigational Environment
2017.01.0
|
Message list.
Public Types | |
typedef std::vector< Type * > ::const_iterator | const_iterator |
Public Member Functions | |
MessageList (void) | |
MessageList (const MessageList &other) | |
~MessageList (void) | |
void | setParent (const Message *parent) |
void | clear (void) |
size_t | size (void) const |
const_iterator | begin (void) const |
const_iterator | end (void) const |
void | push_back (const Type &msg) |
void | push_back (const Type *msg) |
unsigned | getSerializationSize (void) const |
MessageList & | operator= (const MessageList &other) |
bool | operator== (const MessageList &other) const |
bool | operator!= (const MessageList &other) const |
uint16_t | serialize (uint8_t *bfr) const |
uint16_t | deserialize (const uint8_t *bfr, uint16_t &bfr_len) |
uint16_t | reverseDeserialize (const uint8_t *bfr, uint16_t &bfr_len) |
void | toJSON (std::ostream &os, const char *label, unsigned nindent, char prefix= ',') const |
void | setTimeStamp (double value) |
void | setSource (uint16_t value) |
void | setSourceEntity (uint8_t value) |
void | setDestination (uint16_t value) |
void | setDestinationEntity (uint8_t value) |
typedef std::vector<Type*>::const_iterator DUNE::IMC::MessageList< Type >::const_iterator |
|
inline |
Default constructor.
|
inline |
Copy constructor.
Copy the contents of other to this instance.
[in] | other | message. |
|
inline |
Default destructor.
|
inline |
Return an iterator referring to the first element in the list container.
|
inline |
All the elements of the list are deleted: their destructors are called, and then they are removed from the vector container, leaving the container with a size of 0.
Referenced by DUNE::IMC::MessageList< DUNE::IMC::VehicleFormationParticipant >::~MessageList().
|
inline |
Deserialize message from byte buffer.
[in] | bfr | buffer. |
[in] | bfr_len | buffer size. |
|
inline |
Returns an iterator referring to the past-the-end element in the list container.
|
inline |
Retrieve the amount of bytes needed to serialize the object.
Referenced by DUNE::IMC::MessageList< DUNE::IMC::VehicleFormationParticipant >::serialize().
|
inline |
Compare two instances for inequality.
[in] | other | object to compare. |
|
inline |
Assignment operator.
Replace the contents of 'this' instance with the contents of 'other'.
[in] | other | message. |
|
inline |
Compare two instances for equality.
[in] | other | object to compare. |
|
inline |
Add a new element at the end of the list, after its current last element.
The content of this new element is initialized to a copy of 'msg'.
[in] | msg | message. |
Referenced by DUNE::Parsers::PlanConfigParser::parse(), DUNE::Parsers::PlanConfigParser::parseActions(), and DUNE::IMC::MessageList< DUNE::IMC::VehicleFormationParticipant >::push_back().
|
inline |
Add a new element at the end of the list, after its current last element.
The content of this new element is initialized to 'msg'.
[in] | msg | pointer to message. |
|
inline |
|
inline |
Serialize instance.
[in] | bfr | buffer. |
|
inline |
|
inline |
|
inline |
Set the parent of the message list.
This object will be used to synchronize the header fields of the messages in the list.
[in] | parent | message list parent. |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve the number of elements in this list.
Referenced by DUNE::IMC::MessageList< DUNE::IMC::VehicleFormationParticipant >::operator==().
|
inline |