class UserProfileList

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
user_profilesUserProfileUser profile

Member functions

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