#include <repeated_field.h>
google::protobuf::internal::RepeatedPtrFieldBase::RepeatedPtrFieldBase |
( |
| ) |
|
|
inlineprotected |
int total_size_
Definition: repeated_field.h:344
arena_t NULL
Definition: jemalloc_internal.h:624
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
static const int kInitialSize
Definition: repeated_field.h:339
int allocated_size_
Definition: repeated_field.h:343
template<typename TypeHandler >
void Reserve(int new_size)
int total_size_
Definition: repeated_field.h:344
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
Type
Type of JSON value.
Definition: rapidjson.h:642
template<typename TypeHandler >
void google::protobuf::internal::RepeatedPtrFieldBase::AddAllocated |
( |
typename TypeHandler::Type * |
value | ) |
|
|
protected |
void Reserve(int new_size)
int total_size_
Definition: repeated_field.h:344
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename TypeHandler >
void google::protobuf::internal::RepeatedPtrFieldBase::AddCleared |
( |
typename TypeHandler::Type * |
value | ) |
|
|
inlineprotected |
void Reserve(int new_size)
int total_size_
Definition: repeated_field.h:344
void ** elements_
Definition: repeated_field.h:341
int allocated_size_
Definition: repeated_field.h:343
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename TypeHandler >
TypeHandler::Type * google::protobuf::internal::RepeatedPtrFieldBase::AddFromCleared |
( |
| ) |
|
|
inlineprotected |
arena_t NULL
Definition: jemalloc_internal.h:624
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
int google::protobuf::internal::RepeatedPtrFieldBase::Capacity |
( |
| ) |
const |
|
inlineprotected |
int total_size_
Definition: repeated_field.h:344
template<typename TypeHandler >
static TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::cast |
( |
void * |
element | ) |
|
|
inlinestaticprivate |
Type
Type of JSON value.
Definition: rapidjson.h:642
template<typename TypeHandler >
Type
Type of JSON value.
Definition: rapidjson.h:642
template<typename TypeHandler >
void google::protobuf::internal::RepeatedPtrFieldBase::Clear |
( |
| ) |
|
|
protected |
920 TypeHandler::Clear(cast<TypeHandler>(
elements_[i]));
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int google::protobuf::internal::RepeatedPtrFieldBase::ClearedCount |
( |
| ) |
const |
|
inlineprotected |
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
void google::protobuf::internal::RepeatedPtrFieldBase::CloseGap |
( |
int |
start, |
|
|
int |
num |
|
) |
| |
|
inlineprotected |
297 allocated_size_ -= num;
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
template<typename TypeHandler >
936 if (&other ==
this)
return;
937 RepeatedPtrFieldBase::Clear<TypeHandler>();
938 RepeatedPtrFieldBase::MergeFrom<TypeHandler>(other);
template<typename TypeHandler >
void ** elements_
Definition: repeated_field.h:341
#define const
Definition: zconf.h:217
Type
Type of JSON value.
Definition: rapidjson.h:642
template<typename TypeHandler >
void google::protobuf::internal::RepeatedPtrFieldBase::Destroy |
( |
| ) |
|
|
protected |
869 TypeHandler::Delete(cast<TypeHandler>(
elements_[i]));
void ** elements_
Definition: repeated_field.h:341
int allocated_size_
Definition: repeated_field.h:343
bool google::protobuf::internal::RepeatedPtrFieldBase::empty |
( |
| ) |
const |
|
inlineprotected |
int current_size_
Definition: repeated_field.h:342
template<typename TypeHandler >
887 return *cast<TypeHandler>(
elements_[index]);
void ** elements_
Definition: repeated_field.h:341
#define GOOGLE_DCHECK_GE
Definition: common.h:758
#define GOOGLE_DCHECK_LT
Definition: common.h:755
int size() const
Definition: repeated_field.h:878
google::protobuf::internal::RepeatedPtrFieldBase::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS |
( |
RepeatedPtrFieldBase |
| ) |
|
|
private |
template<typename TypeHandler >
929 for (
int i = 0; i < other.current_size_; i++) {
930 TypeHandler::Merge(other.template Get<TypeHandler>(i), Add<TypeHandler>());
void Reserve(int new_size)
int current_size_
Definition: repeated_field.h:342
#define GOOGLE_CHECK_NE(A, B)
Definition: common.h:717
template<typename TypeHandler >
TypeHandler::Type * google::protobuf::internal::RepeatedPtrFieldBase::Mutable |
( |
int |
index | ) |
|
|
inlineprotected |
896 return cast<TypeHandler>(
elements_[index]);
void ** elements_
Definition: repeated_field.h:341
#define GOOGLE_DCHECK_GE
Definition: common.h:758
#define GOOGLE_DCHECK_LT
Definition: common.h:755
int size() const
Definition: repeated_field.h:878
template<typename TypeHandler >
TypeHandler::Type ** google::protobuf::internal::RepeatedPtrFieldBase::mutable_data |
( |
| ) |
|
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
Type
Type of JSON value.
Definition: rapidjson.h:642
void *const * google::protobuf::internal::RepeatedPtrFieldBase::raw_data |
( |
| ) |
const |
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
void ** google::protobuf::internal::RepeatedPtrFieldBase::raw_mutable_data |
( |
| ) |
const |
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
template<typename TypeHandler >
TypeHandler::Type * google::protobuf::internal::RepeatedPtrFieldBase::ReleaseCleared |
( |
| ) |
|
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
#define GOOGLE_DCHECK_GT
Definition: common.h:757
template<typename TypeHandler >
TypeHandler::Type * google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLast |
( |
| ) |
|
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
int allocated_size_
Definition: repeated_field.h:343
#define GOOGLE_DCHECK_GT
Definition: common.h:757
Type
Type of JSON value.
Definition: rapidjson.h:642
template<typename TypeHandler >
void google::protobuf::internal::RepeatedPtrFieldBase::RemoveLast |
( |
| ) |
|
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
int current_size_
Definition: repeated_field.h:342
#define GOOGLE_DCHECK_GT
Definition: common.h:757
void google::protobuf::internal::RepeatedPtrFieldBase::Reserve |
( |
int |
new_size | ) |
|
|
protected |
int google::protobuf::internal::RepeatedPtrFieldBase::size |
( |
| ) |
const |
|
inlineprotected |
int current_size_
Definition: repeated_field.h:342
template<typename TypeHandler >
int google::protobuf::internal::RepeatedPtrFieldBase::SpaceUsedExcludingSelf |
( |
| ) |
const |
|
inlineprotected |
975 int allocated_bytes =
978 allocated_bytes += TypeHandler::SpaceUsed(*cast<TypeHandler>(
elements_[i]));
980 return allocated_bytes;
int total_size_
Definition: repeated_field.h:344
arena_t NULL
Definition: jemalloc_internal.h:624
void ** elements_
Definition: repeated_field.h:341
int allocated_size_
Definition: repeated_field.h:343
void google::protobuf::internal::RepeatedPtrFieldBase::SwapElements |
( |
int |
index1, |
|
|
int |
index2 |
|
) |
| |
|
inlineprotected |
void ** elements_
Definition: repeated_field.h:341
int google::protobuf::internal::RepeatedPtrFieldBase::allocated_size_ |
|
private |
int google::protobuf::internal::RepeatedPtrFieldBase::current_size_ |
|
private |
void** google::protobuf::internal::RepeatedPtrFieldBase::elements_ |
|
private |
const int google::protobuf::internal::RepeatedPtrFieldBase::kInitialSize = 0 |
|
staticprivate |
int google::protobuf::internal::RepeatedPtrFieldBase::total_size_ |
|
private |
The documentation for this class was generated from the following file: