Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 2.05 KB

File metadata and controls

22 lines (16 loc) · 2.05 KB

class UserList

Member values

Member name Data type Description
user_handles UserProfileHandle User handle

Member functions

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