Home | History | Annotate | Download | only in protobuf

Lines Matching defs:RepeatedField

35 // RepeatedField and RepeatedPtrField are used by generated protocol message
42 // Typically, clients should not need to access RepeatedField objects directly,
78 // RepeatedField is used to represent repeated fields of a primitive type (in
80 // not ever use a RepeatedField directly; they will use the get-by-index,
83 class RepeatedField {
85 RepeatedField();
86 RepeatedField(const RepeatedField& other);
88 RepeatedField(Iter begin, const Iter& end);
89 ~RepeatedField();
91 RepeatedField& operator=(const RepeatedField& other);
110 void MergeFrom(const RepeatedField& other);
111 void CopyFrom(const RepeatedField& other);
117 // Resize the RepeatedField to a new, smaller size. This is O(1).
130 void Swap(RepeatedField* other);
400 // RepeatedPtrField is like RepeatedField, but used for repeated strings or
551 inline RepeatedField<Element>::RepeatedField()
558 inline RepeatedField<Element>::RepeatedField(const RepeatedField& other)
567 inline RepeatedField<Element>::RepeatedField(Iter begin, const Iter& end)
577 RepeatedField<Element>::~RepeatedField() {
582 inline RepeatedField<Element>&
583 RepeatedField<Element>::operator=(const RepeatedField& other) {
590 inline int RepeatedField<Element>::size() const {
595 inline int RepeatedField<Element>::Capacity() const {
600 inline void RepeatedField<Element>::AddAlreadyReserved(const Element& value) {
606 inline Element* RepeatedField<Element>::AddAlreadyReserved() {
612 inline const Element& RepeatedField<Element>::Get(int index) const {
618 inline Element* RepeatedField<Element>::Mutable(int index) {
624 inline void RepeatedField<Element>::Set(int index, const Element& value) {
630 inline void RepeatedField<Element>::Add(const Element& value) {
636 inline Element* RepeatedField<Element>::Add() {
642 inline void RepeatedField<Element>::RemoveLast() {
648 void RepeatedField<Element>::ExtractSubrange(
669 inline void RepeatedField<Element>::Clear() {
674 inline void RepeatedField<Element>::MergeFrom(const RepeatedField& other) {
683 inline void RepeatedField<Element>::CopyFrom(const RepeatedField& other) {
689 inline Element* RepeatedField<Element>::mutable_data() {
694 inline const Element* RepeatedField<Element>::data() const {
700 void RepeatedField<Element>::Swap(RepeatedField* other) {
716 void RepeatedField<Element>::SwapElements(int index1, int index2) {
721 inline typename RepeatedField<Element>::iterator
722 RepeatedField<Element>::begin() {
726 inline typename RepeatedField<Element>::const_iterator
727 RepeatedField<Element>::begin() const {
731 inline typename RepeatedField<Element>::iterator
732 RepeatedField<Element>::end() {
736 inline typename RepeatedField<Element>::const_iterator
737 RepeatedField<Element>::end() const {
742 inline int RepeatedField<Element>::SpaceUsedExcludingSelf() const {
749 void RepeatedField<Element>::Reserve(int new_size) {
763 inline void RepeatedField<Element>::Truncate(int new_size) {
769 inline void RepeatedField<Element>::MoveArray(
775 inline void RepeatedField<Element>::CopyArray(
1389 // for RepeatedField and RepatedPtrField. Typical usage would be:
1397 // A back inserter for RepeatedField objects.
1402 RepeatedField<T>* const mutable_field)
1420 RepeatedField<T>* field_;
1484 // Provides a back insert iterator for RepeatedField instances,
1487 RepeatedFieldBackInserter(RepeatedField<T>* const mutable_field) {