Lines Matching refs:RepeatedField

35 // RepeatedField and RepeatedPtrField are used by generated protocol message
42 // Typically, clients should not need to access RepeatedField objects directly,
67 // RepeatedField is used to represent repeated fields of a primitive type (in
69 // not ever use a RepeatedField directly; they will use the get-by-index,
72 class RepeatedField {
74 RepeatedField();
75 ~RepeatedField();
92 void MergeFrom(const RepeatedField& other);
98 // Resize the RepeatedField to a new, smaller size. This is O(1).
111 void Swap(RepeatedField* other);
130 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedField);
313 // RepeatedPtrField is like RepeatedField, but used for repeated strings or
421 inline RepeatedField<Element>::RepeatedField()
428 RepeatedField<Element>::~RepeatedField() {
435 inline int RepeatedField<Element>::size() const {
440 inline int RepeatedField<Element>::Capacity() const {
445 inline void RepeatedField<Element>::AddAlreadyReserved(const Element& value) {
451 inline Element* RepeatedField<Element>::AddAlreadyReserved() {
457 inline const Element& RepeatedField<Element>::Get(int index) const {
463 inline Element* RepeatedField<Element>::Mutable(int index) {
469 inline void RepeatedField<Element>::Set(int index, const Element& value) {
475 inline void RepeatedField<Element>::Add(const Element& value) {
481 inline Element* RepeatedField<Element>::Add() {
487 inline void RepeatedField<Element>::RemoveLast() {
493 inline void RepeatedField<Element>::Clear() {
498 inline void RepeatedField<Element>::MergeFrom(const RepeatedField& other) {
505 inline Element* RepeatedField<Element>::mutable_data() {
510 inline const Element* RepeatedField<Element>::data() const {
516 void RepeatedField<Element>::Swap(RepeatedField* other) {
544 void RepeatedField<Element>::SwapElements(int index1, int index2) {
549 inline typename RepeatedField<Element>::iterator
550 RepeatedField<Element>::begin() {
554 inline typename RepeatedField<Element>::const_iterator
555 RepeatedField<Element>::begin() const {
559 inline typename RepeatedField<Element>::iterator
560 RepeatedField<Element>::end() {
564 inline typename RepeatedField<Element>::const_iterator
565 RepeatedField<Element>::end() const {
570 inline int RepeatedField<Element>::SpaceUsedExcludingSelf() const {
577 void RepeatedField<Element>::Reserve(int new_size) {
590 inline void RepeatedField<Element>::Truncate(int new_size) {
596 inline void RepeatedField<Element>::MoveArray(
602 inline void RepeatedField<Element>::CopyArray(
1124 // for RepeatedField and RepatedPtrField. Typical usage would be:
1132 // A back inserter for RepeatedField objects.
1137 RepeatedField<T>* const mutable_field)
1155 RepeatedField<T>* const field_;
1219 // Provides a back insert iterator for RepeatedField instances,
1223 RepeatedFieldBackInserter(RepeatedField<T>* const mutable_field) {
1229 // function for RepeatedField instances.