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

#include <extension_set.h>

Classes

struct  Extension
 
class  LazyMessageExtension
 

Public Member Functions

 ExtensionSet ()
 
 ~ExtensionSet ()
 
void AppendToList (const Descriptor *containing_type, const DescriptorPool *pool, vector< const FieldDescriptor * > *output) const
 
bool Has (int number) const
 
int ExtensionSize (int number) const
 
int NumExtensions () const
 
FieldType ExtensionType (int number) const
 
void ClearExtension (int number)
 
int32 GetInt32 (int number, int32 default_value) const
 
int64 GetInt64 (int number, int64 default_value) const
 
uint32 GetUInt32 (int number, uint32 default_value) const
 
uint64 GetUInt64 (int number, uint64 default_value) const
 
float GetFloat (int number, float default_value) const
 
double GetDouble (int number, double default_value) const
 
bool GetBool (int number, bool default_value) const
 
int GetEnum (int number, int default_value) const
 
const string & GetString (int number, const string &default_value) const
 
const MessageLiteGetMessage (int number, const MessageLite &default_value) const
 
const MessageLiteGetMessage (int number, const Descriptor *message_type, MessageFactory *factory) const
 
void SetInt32 (int number, FieldType type, int32 value, desc)
 
void SetInt64 (int number, FieldType type, int64 value, desc)
 
void SetUInt32 (int number, FieldType type, uint32 value, desc)
 
void SetUInt64 (int number, FieldType type, uint64 value, desc)
 
void SetFloat (int number, FieldType type, float value, desc)
 
void SetDouble (int number, FieldType type, double value, desc)
 
void SetBool (int number, FieldType type, bool value, desc)
 
void SetEnum (int number, FieldType type, int value, desc)
 
void SetString (int number, FieldType type, const string &value, desc)
 
string * MutableString (int number, FieldType type, desc)
 
MessageLiteMutableMessage (int number, FieldType type, const MessageLite &prototype, desc)
 
MessageLiteMutableMessage (const FieldDescriptor *decsriptor, MessageFactory *factory)
 
void SetAllocatedMessage (int number, FieldType type, const FieldDescriptor *descriptor, MessageLite *message)
 
MessageLiteReleaseMessage (int number, const MessageLite &prototype)
 
MessageLiteReleaseMessage (const FieldDescriptor *descriptor, MessageFactory *factory)
 
const void * GetRawRepeatedField (int number, const void *default_value) const
 
void * MutableRawRepeatedField (int number, FieldType field_type, bool packed, const FieldDescriptor *desc)
 
void * MutableRawRepeatedField (int number)
 
int32 GetRepeatedInt32 (int number, int index) const
 
int64 GetRepeatedInt64 (int number, int index) const
 
uint32 GetRepeatedUInt32 (int number, int index) const
 
uint64 GetRepeatedUInt64 (int number, int index) const
 
float GetRepeatedFloat (int number, int index) const
 
double GetRepeatedDouble (int number, int index) const
 
bool GetRepeatedBool (int number, int index) const
 
int GetRepeatedEnum (int number, int index) const
 
const string & GetRepeatedString (int number, int index) const
 
const MessageLiteGetRepeatedMessage (int number, int index) const
 
void SetRepeatedInt32 (int number, int index, int32 value)
 
void SetRepeatedInt64 (int number, int index, int64 value)
 
void SetRepeatedUInt32 (int number, int index, uint32 value)
 
void SetRepeatedUInt64 (int number, int index, uint64 value)
 
void SetRepeatedFloat (int number, int index, float value)
 
void SetRepeatedDouble (int number, int index, double value)
 
void SetRepeatedBool (int number, int index, bool value)
 
void SetRepeatedEnum (int number, int index, int value)
 
void SetRepeatedString (int number, int index, const string &value)
 
string * MutableRepeatedString (int number, int index)
 
MessageLiteMutableRepeatedMessage (int number, int index)
 
void AddInt32 (int number, FieldType type, bool packed, int32 value, desc)
 
void AddInt64 (int number, FieldType type, bool packed, int64 value, desc)
 
void AddUInt32 (int number, FieldType type, bool packed, uint32 value, desc)
 
void AddUInt64 (int number, FieldType type, bool packed, uint64 value, desc)
 
void AddFloat (int number, FieldType type, bool packed, float value, desc)
 
void AddDouble (int number, FieldType type, bool packed, double value, desc)
 
void AddBool (int number, FieldType type, bool packed, bool value, desc)
 
void AddEnum (int number, FieldType type, bool packed, int value, desc)
 
void AddString (int number, FieldType type, const string &value, desc)
 
string * AddString (int number, FieldType type, desc)
 
MessageLiteAddMessage (int number, FieldType type, const MessageLite &prototype, desc)
 
MessageLiteAddMessage (const FieldDescriptor *descriptor, MessageFactory *factory)
 
void RemoveLast (int number)
 
MessageLiteReleaseLast (int number)
 
void SwapElements (int number, int index1, int index2)
 
void Clear ()
 
void MergeFrom (const ExtensionSet &other)
 
void Swap (ExtensionSet *other)
 
void SwapExtension (ExtensionSet *other, int number)
 
bool IsInitialized () const
 
bool ParseField (uint32 tag, io::CodedInputStream *input, ExtensionFinder *extension_finder, FieldSkipper *field_skipper)
 
bool ParseField (uint32 tag, io::CodedInputStream *input, const MessageLite *containing_type)
 
bool ParseField (uint32 tag, io::CodedInputStream *input, const Message *containing_type, UnknownFieldSet *unknown_fields)
 
bool ParseField (uint32 tag, io::CodedInputStream *input, const MessageLite *containing_type, io::CodedOutputStream *unknown_fields)
 
bool ParseMessageSet (io::CodedInputStream *input, ExtensionFinder *extension_finder, MessageSetFieldSkipper *field_skipper)
 
bool ParseMessageSet (io::CodedInputStream *input, const MessageLite *containing_type)
 
bool ParseMessageSet (io::CodedInputStream *input, const Message *containing_type, UnknownFieldSet *unknown_fields)
 
void SerializeWithCachedSizes (int start_field_number, int end_field_number, io::CodedOutputStream *output) const
 
uint8SerializeWithCachedSizesToArray (int start_field_number, int end_field_number, uint8 *target) const
 
void SerializeMessageSetWithCachedSizes (io::CodedOutputStream *output) const
 
uint8SerializeMessageSetWithCachedSizesToArray (uint8 *target) const
 
int ByteSize () const
 
int MessageSetByteSize () const
 
int SpaceUsedExcludingSelf () const
 

Static Public Member Functions

static void RegisterExtension (const MessageLite *containing_type, int number, FieldType type, bool is_repeated, bool is_packed)
 
static void RegisterEnumExtension (const MessageLite *containing_type, int number, FieldType type, bool is_repeated, bool is_packed, EnumValidityFunc *is_valid)
 
static void RegisterMessageExtension (const MessageLite *containing_type, int number, FieldType type, bool is_repeated, bool is_packed, const MessageLite *prototype)
 

Private Member Functions

bool FindExtensionInfoFromTag (uint32 tag, ExtensionFinder *extension_finder, int *field_number, ExtensionInfo *extension, bool *was_packed_on_wire)
 
bool FindExtensionInfoFromFieldNumber (int wire_type, int field_number, ExtensionFinder *extension_finder, ExtensionInfo *extension, bool *was_packed_on_wire)
 
bool ParseFieldWithExtensionInfo (int field_number, bool was_packed_on_wire, const ExtensionInfo &extension, io::CodedInputStream *input, FieldSkipper *field_skipper)
 
bool ParseFieldMaybeLazily (int wire_type, int field_number, io::CodedInputStream *input, ExtensionFinder *extension_finder, MessageSetFieldSkipper *field_skipper)
 
bool MaybeNewExtension (int number, const FieldDescriptor *descriptor, Extension **result)
 
bool ParseMessageSetItem (io::CodedInputStream *input, ExtensionFinder *extension_finder, MessageSetFieldSkipper *field_skipper)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ExtensionSet)
 

Static Private Member Functions

static int RepeatedMessage_SpaceUsedExcludingSelf (RepeatedPtrFieldBase *field)
 

Private Attributes

std::map< int, Extensionextensions_
 

Constructor & Destructor Documentation

google::protobuf::internal::ExtensionSet::ExtensionSet ( )
google::protobuf::internal::ExtensionSet::~ExtensionSet ( )

Member Function Documentation

void google::protobuf::internal::ExtensionSet::AddBool ( int  number,
FieldType  type,
bool  packed,
bool  value,
desc   
)
void google::protobuf::internal::ExtensionSet::AddDouble ( int  number,
FieldType  type,
bool  packed,
double  value,
desc   
)
void google::protobuf::internal::ExtensionSet::AddEnum ( int  number,
FieldType  type,
bool  packed,
int  value,
desc   
)

+ Here is the caller graph for this function:

void google::protobuf::internal::ExtensionSet::AddFloat ( int  number,
FieldType  type,
bool  packed,
float  value,
desc   
)
void google::protobuf::internal::ExtensionSet::AddInt32 ( int  number,
FieldType  type,
bool  packed,
int32  value,
desc   
)
void google::protobuf::internal::ExtensionSet::AddInt64 ( int  number,
FieldType  type,
bool  packed,
int64  value,
desc   
)
MessageLite* google::protobuf::internal::ExtensionSet::AddMessage ( int  number,
FieldType  type,
const MessageLite prototype,
desc   
)

+ Here is the caller graph for this function:

MessageLite* google::protobuf::internal::ExtensionSet::AddMessage ( const FieldDescriptor descriptor,
MessageFactory factory 
)
void google::protobuf::internal::ExtensionSet::AddString ( int  number,
FieldType  type,
const string &  value,
desc   
)

+ Here is the caller graph for this function:

string* google::protobuf::internal::ExtensionSet::AddString ( int  number,
FieldType  type,
desc   
)
void google::protobuf::internal::ExtensionSet::AddUInt32 ( int  number,
FieldType  type,
bool  packed,
uint32  value,
desc   
)
void google::protobuf::internal::ExtensionSet::AddUInt64 ( int  number,
FieldType  type,
bool  packed,
uint64  value,
desc   
)
void google::protobuf::internal::ExtensionSet::AppendToList ( const Descriptor containing_type,
const DescriptorPool pool,
vector< const FieldDescriptor * > *  output 
) const
int google::protobuf::internal::ExtensionSet::ByteSize ( ) const
void google::protobuf::internal::ExtensionSet::Clear ( )
void google::protobuf::internal::ExtensionSet::ClearExtension ( int  number)
int google::protobuf::internal::ExtensionSet::ExtensionSize ( int  number) const
FieldType google::protobuf::internal::ExtensionSet::ExtensionType ( int  number) const
bool google::protobuf::internal::ExtensionSet::FindExtensionInfoFromFieldNumber ( int  wire_type,
int  field_number,
ExtensionFinder extension_finder,
ExtensionInfo extension,
bool was_packed_on_wire 
)
private
bool google::protobuf::internal::ExtensionSet::FindExtensionInfoFromTag ( uint32  tag,
ExtensionFinder extension_finder,
int *  field_number,
ExtensionInfo extension,
bool was_packed_on_wire 
)
private
bool google::protobuf::internal::ExtensionSet::GetBool ( int  number,
bool  default_value 
) const
double google::protobuf::internal::ExtensionSet::GetDouble ( int  number,
double  default_value 
) const
int google::protobuf::internal::ExtensionSet::GetEnum ( int  number,
int  default_value 
) const

+ Here is the caller graph for this function:

float google::protobuf::internal::ExtensionSet::GetFloat ( int  number,
float  default_value 
) const
int32 google::protobuf::internal::ExtensionSet::GetInt32 ( int  number,
int32  default_value 
) const
int64 google::protobuf::internal::ExtensionSet::GetInt64 ( int  number,
int64  default_value 
) const
const MessageLite& google::protobuf::internal::ExtensionSet::GetMessage ( int  number,
const MessageLite default_value 
) const

+ Here is the caller graph for this function:

const MessageLite& google::protobuf::internal::ExtensionSet::GetMessage ( int  number,
const Descriptor message_type,
MessageFactory factory 
) const
const void* google::protobuf::internal::ExtensionSet::GetRawRepeatedField ( int  number,
const void *  default_value 
) const

+ Here is the caller graph for this function:

bool google::protobuf::internal::ExtensionSet::GetRepeatedBool ( int  number,
int  index 
) const
double google::protobuf::internal::ExtensionSet::GetRepeatedDouble ( int  number,
int  index 
) const
int google::protobuf::internal::ExtensionSet::GetRepeatedEnum ( int  number,
int  index 
) const

+ Here is the caller graph for this function:

float google::protobuf::internal::ExtensionSet::GetRepeatedFloat ( int  number,
int  index 
) const
int32 google::protobuf::internal::ExtensionSet::GetRepeatedInt32 ( int  number,
int  index 
) const
int64 google::protobuf::internal::ExtensionSet::GetRepeatedInt64 ( int  number,
int  index 
) const
const MessageLite& google::protobuf::internal::ExtensionSet::GetRepeatedMessage ( int  number,
int  index 
) const

+ Here is the caller graph for this function:

const string& google::protobuf::internal::ExtensionSet::GetRepeatedString ( int  number,
int  index 
) const

+ Here is the caller graph for this function:

uint32 google::protobuf::internal::ExtensionSet::GetRepeatedUInt32 ( int  number,
int  index 
) const
uint64 google::protobuf::internal::ExtensionSet::GetRepeatedUInt64 ( int  number,
int  index 
) const
const string& google::protobuf::internal::ExtensionSet::GetString ( int  number,
const string &  default_value 
) const

+ Here is the caller graph for this function:

uint32 google::protobuf::internal::ExtensionSet::GetUInt32 ( int  number,
uint32  default_value 
) const
uint64 google::protobuf::internal::ExtensionSet::GetUInt64 ( int  number,
uint64  default_value 
) const
google::protobuf::internal::ExtensionSet::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ExtensionSet  )
private
bool google::protobuf::internal::ExtensionSet::Has ( int  number) const
bool google::protobuf::internal::ExtensionSet::IsInitialized ( ) const
bool google::protobuf::internal::ExtensionSet::MaybeNewExtension ( int  number,
const FieldDescriptor descriptor,
Extension **  result 
)
private
void google::protobuf::internal::ExtensionSet::MergeFrom ( const ExtensionSet other)
int google::protobuf::internal::ExtensionSet::MessageSetByteSize ( ) const
MessageLite* google::protobuf::internal::ExtensionSet::MutableMessage ( int  number,
FieldType  type,
const MessageLite prototype,
desc   
)

+ Here is the caller graph for this function:

MessageLite* google::protobuf::internal::ExtensionSet::MutableMessage ( const FieldDescriptor decsriptor,
MessageFactory factory 
)
void* google::protobuf::internal::ExtensionSet::MutableRawRepeatedField ( int  number,
FieldType  field_type,
bool  packed,
const FieldDescriptor desc 
)

+ Here is the caller graph for this function:

void* google::protobuf::internal::ExtensionSet::MutableRawRepeatedField ( int  number)
MessageLite* google::protobuf::internal::ExtensionSet::MutableRepeatedMessage ( int  number,
int  index 
)

+ Here is the caller graph for this function:

string* google::protobuf::internal::ExtensionSet::MutableRepeatedString ( int  number,
int  index 
)

+ Here is the caller graph for this function:

string* google::protobuf::internal::ExtensionSet::MutableString ( int  number,
FieldType  type,
desc   
)

+ Here is the caller graph for this function:

int google::protobuf::internal::ExtensionSet::NumExtensions ( ) const
bool google::protobuf::internal::ExtensionSet::ParseField ( uint32  tag,
io::CodedInputStream input,
ExtensionFinder extension_finder,
FieldSkipper field_skipper 
)
bool google::protobuf::internal::ExtensionSet::ParseField ( uint32  tag,
io::CodedInputStream input,
const MessageLite containing_type 
)
bool google::protobuf::internal::ExtensionSet::ParseField ( uint32  tag,
io::CodedInputStream input,
const Message containing_type,
UnknownFieldSet unknown_fields 
)
bool google::protobuf::internal::ExtensionSet::ParseField ( uint32  tag,
io::CodedInputStream input,
const MessageLite containing_type,
io::CodedOutputStream unknown_fields 
)
bool google::protobuf::internal::ExtensionSet::ParseFieldMaybeLazily ( int  wire_type,
int  field_number,
io::CodedInputStream input,
ExtensionFinder extension_finder,
MessageSetFieldSkipper *  field_skipper 
)
private
bool google::protobuf::internal::ExtensionSet::ParseFieldWithExtensionInfo ( int  field_number,
bool  was_packed_on_wire,
const ExtensionInfo extension,
io::CodedInputStream input,
FieldSkipper field_skipper 
)
private
bool google::protobuf::internal::ExtensionSet::ParseMessageSet ( io::CodedInputStream input,
ExtensionFinder extension_finder,
MessageSetFieldSkipper *  field_skipper 
)
bool google::protobuf::internal::ExtensionSet::ParseMessageSet ( io::CodedInputStream input,
const MessageLite containing_type 
)
bool google::protobuf::internal::ExtensionSet::ParseMessageSet ( io::CodedInputStream input,
const Message containing_type,
UnknownFieldSet unknown_fields 
)
bool google::protobuf::internal::ExtensionSet::ParseMessageSetItem ( io::CodedInputStream input,
ExtensionFinder extension_finder,
MessageSetFieldSkipper *  field_skipper 
)
private
static void google::protobuf::internal::ExtensionSet::RegisterEnumExtension ( const MessageLite containing_type,
int  number,
FieldType  type,
bool  is_repeated,
bool  is_packed,
EnumValidityFunc is_valid 
)
static
static void google::protobuf::internal::ExtensionSet::RegisterExtension ( const MessageLite containing_type,
int  number,
FieldType  type,
bool  is_repeated,
bool  is_packed 
)
static
static void google::protobuf::internal::ExtensionSet::RegisterMessageExtension ( const MessageLite containing_type,
int  number,
FieldType  type,
bool  is_repeated,
bool  is_packed,
const MessageLite prototype 
)
static
MessageLite* google::protobuf::internal::ExtensionSet::ReleaseLast ( int  number)
MessageLite* google::protobuf::internal::ExtensionSet::ReleaseMessage ( int  number,
const MessageLite prototype 
)

+ Here is the caller graph for this function:

MessageLite* google::protobuf::internal::ExtensionSet::ReleaseMessage ( const FieldDescriptor descriptor,
MessageFactory factory 
)
void google::protobuf::internal::ExtensionSet::RemoveLast ( int  number)
static int google::protobuf::internal::ExtensionSet::RepeatedMessage_SpaceUsedExcludingSelf ( RepeatedPtrFieldBase field)
inlinestaticprivate
void google::protobuf::internal::ExtensionSet::SerializeMessageSetWithCachedSizes ( io::CodedOutputStream output) const
uint8* google::protobuf::internal::ExtensionSet::SerializeMessageSetWithCachedSizesToArray ( uint8 target) const
void google::protobuf::internal::ExtensionSet::SerializeWithCachedSizes ( int  start_field_number,
int  end_field_number,
io::CodedOutputStream output 
) const
uint8* google::protobuf::internal::ExtensionSet::SerializeWithCachedSizesToArray ( int  start_field_number,
int  end_field_number,
uint8 target 
) const
void google::protobuf::internal::ExtensionSet::SetAllocatedMessage ( int  number,
FieldType  type,
const FieldDescriptor descriptor,
MessageLite message 
)

+ Here is the caller graph for this function:

void google::protobuf::internal::ExtensionSet::SetBool ( int  number,
FieldType  type,
bool  value,
desc   
)
void google::protobuf::internal::ExtensionSet::SetDouble ( int  number,
FieldType  type,
double  value,
desc   
)
void google::protobuf::internal::ExtensionSet::SetEnum ( int  number,
FieldType  type,
int  value,
desc   
)

+ Here is the caller graph for this function:

void google::protobuf::internal::ExtensionSet::SetFloat ( int  number,
FieldType  type,
float  value,
desc   
)
void google::protobuf::internal::ExtensionSet::SetInt32 ( int  number,
FieldType  type,
int32  value,
desc   
)
void google::protobuf::internal::ExtensionSet::SetInt64 ( int  number,
FieldType  type,
int64  value,
desc   
)
void google::protobuf::internal::ExtensionSet::SetRepeatedBool ( int  number,
int  index,
bool  value 
)
void google::protobuf::internal::ExtensionSet::SetRepeatedDouble ( int  number,
int  index,
double  value 
)
void google::protobuf::internal::ExtensionSet::SetRepeatedEnum ( int  number,
int  index,
int  value 
)

+ Here is the caller graph for this function:

void google::protobuf::internal::ExtensionSet::SetRepeatedFloat ( int  number,
int  index,
float  value 
)
void google::protobuf::internal::ExtensionSet::SetRepeatedInt32 ( int  number,
int  index,
int32  value 
)
void google::protobuf::internal::ExtensionSet::SetRepeatedInt64 ( int  number,
int  index,
int64  value 
)
void google::protobuf::internal::ExtensionSet::SetRepeatedString ( int  number,
int  index,
const string &  value 
)
inline
601  {
602  MutableRepeatedString(number, index)->assign(value);
603 }
string * MutableRepeatedString(int number, int index)
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void google::protobuf::internal::ExtensionSet::SetRepeatedUInt32 ( int  number,
int  index,
uint32  value 
)
void google::protobuf::internal::ExtensionSet::SetRepeatedUInt64 ( int  number,
int  index,
uint64  value 
)
void google::protobuf::internal::ExtensionSet::SetString ( int  number,
FieldType  type,
const string &  value,
desc   
)
inline
597  {
598  MutableString(number, type, descriptor)->assign(value);
599 }
string * MutableString(int number, FieldType type, desc)
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void google::protobuf::internal::ExtensionSet::SetUInt32 ( int  number,
FieldType  type,
uint32  value,
desc   
)
void google::protobuf::internal::ExtensionSet::SetUInt64 ( int  number,
FieldType  type,
uint64  value,
desc   
)
int google::protobuf::internal::ExtensionSet::SpaceUsedExcludingSelf ( ) const
void google::protobuf::internal::ExtensionSet::Swap ( ExtensionSet other)
void google::protobuf::internal::ExtensionSet::SwapElements ( int  number,
int  index1,
int  index2 
)
void google::protobuf::internal::ExtensionSet::SwapExtension ( ExtensionSet other,
int  number 
)

Member Data Documentation

std::map<int, Extension> google::protobuf::internal::ExtensionSet::extensions_
private

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