Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 2.14 KB

File metadata and controls

22 lines (16 loc) · 2.14 KB

class ProtectionZoneNotificationList

Member values

Member name Data type Description
notifications ProtectionZoneNotification Notification

Member functions

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