BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
google::protobuf::internal::WireFormatLite Class Reference

#include <wire_format_lite.h>

List of all members.

Public Types

enum  WireType {
  WIRETYPE_VARINT = 0, WIRETYPE_FIXED64 = 1, WIRETYPE_LENGTH_DELIMITED = 2, WIRETYPE_START_GROUP = 3,
  WIRETYPE_END_GROUP = 4, WIRETYPE_FIXED32 = 5
}
enum  FieldType {
  TYPE_DOUBLE = 1, TYPE_FLOAT = 2, TYPE_INT64 = 3, TYPE_UINT64 = 4,
  TYPE_INT32 = 5, TYPE_FIXED64 = 6, TYPE_FIXED32 = 7, TYPE_BOOL = 8,
  TYPE_STRING = 9, TYPE_GROUP = 10, TYPE_MESSAGE = 11, TYPE_BYTES = 12,
  TYPE_UINT32 = 13, TYPE_ENUM = 14, TYPE_SFIXED32 = 15, TYPE_SFIXED64 = 16,
  TYPE_SINT32 = 17, TYPE_SINT64 = 18, MAX_FIELD_TYPE = 18
}
enum  CppType {
  CPPTYPE_INT32 = 1, CPPTYPE_INT64 = 2, CPPTYPE_UINT32 = 3, CPPTYPE_UINT64 = 4,
  CPPTYPE_DOUBLE = 5, CPPTYPE_FLOAT = 6, CPPTYPE_BOOL = 7, CPPTYPE_ENUM = 8,
  CPPTYPE_STRING = 9, CPPTYPE_MESSAGE = 10, MAX_CPPTYPE = 10
}

Public Member Functions

template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadRepeatedPrimitive (int tag_size, uint32 tag, io::CodedInputStream *input, RepeatedField< CType > *values)
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadRepeatedPrimitiveNoInline (int tag_size, uint32 tag, io::CodedInputStream *input, RepeatedField< CType > *value)
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadPackedPrimitive (io::CodedInputStream *input, RepeatedField< CType > *values)
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool ReadPackedPrimitiveNoInline (io::CodedInputStream *input, RepeatedField< CType > *values)
template<typename MessageType >
bool ReadGroupNoVirtual (int field_number, io::CodedInputStream *input, MessageType *value)
template<typename MessageType >
bool ReadMessageNoVirtual (io::CodedInputStream *input, MessageType *value)
template<typename MessageType >
void WriteGroupNoVirtual (int field_number, const MessageType &value, io::CodedOutputStream *output)
template<typename MessageType >
void WriteMessageNoVirtual (int field_number, const MessageType &value, io::CodedOutputStream *output)
template<typename MessageType >
uint8WriteGroupNoVirtualToArray (int field_number, const MessageType &value, uint8 *target)
template<typename MessageType >
uint8WriteMessageNoVirtualToArray (int field_number, const MessageType &value, uint8 *target)

Static Public Member Functions

static CppType FieldTypeToCppType (FieldType type)
static WireFormatLite::WireType WireTypeForFieldType (WireFormatLite::FieldType type)
static uint32 MakeTag (int field_number, WireType type)
static WireType GetTagWireType (uint32 tag)
static int GetTagFieldNumber (uint32 tag)
static int TagSize (int field_number, WireFormatLite::FieldType type)
static bool SkipField (io::CodedInputStream *input, uint32 tag)
static bool SkipMessage (io::CodedInputStream *input)
static uint32 EncodeFloat (float value)
static float DecodeFloat (uint32 value)
static uint64 EncodeDouble (double value)
static double DecodeDouble (uint64 value)
static uint32 ZigZagEncode32 (int32 n)
static int32 ZigZagDecode32 (uint32 n)
static uint64 ZigZagEncode64 (int64 n)
static int64 ZigZagDecode64 (uint64 n)
template<typename CType , enum FieldType DeclaredType>
static bool ReadPrimitive (input, CType *value) INL
template<typename CType , enum FieldType DeclaredType>
static bool ReadRepeatedPrimitive (int tag_size, uint32 tag, input, RepeatedField< CType > *value) INL
template<typename CType , enum FieldType DeclaredType>
static bool ReadRepeatedPrimitiveNoInline (int tag_size, uint32 tag, input, RepeatedField< CType > *value)
template<typename CType , enum FieldType DeclaredType>
static const uint8ReadPrimitiveFromArray (const uint8 *buffer, CType *value) INL
template<typename CType , enum FieldType DeclaredType>
static bool ReadPackedPrimitive (input, RepeatedField< CType > *value) INL
template<typename CType , enum FieldType DeclaredType>
static bool ReadPackedPrimitiveNoInline (input, RepeatedField< CType > *value)
static bool ReadPackedEnumNoInline (input, bool(*is_valid)(int), RepeatedField< int > *value)
static bool ReadString (input, string *value)
static bool ReadBytes (input, string *value)
static bool ReadGroup (field_number, input, MessageLite *value)
static bool ReadMessage (input, MessageLite *value)
template<typename MessageType >
static bool ReadGroupNoVirtual (field_number, input, MessageType *value)
template<typename MessageType >
static bool ReadMessageNoVirtual (input, MessageType *value)
static void WriteTag (field_number, WireType type, output) INL
static void WriteInt32NoTag (int32 value, output) INL
static void WriteInt64NoTag (int64 value, output) INL
static void WriteUInt32NoTag (uint32 value, output) INL
static void WriteUInt64NoTag (uint64 value, output) INL
static void WriteSInt32NoTag (int32 value, output) INL
static void WriteSInt64NoTag (int64 value, output) INL
static void WriteFixed32NoTag (uint32 value, output) INL
static void WriteFixed64NoTag (uint64 value, output) INL
static void WriteSFixed32NoTag (int32 value, output) INL
static void WriteSFixed64NoTag (int64 value, output) INL
static void WriteFloatNoTag (float value, output) INL
static void WriteDoubleNoTag (double value, output) INL
static void WriteBoolNoTag (bool value, output) INL
static void WriteEnumNoTag (int value, output) INL
static void WriteInt32 (field_number, int32 value, output)
static void WriteInt64 (field_number, int64 value, output)
static void WriteUInt32 (field_number, uint32 value, output)
static void WriteUInt64 (field_number, uint64 value, output)
static void WriteSInt32 (field_number, int32 value, output)
static void WriteSInt64 (field_number, int64 value, output)
static void WriteFixed32 (field_number, uint32 value, output)
static void WriteFixed64 (field_number, uint64 value, output)
static void WriteSFixed32 (field_number, int32 value, output)
static void WriteSFixed64 (field_number, int64 value, output)
static void WriteFloat (field_number, float value, output)
static void WriteDouble (field_number, double value, output)
static void WriteBool (field_number, bool value, output)
static void WriteEnum (field_number, int value, output)
static void WriteString (field_number, const string &value, output)
static void WriteBytes (field_number, const string &value, output)
static void WriteGroup (field_number, const MessageLite &value, output)
static void WriteMessage (field_number, const MessageLite &value, output)
static void WriteGroupMaybeToArray (field_number, const MessageLite &value, output)
static void WriteMessageMaybeToArray (field_number, const MessageLite &value, output)
template<typename MessageType >
static void WriteGroupNoVirtual (field_number, const MessageType &value, output)
template<typename MessageType >
static void WriteMessageNoVirtual (field_number, const MessageType &value, output)
static uint8WriteTagToArray (field_number, WireType type, output) INL
static uint8WriteInt32NoTagToArray (int32 value, output) INL
static uint8WriteInt64NoTagToArray (int64 value, output) INL
static uint8WriteUInt32NoTagToArray (uint32 value, output) INL
static uint8WriteUInt64NoTagToArray (uint64 value, output) INL
static uint8WriteSInt32NoTagToArray (int32 value, output) INL
static uint8WriteSInt64NoTagToArray (int64 value, output) INL
static uint8WriteFixed32NoTagToArray (uint32 value, output) INL
static uint8WriteFixed64NoTagToArray (uint64 value, output) INL
static uint8WriteSFixed32NoTagToArray (int32 value, output) INL
static uint8WriteSFixed64NoTagToArray (int64 value, output) INL
static uint8WriteFloatNoTagToArray (float value, output) INL
static uint8WriteDoubleNoTagToArray (double value, output) INL
static uint8WriteBoolNoTagToArray (bool value, output) INL
static uint8WriteEnumNoTagToArray (int value, output) INL
static uint8WriteInt32ToArray (field_number, int32 value, output) INL
static uint8WriteInt64ToArray (field_number, int64 value, output) INL
static uint8WriteUInt32ToArray (field_number, uint32 value, output) INL
static uint8WriteUInt64ToArray (field_number, uint64 value, output) INL
static uint8WriteSInt32ToArray (field_number, int32 value, output) INL
static uint8WriteSInt64ToArray (field_number, int64 value, output) INL
static uint8WriteFixed32ToArray (field_number, uint32 value, output) INL
static uint8WriteFixed64ToArray (field_number, uint64 value, output) INL
static uint8WriteSFixed32ToArray (field_number, int32 value, output) INL
static uint8WriteSFixed64ToArray (field_number, int64 value, output) INL
static uint8WriteFloatToArray (field_number, float value, output) INL
static uint8WriteDoubleToArray (field_number, double value, output) INL
static uint8WriteBoolToArray (field_number, bool value, output) INL
static uint8WriteEnumToArray (field_number, int value, output) INL
static uint8WriteStringToArray (field_number, const string &value, output) INL
static uint8WriteBytesToArray (field_number, const string &value, output) INL
static uint8WriteGroupToArray (field_number, const MessageLite &value, output) INL
static uint8WriteMessageToArray (field_number, const MessageLite &value, output) INL
template<typename MessageType >
static uint8WriteGroupNoVirtualToArray (field_number, const MessageType &value, output) INL
template<typename MessageType >
static uint8WriteMessageNoVirtualToArray (field_number, const MessageType &value, output) INL
static int Int32Size (int32 value)
static int Int64Size (int64 value)
static int UInt32Size (uint32 value)
static int UInt64Size (uint64 value)
static int SInt32Size (int32 value)
static int SInt64Size (int64 value)
static int EnumSize (int value)
static int StringSize (const string &value)
static int BytesSize (const string &value)
static int GroupSize (const MessageLite &value)
static int MessageSize (const MessageLite &value)
template<typename MessageType >
static int GroupSizeNoVirtual (const MessageType &value)
template<typename MessageType >
static int MessageSizeNoVirtual (const MessageType &value)

Static Public Attributes

static const int kTagTypeBits = 3
static const uint32 kTagTypeMask = (1 << kTagTypeBits) - 1
static const int kMessageSetItemNumber = 1
static const int kMessageSetTypeIdNumber = 2
static const int kMessageSetMessageNumber = 3
static const int kMessageSetItemStartTag
static const int kMessageSetItemEndTag
static const int kMessageSetTypeIdTag
static const int kMessageSetMessageTag
static const int kMessageSetItemTagsSize
static const int kFixed32Size = 4
static const int kFixed64Size = 8
static const int kSFixed32Size = 4
static const int kSFixed64Size = 8
static const int kFloatSize = 4
static const int kDoubleSize = 8
static const int kBoolSize = 1

Member Enumeration Documentation

Enumerator:
CPPTYPE_INT32 
CPPTYPE_INT64 
CPPTYPE_UINT32 
CPPTYPE_UINT64 
CPPTYPE_DOUBLE 
CPPTYPE_FLOAT 
CPPTYPE_BOOL 
CPPTYPE_ENUM 
CPPTYPE_STRING 
CPPTYPE_MESSAGE 
MAX_CPPTYPE 
Enumerator:
TYPE_DOUBLE 
TYPE_FLOAT 
TYPE_INT64 
TYPE_UINT64 
TYPE_INT32 
TYPE_FIXED64 
TYPE_FIXED32 
TYPE_BOOL 
TYPE_STRING 
TYPE_GROUP 
TYPE_MESSAGE 
TYPE_BYTES 
TYPE_UINT32 
TYPE_ENUM 
TYPE_SFIXED32 
TYPE_SFIXED64 
TYPE_SINT32 
TYPE_SINT64 
MAX_FIELD_TYPE 
Enumerator:
WIRETYPE_VARINT 
WIRETYPE_FIXED64 
WIRETYPE_LENGTH_DELIMITED 
WIRETYPE_START_GROUP 
WIRETYPE_END_GROUP 
WIRETYPE_FIXED32 

Member Function Documentation

int google::protobuf::internal::WireFormatLite::BytesSize ( const string &  value) [inline, static]

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int google::protobuf::internal::WireFormatLite::EnumSize ( int  value) [inline, static]

Here is the call graph for this function:

int google::protobuf::internal::WireFormatLite::GroupSize ( const MessageLite value) [inline, static]

Here is the call graph for this function:

template<typename MessageType >
int google::protobuf::internal::WireFormatLite::GroupSizeNoVirtual ( const MessageType &  value) [inline, static]

Here is the call graph for this function:

Here is the call graph for this function:

uint32 google::protobuf::internal::WireFormatLite::MakeTag ( int  field_number,
WireType  type 
) [inline, static]

Here is the caller graph for this function:

Here is the call graph for this function:

template<typename MessageType >
int google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual ( const MessageType &  value) [inline, static]

Here is the call graph for this function:

static bool google::protobuf::internal::WireFormatLite::ReadBytes ( input  ,
string *  value 
) [static]

Here is the call graph for this function:

template<typename MessageType >
static bool google::protobuf::internal::WireFormatLite::ReadGroupNoVirtual ( field_number  ,
input  ,
MessageType *  value 
) [inline, static]
template<typename MessageType >
bool google::protobuf::internal::WireFormatLite::ReadGroupNoVirtual ( int  field_number,
io::CodedInputStream input,
MessageType *  value 
) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

template<typename MessageType >
static bool google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( input  ,
MessageType *  value 
) [inline, static]
template<typename MessageType >
bool google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual ( io::CodedInputStream input,
MessageType *  value 
) [inline]

Here is the call graph for this function:

static bool google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline ( input  ,
bool(*)(int)  is_valid,
RepeatedField< int > *  value 
) [static]
template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitive ( input  ,
RepeatedField< CType > *  value 
) [inline, static]
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitive ( io::CodedInputStream input,
RepeatedField< CType > *  values 
) [inline]

Here is the call graph for this function:

template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline ( input  ,
RepeatedField< CType > *  value 
) [static]
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline ( io::CodedInputStream input,
RepeatedField< CType > *  values 
)
template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadPrimitive ( input  ,
CType *  value 
) [inline, static]
template<typename CType , enum FieldType DeclaredType>
static const uint8* google::protobuf::internal::WireFormatLite::ReadPrimitiveFromArray ( const uint8 buffer,
CType *  value 
) [inline, static]
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive ( int  tag_size,
uint32  tag,
io::CodedInputStream input,
RepeatedField< CType > *  values 
) [inline]

Here is the call graph for this function:

template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive ( int  tag_size,
uint32  tag,
input  ,
RepeatedField< CType > *  value 
) [inline, static]
template<typename CType , enum FieldType DeclaredType>
static bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline ( int  tag_size,
uint32  tag,
input  ,
RepeatedField< CType > *  value 
) [static]
template<typename CType , enum WireFormatLite::FieldType DeclaredType>
bool google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline ( int  tag_size,
uint32  tag,
io::CodedInputStream input,
RepeatedField< CType > *  value 
)
static bool google::protobuf::internal::WireFormatLite::ReadString ( input  ,
string *  value 
) [static]

Here is the call graph for this function:

Here is the call graph for this function:

int google::protobuf::internal::WireFormatLite::StringSize ( const string &  value) [inline, static]

Here is the call graph for this function:

int google::protobuf::internal::WireFormatLite::TagSize ( int  field_number,
WireFormatLite::FieldType  type 
) [inline, static]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteBool ( field_number  ,
bool  value,
output   
) [static]
void google::protobuf::internal::WireFormatLite::WriteBoolNoTag ( bool  value,
output   
) [inline, static]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteBytes ( field_number  ,
const string &  value,
output   
) [static]
uint8 * google::protobuf::internal::WireFormatLite::WriteBytesToArray ( field_number  ,
const string &  value,
output   
) [inline, static]

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteDouble ( field_number  ,
double  value,
output   
) [static]
void google::protobuf::internal::WireFormatLite::WriteDoubleNoTag ( double  value,
output   
) [inline, static]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteEnum ( field_number  ,
int  value,
output   
) [static]
void google::protobuf::internal::WireFormatLite::WriteEnumNoTag ( int  value,
output   
) [inline, static]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteFloat ( field_number  ,
float  value,
output   
) [static]
void google::protobuf::internal::WireFormatLite::WriteFloatNoTag ( float  value,
output   
) [inline, static]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteGroup ( field_number  ,
const MessageLite value,
output   
) [static]
template<typename MessageType >
static void google::protobuf::internal::WireFormatLite::WriteGroupNoVirtual ( field_number  ,
const MessageType &  value,
output   
) [inline, static]
template<typename MessageType >
void google::protobuf::internal::WireFormatLite::WriteGroupNoVirtual ( int  field_number,
const MessageType &  value,
io::CodedOutputStream output 
) [inline]

Here is the call graph for this function:

template<typename MessageType >
static uint8* google::protobuf::internal::WireFormatLite::WriteGroupNoVirtualToArray ( field_number  ,
const MessageType &  value,
output   
) [inline, static]
template<typename MessageType >
uint8* google::protobuf::internal::WireFormatLite::WriteGroupNoVirtualToArray ( int  field_number,
const MessageType &  value,
uint8 target 
) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

template<typename MessageType >
static void google::protobuf::internal::WireFormatLite::WriteMessageNoVirtual ( field_number  ,
const MessageType &  value,
output   
) [inline, static]
template<typename MessageType >
void google::protobuf::internal::WireFormatLite::WriteMessageNoVirtual ( int  field_number,
const MessageType &  value,
io::CodedOutputStream output 
) [inline]

Here is the call graph for this function:

template<typename MessageType >
static uint8* google::protobuf::internal::WireFormatLite::WriteMessageNoVirtualToArray ( field_number  ,
const MessageType &  value,
output   
) [inline, static]
template<typename MessageType >
uint8* google::protobuf::internal::WireFormatLite::WriteMessageNoVirtualToArray ( int  field_number,
const MessageType &  value,
uint8 target 
) [inline]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

static void google::protobuf::internal::WireFormatLite::WriteString ( field_number  ,
const string &  value,
output   
) [static]
uint8 * google::protobuf::internal::WireFormatLite::WriteStringToArray ( field_number  ,
const string &  value,
output   
) [inline, static]

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines