TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::UnknownFieldSet Class Reference

#include <unknown_field_set.h>

Public Member Functions

 UnknownFieldSet ()
 
 ~UnknownFieldSet ()
 
void Clear ()
 
void ClearAndFreeMemory ()
 
bool empty () const
 
void MergeFrom (const UnknownFieldSet &other)
 
void Swap (UnknownFieldSet *x)
 
int SpaceUsedExcludingSelf () const
 
int SpaceUsed () const
 
int field_count () const
 
const UnknownFieldfield (int index) const
 
UnknownFieldmutable_field (int index)
 
void AddVarint (int number, uint64 value)
 
void AddFixed32 (int number, uint32 value)
 
void AddFixed64 (int number, uint64 value)
 
void AddLengthDelimited (int number, const string &value)
 
string * AddLengthDelimited (int number)
 
UnknownFieldSetAddGroup (int number)
 
void AddField (const UnknownField &field)
 
void DeleteSubrange (int start, int num)
 
void DeleteByNumber (int number)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParseFromArray (const void *data, int size)
 
bool ParseFromString (const string &data)
 

Private Member Functions

void ClearFallback ()
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (UnknownFieldSet)
 

Private Attributes

vector< UnknownField > * fields_
 

Constructor & Destructor Documentation

google::protobuf::UnknownFieldSet::UnknownFieldSet ( )
google::protobuf::UnknownFieldSet::~UnknownFieldSet ( )

Member Function Documentation

void google::protobuf::UnknownFieldSet::AddField ( const UnknownField field)
void google::protobuf::UnknownFieldSet::AddFixed32 ( int  number,
uint32  value 
)
void google::protobuf::UnknownFieldSet::AddFixed64 ( int  number,
uint64  value 
)
UnknownFieldSet* google::protobuf::UnknownFieldSet::AddGroup ( int  number)
void google::protobuf::UnknownFieldSet::AddLengthDelimited ( int  number,
const string &  value 
)
inline
249  {
250  AddLengthDelimited(number)->assign(value);
251 }
void AddLengthDelimited(int number, const string &value)
Definition: unknown_field_set.h:248
const FieldDescriptor value
Definition: descriptor.h:1522
string* google::protobuf::UnknownFieldSet::AddLengthDelimited ( int  number)
void google::protobuf::UnknownFieldSet::AddVarint ( int  number,
uint64  value 
)
void google::protobuf::UnknownFieldSet::Clear ( )
inline
224  {
225  if (fields_ != NULL) {
226  ClearFallback();
227  }
228 }
arena_t NULL
Definition: jemalloc_internal.h:624
vector< UnknownField > * fields_
Definition: unknown_field_set.h:148

+ Here is the call graph for this function:

void google::protobuf::UnknownFieldSet::ClearAndFreeMemory ( )
void google::protobuf::UnknownFieldSet::ClearFallback ( )
private

+ Here is the caller graph for this function:

void google::protobuf::UnknownFieldSet::DeleteByNumber ( int  number)
void google::protobuf::UnknownFieldSet::DeleteSubrange ( int  start,
int  num 
)
bool google::protobuf::UnknownFieldSet::empty ( ) const
inline
230  {
231  return fields_ == NULL || fields_->empty();
232 }
arena_t NULL
Definition: jemalloc_internal.h:624
vector< UnknownField > * fields_
Definition: unknown_field_set.h:148
const UnknownField & google::protobuf::UnknownFieldSet::field ( int  index) const
inline
241  {
242  return (*fields_)[index];
243 }
vector< UnknownField > * fields_
Definition: unknown_field_set.h:148
int google::protobuf::UnknownFieldSet::field_count ( ) const
inline
238  {
239  return (fields_ == NULL) ? 0 : static_cast<int>(fields_->size());
240 }
arena_t NULL
Definition: jemalloc_internal.h:624
vector< UnknownField > * fields_
Definition: unknown_field_set.h:148
google::protobuf::UnknownFieldSet::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( UnknownFieldSet  )
private
void google::protobuf::UnknownFieldSet::MergeFrom ( const UnknownFieldSet other)
bool google::protobuf::UnknownFieldSet::MergeFromCodedStream ( io::CodedInputStream input)
UnknownField * google::protobuf::UnknownFieldSet::mutable_field ( int  index)
inline
244  {
245  return &(*fields_)[index];
246 }
bool google::protobuf::UnknownFieldSet::ParseFromArray ( const void *  data,
int  size 
)
bool google::protobuf::UnknownFieldSet::ParseFromCodedStream ( io::CodedInputStream input)
bool google::protobuf::UnknownFieldSet::ParseFromString ( const string &  data)
inline
140  {
141  return ParseFromArray(data.data(), static_cast<int>(data.size()));
142  }
bool ParseFromArray(const void *data, int size)
bool google::protobuf::UnknownFieldSet::ParseFromZeroCopyStream ( io::ZeroCopyInputStream input)
int google::protobuf::UnknownFieldSet::SpaceUsed ( ) const
int google::protobuf::UnknownFieldSet::SpaceUsedExcludingSelf ( ) const
void google::protobuf::UnknownFieldSet::Swap ( UnknownFieldSet x)
inline
234  {
235  std::swap(fields_, x->fields_);
236 }
vector< UnknownField > * fields_
Definition: unknown_field_set.h:148
G3D::int16 x
Definition: Vector2int16.h:37

Member Data Documentation

vector<UnknownField>* google::protobuf::UnknownFieldSet::fields_
private

The documentation for this class was generated from the following file: