Home | History | Annotate | Download | only in cpp

Lines Matching refs:reflection

51 using google::protobuf::Reflection;
191 reflection->GetRepeated##TYPE(instance, field, index) : \
192 reflection->Get##TYPE(instance, field))
195 const Reflection* reflection,
241 const Reflection* reflection = instance.GetReflection();
250 if (repeated && !reflection->FieldSize(instance, field)) {
251 DBG("Ignore repeated field with no size in reflection data");
254 if (!repeated && !reflection->HasField(instance, field)) {
265 int size = reflection->FieldSize(instance, field);
269 array->Set(index, ToJs(instance, reflection, field, child_type, j));
273 value = ToJs(instance, reflection, field, child_type, -1);
300 if (repeated) reflection->Add##TYPE(instance, field, EXPR); \
301 else reflection->Set##TYPE(instance, field, EXPR)
313 const Reflection* reflection = instance->GetReflection();
318 reflection->AddMessage(instance, field) :
319 reflection->MutableMessage(instance, field),
387 reflection->AddEnum(instance, field, vd);
389 reflection->SetEnum(instance, field, vd);