Home | History | Annotate | Download | only in protobuf

Lines Matching full:reflection

80 //     // reflection interface.
99 // // Use the reflection interface to examine the contents.
100 // const Reflection* reflection = foo->GetReflection();
101 // assert(reflection->GetString(foo, text_field) == "Hello World!");
102 // assert(reflection->FieldSize(foo, numbers_field) == 3);
103 // assert(reflection->GetRepeatedInt32(foo, numbers_field, 0) == 1);
104 // assert(reflection->GetRepeatedInt32(foo, numbers_field, 1) == 5);
105 // assert(reflection->GetRepeatedInt32(foo, numbers_field, 2) == 42);
134 class Reflection;
156 const Reflection* reflection;
162 // adds descriptors and reflection on top of that.
165 // default implementations based on reflection. Message classes which are
198 // purely via reflection. Generally, you should not call this unless you
215 // See Reflection::GetUnknownFields() for more on unknown fields.
220 // Reflection object's SpaceUsed() method.
264 // Reflection-based methods ----------------------------------------
266 // reflection-based default implementations.
291 typedef google::protobuf::Reflection Reflection;
297 // Get the Reflection interface for this Message, which can be used to
303 // reflection and wants to override the default behavior.
304 virtual const Reflection* GetReflection() const {
305 return GetMetadata().reflection;
323 // To get the Reflection for a given Message, call Message::GetReflection().
327 // implementation of Reflection (GeneratedMessageReflection,
329 // should share the same Reflection object (though you should not rely on
346 // this Reflection object (i.e. message.GetReflection() != reflection).
359 // write fields from a Reflection without paying attention to the type.
360 class LIBPROTOBUF_EXPORT Reflection {
362 inline Reflection() {}
363 virtual ~Reflection();
458 // str = reflection->GetStringReference(field, &str);
463 // string str = reflection->GetString(field);
686 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Reflection);
756 const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
761 RepeatedField<TYPE>* Reflection::MutableRepeatedField<TYPE>( \
782 inline const RepeatedPtrField<string>& Reflection::GetRepeatedPtrField<string>(
789 inline RepeatedPtrField<string>* Reflection::MutableRepeatedPtrField<string>(
799 inline const RepeatedPtrField<Message>& Reflection::GetRepeatedPtrField(
808 inline RepeatedPtrField<Message>* Reflection::MutableRepeatedPtrField(
817 inline const RepeatedPtrField<PB>& Reflection::GetRepeatedPtrField(
826 inline RepeatedPtrField<PB>* Reflection::MutableRepeatedPtrField(