DCCL v4
Loading...
Searching...
No Matches
dccl::internal::TypeHelper Class Reference

Provides FromProtoTypeBase and FromProtoCppTypeBase type identification helper classes for various representations of the underlying field. More...

#include <dccl/internal/type_helper.h>

Public Types

using TypeMap = std::map< google::protobuf::FieldDescriptor::Type, std::shared_ptr< FromProtoTypeBase > >
 
using CppTypeMap = std::map< google::protobuf::FieldDescriptor::CppType, std::shared_ptr< FromProtoCppTypeBase > >
 
using CustomMessageMap = std::map< std::string, std::shared_ptr< FromProtoCppTypeBase > >
 

Public Member Functions

std::shared_ptr< FromProtoTypeBasefind (google::protobuf::FieldDescriptor::Type type) const
 
std::shared_ptr< FromProtoCppTypeBasefind (const google::protobuf::FieldDescriptor *field) const
 
std::shared_ptr< FromProtoCppTypeBasefind (const google::protobuf::Descriptor *desc) const
 
std::shared_ptr< FromProtoCppTypeBasefind (google::protobuf::FieldDescriptor::CppType cpptype, const std::string &type_name="") const
 

Public Attributes

TypeMap type_map_
 
CppTypeMap cpptype_map_
 
CustomMessageMap custom_message_map_
 

Friends

class ::dccl::FieldCodecManagerLocal
 

Detailed Description

Provides FromProtoTypeBase and FromProtoCppTypeBase type identification helper classes for various representations of the underlying field.

Definition at line 40 of file type_helper.h.

Member Typedef Documentation

◆ CppTypeMap

using dccl::internal::TypeHelper::CppTypeMap = std::map<google::protobuf::FieldDescriptor::CppType, std::shared_ptr<FromProtoCppTypeBase> >

Definition at line 89 of file type_helper.h.

◆ CustomMessageMap

using dccl::internal::TypeHelper::CustomMessageMap = std::map<std::string, std::shared_ptr<FromProtoCppTypeBase> >

Definition at line 93 of file type_helper.h.

◆ TypeMap

using dccl::internal::TypeHelper::TypeMap = std::map<google::protobuf::FieldDescriptor::Type, std::shared_ptr<FromProtoTypeBase> >

Definition at line 85 of file type_helper.h.

Constructor & Destructor Documentation

◆ TypeHelper()

dccl::internal::TypeHelper::TypeHelper ( )
inline

Definition at line 43 of file type_helper.h.

Member Function Documentation

◆ find() [1/4]

std::shared_ptr< FromProtoCppTypeBase > dccl::internal::TypeHelper::find ( const google::protobuf::Descriptor *  desc) const
inline

Definition at line 55 of file type_helper.h.

◆ find() [2/4]

std::shared_ptr< FromProtoCppTypeBase > dccl::internal::TypeHelper::find ( const google::protobuf::FieldDescriptor *  field) const
inline

Definition at line 47 of file type_helper.h.

◆ find() [3/4]

std::shared_ptr< dccl::internal::FromProtoCppTypeBase > dccl::internal::TypeHelper::find ( google::protobuf::FieldDescriptor::CppType  cpptype,
const std::string &  type_name = "" 
) const

Definition at line 89 of file type_helper.cpp.

◆ find() [4/4]

std::shared_ptr< dccl::internal::FromProtoTypeBase > dccl::internal::TypeHelper::find ( google::protobuf::FieldDescriptor::Type  type) const

Definition at line 107 of file type_helper.cpp.

Friends And Related Symbol Documentation

◆ ::dccl::FieldCodecManagerLocal

friend class ::dccl::FieldCodecManagerLocal
friend

Definition at line 64 of file type_helper.h.

Member Data Documentation

◆ cpptype_map_

CppTypeMap dccl::internal::TypeHelper::cpptype_map_

Definition at line 91 of file type_helper.h.

◆ custom_message_map_

CustomMessageMap dccl::internal::TypeHelper::custom_message_map_

Definition at line 94 of file type_helper.h.

◆ type_map_

TypeMap dccl::internal::TypeHelper::type_map_

Definition at line 87 of file type_helper.h.


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