Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::TestUtil::ReflectionTester Class Reference

#include <test_util.h>

Public Types

enum  MessageReleaseState { IS_NULL, CAN_BE_NULL, NOT_NULL }
 

Public Member Functions

void ExpectAllFieldsSetViaReflection (const Message &message)
 
void ExpectClearViaReflection (const Message &message)
 
void ExpectMessagesReleasedViaReflection (Message *message, MessageReleaseState expected_release_state)
 
void ExpectPackedFieldsSetViaReflection (const Message &message)
 
void ModifyRepeatedFieldsViaReflection (Message *message)
 
 ReflectionTester (const Descriptor *base_descriptor)
 
void ReleaseLastRepeatedsViaReflection (Message *message, bool expect_extensions_notnull)
 
void RemoveLastRepeatedsViaReflection (Message *message)
 
void SetAllFieldsViaReflection (Message *message)
 
void SetAllocatedOptionalMessageFieldsToNullViaReflection (Message *message)
 
void SetPackedFieldsViaReflection (Message *message)
 
void SwapRepeatedsViaReflection (Message *message)
 

Static Public Member Functions

static void ExpectOneofSetViaReflection (const Message &message)
 
static void SetAllocatedOptionalMessageFieldsToMessageViaReflection (Message *from_message, Message *to_message)
 
static void SetOneofViaReflection (Message *message)
 

Private Member Functions

void ExpectAllFieldsSetViaReflection1 (const Message &message)
 
void ExpectAllFieldsSetViaReflection2 (const Message &message)
 
void ExpectAllFieldsSetViaReflection3 (const Message &message)
 
const FieldDescriptorF (const std::string &name)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ReflectionTester)
 

Private Attributes

const Descriptorbase_descriptor_
 
const EnumValueDescriptorforeign_bar_
 
const EnumValueDescriptorforeign_baz_
 
const FieldDescriptorforeign_c_
 
const EnumValueDescriptorforeign_foo_
 
const FieldDescriptorgroup_a_
 
const EnumValueDescriptorimport_bar_
 
const EnumValueDescriptorimport_baz_
 
const FieldDescriptorimport_d_
 
const FieldDescriptorimport_e_
 
const EnumValueDescriptorimport_foo_
 
const FieldDescriptornested_b_
 
const EnumValueDescriptornested_bar_
 
const EnumValueDescriptornested_baz_
 
const EnumValueDescriptornested_foo_
 
const FieldDescriptorrepeated_group_a_
 

Detailed Description

Definition at line 57 of file test_util.h.

Member Enumeration Documentation

◆ MessageReleaseState

Enumerator
IS_NULL 
CAN_BE_NULL 
NOT_NULL 

Definition at line 82 of file test_util.h.

Constructor & Destructor Documentation

◆ ReflectionTester()

google::protobuf::TestUtil::ReflectionTester::ReflectionTester ( const Descriptor base_descriptor)
inlineexplicit

Definition at line 126 of file test_util.h.

Member Function Documentation

◆ ExpectAllFieldsSetViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ExpectAllFieldsSetViaReflection ( const Message message)
inline

Definition at line 432 of file test_util.h.

◆ ExpectAllFieldsSetViaReflection1()

void google::protobuf::TestUtil::ReflectionTester::ExpectAllFieldsSetViaReflection1 ( const Message message)
inlineprivate

Definition at line 441 of file test_util.h.

◆ ExpectAllFieldsSetViaReflection2()

void google::protobuf::TestUtil::ReflectionTester::ExpectAllFieldsSetViaReflection2 ( const Message message)
inlineprivate

Definition at line 565 of file test_util.h.

◆ ExpectAllFieldsSetViaReflection3()

void google::protobuf::TestUtil::ReflectionTester::ExpectAllFieldsSetViaReflection3 ( const Message message)
inlineprivate

Definition at line 740 of file test_util.h.

◆ ExpectClearViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ExpectClearViaReflection ( const Message message)
inline

Definition at line 869 of file test_util.h.

◆ ExpectMessagesReleasedViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ExpectMessagesReleasedViaReflection ( Message message,
MessageReleaseState  expected_release_state 
)
inline

Definition at line 1195 of file test_util.h.

◆ ExpectOneofSetViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ExpectOneofSetViaReflection ( const Message message)
inlinestatic

Definition at line 360 of file test_util.h.

◆ ExpectPackedFieldsSetViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ExpectPackedFieldsSetViaReflection ( const Message message)
inline

Definition at line 807 of file test_util.h.

◆ F()

const FieldDescriptor * google::protobuf::TestUtil::ReflectionTester::F ( const std::string name)
inlineprivate

Definition at line 178 of file test_util.h.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::TestUtil::ReflectionTester::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ReflectionTester  )
private

◆ ModifyRepeatedFieldsViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ModifyRepeatedFieldsViaReflection ( Message message)
inline

Definition at line 1061 of file test_util.h.

◆ ReleaseLastRepeatedsViaReflection()

void google::protobuf::TestUtil::ReflectionTester::ReleaseLastRepeatedsViaReflection ( Message message,
bool  expect_extensions_notnull 
)
inline

Definition at line 1123 of file test_util.h.

◆ RemoveLastRepeatedsViaReflection()

void google::protobuf::TestUtil::ReflectionTester::RemoveLastRepeatedsViaReflection ( Message message)
inline

Definition at line 1109 of file test_util.h.

◆ SetAllFieldsViaReflection()

void google::protobuf::TestUtil::ReflectionTester::SetAllFieldsViaReflection ( Message message)
inline

Definition at line 193 of file test_util.h.

◆ SetAllocatedOptionalMessageFieldsToMessageViaReflection()

void google::protobuf::TestUtil::ReflectionTester::SetAllocatedOptionalMessageFieldsToMessageViaReflection ( Message from_message,
Message to_message 
)
inlinestatic

Definition at line 1175 of file test_util.h.

◆ SetAllocatedOptionalMessageFieldsToNullViaReflection()

void google::protobuf::TestUtil::ReflectionTester::SetAllocatedOptionalMessageFieldsToNullViaReflection ( Message message)
inline

Definition at line 1158 of file test_util.h.

◆ SetOneofViaReflection()

void google::protobuf::TestUtil::ReflectionTester::SetOneofViaReflection ( Message message)
inlinestatic

Definition at line 343 of file test_util.h.

◆ SetPackedFieldsViaReflection()

void google::protobuf::TestUtil::ReflectionTester::SetPackedFieldsViaReflection ( Message message)
inline

Definition at line 396 of file test_util.h.

◆ SwapRepeatedsViaReflection()

void google::protobuf::TestUtil::ReflectionTester::SwapRepeatedsViaReflection ( Message message)
inline

Definition at line 1143 of file test_util.h.

Member Data Documentation

◆ base_descriptor_

const Descriptor* google::protobuf::TestUtil::ReflectionTester::base_descriptor_
private

Definition at line 98 of file test_util.h.

◆ foreign_bar_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::foreign_bar_
private

Definition at line 111 of file test_util.h.

◆ foreign_baz_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::foreign_baz_
private

Definition at line 112 of file test_util.h.

◆ foreign_c_

const FieldDescriptor* google::protobuf::TestUtil::ReflectionTester::foreign_c_
private

Definition at line 103 of file test_util.h.

◆ foreign_foo_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::foreign_foo_
private

Definition at line 110 of file test_util.h.

◆ group_a_

const FieldDescriptor* google::protobuf::TestUtil::ReflectionTester::group_a_
private

Definition at line 100 of file test_util.h.

◆ import_bar_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::import_bar_
private

Definition at line 114 of file test_util.h.

◆ import_baz_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::import_baz_
private

Definition at line 115 of file test_util.h.

◆ import_d_

const FieldDescriptor* google::protobuf::TestUtil::ReflectionTester::import_d_
private

Definition at line 104 of file test_util.h.

◆ import_e_

const FieldDescriptor* google::protobuf::TestUtil::ReflectionTester::import_e_
private

Definition at line 105 of file test_util.h.

◆ import_foo_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::import_foo_
private

Definition at line 113 of file test_util.h.

◆ nested_b_

const FieldDescriptor* google::protobuf::TestUtil::ReflectionTester::nested_b_
private

Definition at line 102 of file test_util.h.

◆ nested_bar_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::nested_bar_
private

Definition at line 108 of file test_util.h.

◆ nested_baz_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::nested_baz_
private

Definition at line 109 of file test_util.h.

◆ nested_foo_

const EnumValueDescriptor* google::protobuf::TestUtil::ReflectionTester::nested_foo_
private

Definition at line 107 of file test_util.h.

◆ repeated_group_a_

const FieldDescriptor* google::protobuf::TestUtil::ReflectionTester::repeated_group_a_
private

Definition at line 101 of file test_util.h.


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


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