class ProtectionZoneList

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
protection_zonesProtectionZoneProtection zone

Member functions

Function nameReturn typeInput typeDescription
protection_zones_size() constintvoidReturns the number of elements currently in the field.
protection_zones() constconst ProtectionZoneint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, protection_zones_size()) yields undefined behavior.
mutable_protection_zones()ProtectionZone*int indexReturns a pointer to the mutable ProtectionZone object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, protection_zones_size()) yields undefined behavior.
add_protection_zones()ProtectionZone*voidAdds a new element and returns a pointer to it. The returned ProtectionZone is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated ProtectionZone).
clear_protection_zones()voidvoidRemoves all elements from the field. After calling this, protection_zones_size() will return zero.
protection_zones() constconst RepeatedPtrField< ProtectionZone>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_protection_zones()RepeatedPtrField< ProtectionZone>*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: Base (C++)