Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 2.03 KB

SafetyConfigurationList.md

File metadata and controls

22 lines (16 loc) · 2.03 KB

class SafetyConfigurationList

Member values

Member name Data type Description
configuration SafetyConfiguration Safety configuration

Member functions

Function name Return type Input type Description
configuration_size() const int void Returns the number of elements currently in the field.
configuration() const const SafetyConfiguration int index Returns the element at the given zero-based index. Calling this method with index outside of [0, configuration_size()) yields undefined behavior.
mutable_configuration() SafetyConfiguration* int index Returns a pointer to the mutable SafetyConfiguration object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, configuration_size()) yields undefined behavior.
add_configuration() SafetyConfiguration* void Adds a new element and returns a pointer to it. The returned SafetyConfiguration is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated SafetyConfiguration).
clear_configuration() void void Removes all elements from the field. After calling this, configuration_size() will return zero.
configuration() const const RepeatedPtrField< SafetyConfiguration>& void Returns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_configuration() RepeatedPtrField< SafetyConfiguration>* void Returns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: DeviceConfig (C++)