DUNE: Uniform Navigational Environment
2019.02.1
|
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.
Referenced by DUNE::Maneuvers::VehicleFormation::onUpdateParameters(), and DUNE::Maneuvers::FollowTrajectory::onUpdateParameters().
|
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 >::setDestinationEntity(), and 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.
Referenced by DUNE::Navigation::UsblTools::Node::consume(), DUNE::Maneuvers::VehicleFormation::onUpdateParameters(), and DUNE::Maneuvers::FollowTrajectory::onUpdateParameters().
|
inline |
Retrieve the amount of bytes needed to serialize the object.
Referenced by DUNE::IMC::MsgList::getVariableSerializationSize(), DUNE::IMC::LogBookControl::getVariableSerializationSize(), DUNE::IMC::VerticalProfile::getVariableSerializationSize(), DUNE::IMC::HistoricData::getVariableSerializationSize(), DUNE::IMC::LblConfig::getVariableSerializationSize(), DUNE::IMC::Distance::getVariableSerializationSize(), DUNE::IMC::SonarData::getVariableSerializationSize(), DUNE::IMC::FollowPath::getVariableSerializationSize(), DUNE::IMC::FollowTrajectory::getVariableSerializationSize(), DUNE::IMC::VehicleFormation::getVariableSerializationSize(), DUNE::IMC::CoverArea::getVariableSerializationSize(), DUNE::IMC::FormationParameters::getVariableSerializationSize(), DUNE::IMC::FormationMonitor::getVariableSerializationSize(), DUNE::IMC::Formation::getVariableSerializationSize(), DUNE::IMC::AutonomousSection::getVariableSerializationSize(), DUNE::IMC::PlanManeuver::getVariableSerializationSize(), DUNE::IMC::PlanTransition::getVariableSerializationSize(), DUNE::IMC::PlanSpecification::getVariableSerializationSize(), DUNE::IMC::PlanDBState::getVariableSerializationSize(), DUNE::IMC::MapFeature::getVariableSerializationSize(), DUNE::IMC::Map::getVariableSerializationSize(), DUNE::IMC::VehicleLinks::getVariableSerializationSize(), DUNE::IMC::TrexToken::getVariableSerializationSize(), DUNE::IMC::TrexPlan::getVariableSerializationSize(), DUNE::IMC::EntityParameters::getVariableSerializationSize(), DUNE::IMC::SetEntityParameters::getVariableSerializationSize(), DUNE::IMC::SoiPlan::getVariableSerializationSize(), DUNE::IMC::UsblConfig::getVariableSerializationSize(), and 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 |