webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Macros
map_type_handler.h File Reference
#include <google/protobuf/arena.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/wire_format_lite_inl.h>

Go to the source code of this file.

Classes

struct  google::protobuf.internal::MapIf< Flag, TrueType, FalseType >
 
struct  google::protobuf.internal::MapIf< true, TrueType, FalseType >
 
struct  google::protobuf.internal::MapIf< false, TrueType, FalseType >
 
class  google::protobuf.internal::MapValueInitializer< IsEnum, Type >
 
class  google::protobuf.internal::MapValueInitializer< true, Type >
 
class  google::protobuf.internal::MapValueInitializer< false, Type >
 
class  google::protobuf.internal::MapArenaMessageCreator< Type, is_arena_constructable >
 
class  google::protobuf.internal::MapArenaMessageCreator< Type, true >
 
class  google::protobuf.internal::MapArenaMessageCreator< Type, false >
 
class  google::protobuf.internal::MapWireFieldTypeTraits< field_type, Type >
 
class  google::protobuf.internal::MapTypeHandler< field_type, Type >
 
class  google::protobuf.internal::MapTypeHandler< WireFormatLite::TYPE_MESSAGE, Type >
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define TYPE_TRAITS(FieldType, CType, WireFormatType, IsMessage, IsEnum)
 
#define MAP_HANDLER(FieldType)
 
#define GOOGLE_PROTOBUF_BYTE_SIZE(FieldType, DeclaredType)
 
#define FIXED_BYTE_SIZE(FieldType, DeclaredType)
 
#define GET_CACHED_SIZE(FieldType, DeclaredType)
 
#define GET_FIXED_CACHED_SIZE(FieldType, DeclaredType)
 
#define WRITE_METHOD(FieldType, DeclaredType)
 
#define READ_METHOD(FieldType)
 
#define STRING_OR_BYTES_HANDLER_FUNCTIONS(FieldType)
 
#define PRIMITIVE_HANDLER_FUNCTIONS(FieldType)
 

Macro Definition Documentation

◆ FIXED_BYTE_SIZE

#define FIXED_BYTE_SIZE (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
const MapEntryAccessorType& value) { \
return WireFormatLite::k##DeclaredType##Size; \
}
uint32_t Size
Definition: wav_header.cc:30
DOMString k
Definition: WebCryptoAPI.idl:122
EGLAttrib * value
Definition: eglext.h:120
ByteSize
Definition: python_message.py:1040

◆ GET_CACHED_SIZE

#define GET_CACHED_SIZE (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
inline int \
MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::GetCachedSize( \
const MapEntryAccessorType& value) { \
return WireFormatLite::DeclaredType##Size(value); \
}
uint32_t Size
Definition: wav_header.cc:30
EGLAttrib * value
Definition: eglext.h:120

◆ GET_FIXED_CACHED_SIZE

#define GET_FIXED_CACHED_SIZE (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
inline int \
MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::GetCachedSize( \
const MapEntryAccessorType& value) { \
return WireFormatLite::k##DeclaredType##Size; \
}
uint32_t Size
Definition: wav_header.cc:30
DOMString k
Definition: WebCryptoAPI.idl:122
EGLAttrib * value
Definition: eglext.h:120

◆ GOOGLE_PROTOBUF_BYTE_SIZE

#define GOOGLE_PROTOBUF_BYTE_SIZE (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
const MapEntryAccessorType& value) { \
return WireFormatLite::DeclaredType##Size(value); \
}
uint32_t Size
Definition: wav_header.cc:30
EGLAttrib * value
Definition: eglext.h:120
ByteSize
Definition: python_message.py:1040

◆ MAP_HANDLER

#define MAP_HANDLER (   FieldType)

◆ PRIMITIVE_HANDLER_FUNCTIONS

#define PRIMITIVE_HANDLER_FUNCTIONS (   FieldType)

◆ READ_METHOD

#define READ_METHOD (   FieldType)
Value:
template <typename Type> \
io::CodedInputStream* input, MapEntryAccessorType* value) { \
return WireFormatLite::ReadPrimitive<TypeOnMemory, \
WireFormatLite::TYPE_##FieldType>( \
input, value); \
}
EGLAttrib * value
Definition: eglext.h:120
int Read(int fd, void *buf, unsigned int count)
Definition: gtest-port.h:1390
FieldType
Enumeration of all the possible field types.
Definition: FieldType.cs:38
string input
Definition: tokenizer_unittest.cc:198

◆ STRING_OR_BYTES_HANDLER_FUNCTIONS

#define STRING_OR_BYTES_HANDLER_FUNCTIONS (   FieldType)

◆ TYPE_TRAITS

#define TYPE_TRAITS (   FieldType,
  CType,
  WireFormatType,
  IsMessage,
  IsEnum 
)
Value:
template <typename Type> \
class MapWireFieldTypeTraits<WireFormatLite::TYPE_##FieldType, Type> { \
public: \
static const bool kIsMessage = IsMessage; \
static const bool kIsEnum = IsEnum; \
typedef typename MapIf<kIsMessage, Type*, CType>::type TypeOnMemory; \
typedef typename MapIf<kIsEnum, int, Type>::type MapEntryAccessorType; \
static const WireFormatLite::WireType kWireType = \
WireFormatLite::WIRETYPE_##WireFormatType; \
};
EGLenum type
Definition: eglext.h:63

◆ WRITE_METHOD

#define WRITE_METHOD (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
int field, const MapEntryAccessorType& value, \
io::CodedOutputStream* output) { \
return WireFormatLite::Write##DeclaredType(field, value, output); \
} \
template <typename Type> \
inline uint8* \
MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::WriteToArray( \
int field, const MapEntryAccessorType& value, uint8* output) { \
return WireFormatLite::Write##DeclaredType##ToArray(field, value, output); \
}
const FieldDescriptor * field
Definition: parser_unittest.cc:2279
unsigned char uint8
Definition: basic_types.h:62
#define output
Definition: wire_format_lite.h:418
int Write(int fd, const void *buf, unsigned int count)
Definition: gtest-port.h:1393
EGLAttrib * value
Definition: eglext.h:120