class ActionList

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
action_listActionAction

Member functions

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