class SafetyConfigurationList

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
configurationSafetyConfigurationSafety configuration

Member functions

Function nameReturn typeInput typeDescription
configuration_size() constintvoidReturns the number of elements currently in the field.
configuration() constconst SafetyConfigurationint indexReturns 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 indexReturns 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*voidAdds 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()voidvoidRemoves all elements from the field. After calling this, configuration_size() will return zero.
configuration() constconst RepeatedPtrField< SafetyConfiguration>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_configuration()RepeatedPtrField< SafetyConfiguration>*voidReturns 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++)