This class represents the structure LaneInvasionEvent defined by the user in the IDL file. More...
#include <CarlaLineInvasion.h>
Public Member Functions | |
eProsima_user_DllExport void | crossed_lane_markings (const std::vector< int32_t > &_crossed_lane_markings) |
This function copies the value in member crossed_lane_markings. More... | |
eProsima_user_DllExport void | crossed_lane_markings (std::vector< int32_t > &&_crossed_lane_markings) |
This function moves the value in member crossed_lane_markings. More... | |
eProsima_user_DllExport const std::vector< int32_t > & | crossed_lane_markings () const |
This function returns a constant reference to member crossed_lane_markings. More... | |
eProsima_user_DllExport std::vector< int32_t > & | crossed_lane_markings () |
This function returns a reference to member crossed_lane_markings. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | header (const std_msgs::msg::Header &_header) |
This function copies the value in member header. More... | |
eProsima_user_DllExport void | header (std_msgs::msg::Header &&_header) |
This function moves the value in member header. More... | |
eProsima_user_DllExport const std_msgs::msg::Header & | header () const |
This function returns a constant reference to member header. More... | |
eProsima_user_DllExport std_msgs::msg::Header & | header () |
This function returns a reference to member header. More... | |
eProsima_user_DllExport | LaneInvasionEvent () |
Default constructor. More... | |
eProsima_user_DllExport | LaneInvasionEvent (const LaneInvasionEvent &x) |
Copy constructor. More... | |
eProsima_user_DllExport | LaneInvasionEvent (LaneInvasionEvent &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport bool | operator!= (const LaneInvasionEvent &x) const |
Comparison operator. More... | |
eProsima_user_DllExport LaneInvasionEvent & | operator= (const LaneInvasionEvent &x) |
Copy assignment. More... | |
eProsima_user_DllExport LaneInvasionEvent & | operator= (LaneInvasionEvent &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const LaneInvasionEvent &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. More... | |
eProsima_user_DllExport | ~LaneInvasionEvent () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const carla_msgs::msg::LaneInvasionEvent &data, size_t current_alignment=0) |
This function returns the serialized size of a data depending on the buffer alignment. More... | |
static eProsima_user_DllExport size_t | getKeyMaxCdrSerializedSize (size_t current_alignment=0) |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment. More... | |
static eProsima_user_DllExport size_t | getMaxCdrSerializedSize (size_t current_alignment=0) |
This function returns the maximum serialized size of an object depending on the buffer alignment. More... | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type. More... | |
Private Attributes | |
std::vector< int32_t > | m_crossed_lane_markings |
std_msgs::msg::Header | m_header |
This class represents the structure LaneInvasionEvent defined by the user in the IDL file.
Definition at line 75 of file CarlaLineInvasion.h.
carla_msgs::msg::LaneInvasionEvent::LaneInvasionEvent | ( | ) |
Default constructor.
Definition at line 44 of file CarlaLineInvasion.cpp.
carla_msgs::msg::LaneInvasionEvent::~LaneInvasionEvent | ( | ) |
Default destructor.
Definition at line 48 of file CarlaLineInvasion.cpp.
carla_msgs::msg::LaneInvasionEvent::LaneInvasionEvent | ( | const LaneInvasionEvent & | x | ) |
Copy constructor.
x | Reference to the object carla_msgs::msg::LaneInvasionEvent that will be copied. |
Definition at line 52 of file CarlaLineInvasion.cpp.
References m_crossed_lane_markings, and m_header.
|
noexcept |
Move constructor.
x | Reference to the object carla_msgs::msg::LaneInvasionEvent that will be copied. |
Definition at line 59 of file CarlaLineInvasion.cpp.
void carla_msgs::msg::LaneInvasionEvent::crossed_lane_markings | ( | const std::vector< int32_t > & | _crossed_lane_markings | ) |
This function copies the value in member crossed_lane_markings.
_crossed_lane_markings | New value to be copied in member crossed_lane_markings |
Definition at line 174 of file CarlaLineInvasion.cpp.
Referenced by getCdrSerializedSize().
void carla_msgs::msg::LaneInvasionEvent::crossed_lane_markings | ( | std::vector< int32_t > && | _crossed_lane_markings | ) |
This function moves the value in member crossed_lane_markings.
_crossed_lane_markings | New value to be moved in member crossed_lane_markings |
Definition at line 184 of file CarlaLineInvasion.cpp.
const std::vector< int32_t > & carla_msgs::msg::LaneInvasionEvent::crossed_lane_markings | ( | ) | const |
This function returns a constant reference to member crossed_lane_markings.
Definition at line 194 of file CarlaLineInvasion.cpp.
std::vector< int32_t > & carla_msgs::msg::LaneInvasionEvent::crossed_lane_markings | ( | ) |
This function returns a reference to member crossed_lane_markings.
Definition at line 203 of file CarlaLineInvasion.cpp.
void carla_msgs::msg::LaneInvasionEvent::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 126 of file CarlaLineInvasion.cpp.
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::deserialize().
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
Definition at line 103 of file CarlaLineInvasion.cpp.
References crossed_lane_markings(), std_msgs::msg::Header::getCdrSerializedSize(), and header().
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 209 of file CarlaLineInvasion.cpp.
References carla_msgs_msg_LaneInvasionEvent_max_key_cdr_typesize.
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::getKey(), and carla_msgs::msg::LaneInvasionEventPubSubType::LaneInvasionEventPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 96 of file CarlaLineInvasion.cpp.
References carla_msgs_msg_LaneInvasionEvent_max_cdr_typesize.
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::LaneInvasionEventPubSubType().
void carla_msgs::msg::LaneInvasionEvent::header | ( | const std_msgs::msg::Header & | _header | ) |
This function copies the value in member header.
_header | New value to be copied in member header |
Definition at line 137 of file CarlaLineInvasion.cpp.
Referenced by getCdrSerializedSize().
void carla_msgs::msg::LaneInvasionEvent::header | ( | std_msgs::msg::Header && | _header | ) |
This function moves the value in member header.
_header | New value to be moved in member header |
Definition at line 147 of file CarlaLineInvasion.cpp.
const std_msgs::msg::Header & carla_msgs::msg::LaneInvasionEvent::header | ( | ) | const |
This function returns a constant reference to member header.
Definition at line 157 of file CarlaLineInvasion.cpp.
std_msgs::msg::Header & carla_msgs::msg::LaneInvasionEvent::header | ( | ) |
This function returns a reference to member header.
Definition at line 166 of file CarlaLineInvasion.cpp.
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 216 of file CarlaLineInvasion.cpp.
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::LaneInvasionEventPubSubType().
bool carla_msgs::msg::LaneInvasionEvent::operator!= | ( | const LaneInvasionEvent & | x | ) | const |
Comparison operator.
x | carla_msgs::msg::LaneInvasionEvent object to compare. |
Definition at line 90 of file CarlaLineInvasion.cpp.
carla_msgs::msg::LaneInvasionEvent & carla_msgs::msg::LaneInvasionEvent::operator= | ( | const LaneInvasionEvent & | x | ) |
Copy assignment.
x | Reference to the object carla_msgs::msg::LaneInvasionEvent that will be copied. |
Definition at line 66 of file CarlaLineInvasion.cpp.
References m_crossed_lane_markings, and m_header.
|
noexcept |
Move assignment.
x | Reference to the object carla_msgs::msg::LaneInvasionEvent that will be copied. |
Definition at line 75 of file CarlaLineInvasion.cpp.
bool carla_msgs::msg::LaneInvasionEvent::operator== | ( | const LaneInvasionEvent & | x | ) | const |
Comparison operator.
x | carla_msgs::msg::LaneInvasionEvent object to compare. |
Definition at line 84 of file CarlaLineInvasion.cpp.
References m_crossed_lane_markings, and m_header.
void carla_msgs::msg::LaneInvasionEvent::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 119 of file CarlaLineInvasion.cpp.
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::serialize().
void carla_msgs::msg::LaneInvasionEvent::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 221 of file CarlaLineInvasion.cpp.
Referenced by carla_msgs::msg::LaneInvasionEventPubSubType::getKey().
|
private |
Definition at line 237 of file CarlaLineInvasion.h.
Referenced by LaneInvasionEvent(), operator=(), and operator==().
|
private |
Definition at line 236 of file CarlaLineInvasion.h.
Referenced by LaneInvasionEvent(), operator=(), and operator==().