MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / GetInstanceFields

Method GetInstanceFields

src/hx/cppia/CppiaClasses.cpp:1489–1503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487}
1488
1489void CppiaClassInfo::GetInstanceFields(hx::Object *inObject, Array<String> &ioFields)
1490{
1491 for(int i=0;i<memberVars.size();i++)
1492 {
1493 CppiaVar &var = *memberVars[i];
1494 ioFields->push(var.name);
1495 }
1496
1497 if (inObject)
1498 {
1499 hx::FieldMap *map = inObject->__GetFieldMap();
1500 if (map)
1501 FieldMapAppendFields(map, ioFields);
1502 }
1503}
1504
1505Array<String> CppiaClassInfo::GetClassFields()
1506{

Callers 2

GetInstanceFieldsMethod · 0.45
ScriptableGetFieldsFunction · 0.45

Calls 4

FieldMapAppendFieldsFunction · 0.85
__GetFieldMapMethod · 0.80
sizeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected