Go to the documentation of this file.
38 #ifndef GOOGLE_PROTOBUF_DYNAMIC_MESSAGE_H__
39 #define GOOGLE_PROTOBUF_DYNAMIC_MESSAGE_H__
51 #error "You cannot SWIG proto headers"
54 #include <google/protobuf/port_def.inc>
104 delegate_to_generated_factory_ = enable;
146 void* default_oneof_instance);
150 const void* default_oneof_instance);
161 std::vector<const Message*> result(
static_cast<size_t>(map_size));
172 std::stable_sort(result.begin(), result.end(), comparator);
175 for (
size_t j = 1; j < static_cast<size_t>(map_size); j++) {
176 if (!comparator(result[j - 1], result[j])) {
178 ?
"internal error in map key sorting"
179 :
"map keys are not unique");
194 switch (field_->cpp_type()) {
197 bool second = reflection->
GetBool(*
b, field_);
198 return first < second;
203 return first < second;
208 return first < second;
213 return first < second;
218 return first < second;
223 return first < second;
226 GOOGLE_LOG(DFATAL) <<
"Invalid key for map field.";
239 #include <google/protobuf/port_undef.inc>
241 #endif // GOOGLE_PROTOBUF_DYNAMIC_MESSAGE_H__
std::string GetString(const Message &message, const FieldDescriptor *field) const
internal::WrappedMutex prototypes_mutex_
bool delegate_to_generated_factory_
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
uint32 GetUInt32(const Message &message, const FieldDescriptor *field) const
const FieldDescriptor * field_
static std::vector< const Message * > Sort(const Message &message, int map_size, const Reflection *reflection, const FieldDescriptor *field)
GLsizei const GLchar *const * string
bool GetBool(const Message &message, const FieldDescriptor *field) const
GLboolean GLboolean GLboolean b
#define GOOGLE_LOG(LEVEL)
pointer_iterator pointer_begin()
const RepeatedPtrField< T > & GetRepeatedPtrField(const Message &, const FieldDescriptor *) const
const FieldDescriptor * field
static const LogLevel ERROR
int32 GetInt32(const Message &message, const FieldDescriptor *field) const
MapEntryMessageComparator(const Descriptor *descriptor)
InternalDescriptorPool * pool
void SetDelegateToGeneratedFactory(bool enable)
int64 GetInt64(const Message &message, const FieldDescriptor *field) const
std::unique_ptr< PrototypeMap > prototypes_
bool operator()(const Message *a, const Message *b)
GLboolean GLboolean GLboolean GLboolean a
GLenum GLuint GLenum GLsizei const GLchar * message
uint64 GetUInt64(const Message &message, const FieldDescriptor *field) const
const DescriptorPool * pool_
pointer_iterator pointer_end()
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:50