DCCL v4
Loading...
Searching...
No Matches
dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE > Class Reference

Implements FromProtoCppTypeBase for CPPTYPE_MESSAGE using the dynamic google::protobuf::Message as the underlying class. More...

#include <dccl/internal/protobuf_cpp_type_helpers.h>

Inheritance diagram for dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >:

Public Types

using const_type = const google::protobuf::Message *
 
using mutable_type = google::protobuf::Message *
 

Public Member Functions

std::string as_str () override
 string representation
 
- Public Member Functions inherited from dccl::internal::FromProtoCppTypeBase
dccl::any get_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg)
 Get a given field's value from the provided message.
 
dccl::any get_value (const google::protobuf::Message &msg)
 Get the value of the entire base message (only works for CPPTYPE_MESSAGE)
 
dccl::any get_repeated_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg, int index)
 Get the value of a repeated field at a given index.
 
void set_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, dccl::any value)
 Set a given field's value in the provided message.
 
void set_value (google::protobuf::Message *msg, dccl::any value)
 Set the value of the entire base message (only works for CPPTYPE_MESSAGE)
 
void add_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, dccl::any value)
 Add a new entry for a repeated field to the back.
 

Protected Member Functions

dccl::any _get_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg) override
 
dccl::any _get_repeated_value (const google::protobuf::FieldDescriptor *field, const google::protobuf::Message &msg, int index) override
 
void _set_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, dccl::any value) override
 
void _add_value (const google::protobuf::FieldDescriptor *field, google::protobuf::Message *msg, dccl::any value) override
 

Detailed Description

Implements FromProtoCppTypeBase for CPPTYPE_MESSAGE using the dynamic google::protobuf::Message as the underlying class.

Definition at line 437 of file protobuf_cpp_type_helpers.h.

Member Typedef Documentation

◆ const_type

using dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::const_type = const google::protobuf::Message*

Definition at line 441 of file protobuf_cpp_type_helpers.h.

◆ mutable_type

using dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::mutable_type = google::protobuf::Message*

Definition at line 442 of file protobuf_cpp_type_helpers.h.

Member Function Documentation

◆ _add_value()

void dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::_add_value ( const google::protobuf::FieldDescriptor *  field,
google::protobuf::Message *  msg,
dccl::any  value 
)
inlineoverrideprotectedvirtual

Reimplemented from dccl::internal::FromProtoCppTypeBase.

Definition at line 482 of file protobuf_cpp_type_helpers.h.

◆ _get_repeated_value()

dccl::any dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::_get_repeated_value ( const google::protobuf::FieldDescriptor *  field,
const google::protobuf::Message &  msg,
int  index 
)
inlineoverrideprotectedvirtual

Reimplemented from dccl::internal::FromProtoCppTypeBase.

Definition at line 455 of file protobuf_cpp_type_helpers.h.

◆ _get_value()

dccl::any dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::_get_value ( const google::protobuf::FieldDescriptor *  field,
const google::protobuf::Message &  msg 
)
inlineoverrideprotectedvirtual

Reimplemented from dccl::internal::FromProtoCppTypeBase.

Definition at line 446 of file protobuf_cpp_type_helpers.h.

◆ _set_value()

void dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::_set_value ( const google::protobuf::FieldDescriptor *  field,
google::protobuf::Message *  msg,
dccl::any  value 
)
inlineoverrideprotectedvirtual

Reimplemented from dccl::internal::FromProtoCppTypeBase.

Definition at line 461 of file protobuf_cpp_type_helpers.h.

◆ as_str()

std::string dccl::internal::FromProtoCppType< google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE >::as_str ( )
inlineoverridevirtual

string representation

Reimplemented from dccl::internal::FromProtoCppTypeBase.

Definition at line 443 of file protobuf_cpp_type_helpers.h.


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