class MapGroupList

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
map_groupsMapGroupMap group

Member functions

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