Namespaces | Macros
field_mask_util.cc File Reference
#include <google/protobuf/util/field_mask_util.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for field_mask_util.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::util
 

Macros

#define COPY_REPEATED_VALUE(TYPE, Name)
 
#define COPY_VALUE(TYPE, Name)
 

Macro Definition Documentation

◆ COPY_REPEATED_VALUE

#define COPY_REPEATED_VALUE (   TYPE,
  Name 
)
Value:
case FieldDescriptor::CPPTYPE_##TYPE: { \
int size = source_reflection->FieldSize(source, field); \
for (int i = 0; i < size; ++i) { \
destination_reflection->Add##Name( \
destination, field, \
source_reflection->GetRepeated##Name(source, field, i)); \
} \
break; \
}

◆ COPY_VALUE

#define COPY_VALUE (   TYPE,
  Name 
)
Value:
case FieldDescriptor::CPPTYPE_##TYPE: { \
if (source_reflection->HasField(source, field)) { \
destination_reflection->Set##Name( \
destination, field, source_reflection->Get##Name(source, field)); \
} else { \
destination_reflection->ClearField(destination, field); \
} \
break; \
}

Variable Documentation

◆ children

std::map<std::string, Node*> children

Definition at line 258 of file field_mask_util.cc.

◆ root_

Node root_
private

Definition at line 288 of file field_mask_util.cc.

size
#define size
Definition: glcorearb.h:2944
source
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:3072
field
const FieldDescriptor * field
Definition: parser_unittest.cc:2694
i
int i
Definition: gmock-matchers_test.cc:764
size
GLsizeiptr size
Definition: glcorearb.h:2943
TYPE
#define TYPE(u, l)
Definition: php/ext/google/protobuf/upb.c:8510


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