Classes | Namespaces | Macros | Functions
map_type_handler.h File Reference
#include <google/protobuf/parse_context.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/wire_format_lite.h>
Include dependency graph for map_type_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

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

Functions

const char * google.protobuf.internal::ReadBOOL (const char *ptr, bool *value)
 
const char * google.protobuf.internal::ReadDOUBLE (const char *ptr, double *value)
 
template<typename E >
const char * google.protobuf.internal::ReadENUM (const char *ptr, E *value)
 
const char * google.protobuf.internal::ReadFIXED32 (const char *ptr, uint32 *value)
 
const char * google.protobuf.internal::ReadFIXED64 (const char *ptr, uint64 *value)
 
const char * google.protobuf.internal::ReadFLOAT (const char *ptr, float *value)
 
const char * google.protobuf.internal::ReadINT32 (const char *ptr, int32 *value)
 
const char * google.protobuf.internal::ReadINT64 (const char *ptr, int64 *value)
 
const char * google.protobuf.internal::ReadSFIXED32 (const char *ptr, int32 *value)
 
const char * google.protobuf.internal::ReadSFIXED64 (const char *ptr, int64 *value)
 
const char * google.protobuf.internal::ReadSINT32 (const char *ptr, int32 *value)
 
const char * google.protobuf.internal::ReadSINT64 (const char *ptr, int64 *value)
 
const char * google.protobuf.internal::ReadUINT32 (const char *ptr, uint32 *value)
 
const char * google.protobuf.internal::ReadUINT64 (const char *ptr, uint64 *value)
 
template<typename F >
const char * google.protobuf.internal::ReadUnaligned (const char *ptr, F *value)
 

Macro Definition Documentation

◆ FIXED_BYTE_SIZE

#define FIXED_BYTE_SIZE (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
const MapEntryAccessorType& /* value */) { \
return WireFormatLite::k##DeclaredType##Size; \
}

Definition at line 305 of file map_type_handler.h.

◆ 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 static_cast<int>(WireFormatLite::DeclaredType##Size(value)); \
}

Definition at line 329 of file map_type_handler.h.

◆ 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; \
}

Definition at line 349 of file map_type_handler.h.

◆ GOOGLE_PROTOBUF_BYTE_SIZE

#define GOOGLE_PROTOBUF_BYTE_SIZE (   FieldType,
  DeclaredType 
)
Value:
template <typename Type> \
const MapEntryAccessorType& value) { \
return static_cast<int>(WireFormatLite::DeclaredType##Size(value)); \
}

Definition at line 286 of file map_type_handler.h.

◆ MAP_HANDLER

#define MAP_HANDLER (   FieldType)

Definition at line 209 of file map_type_handler.h.

◆ PRIMITIVE_HANDLER_FUNCTIONS

#define PRIMITIVE_HANDLER_FUNCTIONS (   FieldType)

Definition at line 729 of file map_type_handler.h.

◆ READ_METHOD

#define READ_METHOD (   FieldType)
Value:
template <typename Type> \
io::CodedInputStream* input, MapEntryAccessorType* value) { \
return WireFormatLite::ReadPrimitive<TypeOnMemory, \
WireFormatLite::TYPE_##FieldType>( \
input, value); \
} \
template <typename Type> \
const char* begin, ParseContext* ctx, MapEntryAccessorType* value) { \
return Read##FieldType(begin, value); \
}

Definition at line 521 of file map_type_handler.h.

◆ STRING_OR_BYTES_HANDLER_FUNCTIONS

#define STRING_OR_BYTES_HANDLER_FUNCTIONS (   FieldType)

Definition at line 641 of file map_type_handler.h.

◆ 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; \
};

Definition at line 111 of file map_type_handler.h.

◆ 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* target) { \
return WireFormatLite::Write##DeclaredType##ToArray(field, value, target); \
}

Definition at line 380 of file map_type_handler.h.

input
std::string input
Definition: tokenizer_unittest.cc:197
google::protobuf::uint8
uint8_t uint8
Definition: protobuf/src/google/protobuf/stubs/port.h:153
target
GLenum target
Definition: glcorearb.h:3739
begin
static size_t begin(const upb_table *t)
Definition: php/ext/google/protobuf/upb.c:4898
testing::internal::posix::Read
int Read(int fd, void *buf, unsigned int count)
Definition: gtest-port.h:2126
google::protobuf.internal.python_message.ByteSize
ByteSize
Definition: python_message.py:1067
field
const FieldDescriptor * field
Definition: parser_unittest.cc:2694
type
GLenum type
Definition: glcorearb.h:2695
testing::internal::posix::Write
int Write(int fd, const void *buf, unsigned int count)
Definition: gtest-port.h:2129
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093
output
const upb_json_parsermethod const upb_symtab upb_sink * output
Definition: ruby/ext/google/protobuf_c/upb.h:10503
google::protobuf.internal::FieldType
uint8 FieldType
Definition: extension_set.h:87


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03