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

Method setDynamic

include/cpp/VirtualArray.h:674–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672
673
674inline void VirtualArray::setDynamic( const Dynamic &inRHS )
675{
676 hx::Object *ptr = inRHS.GetPtr();
677 if (ptr)
678 {
679 if (ptr->__GetClass().mPtr == super::__SGetClass().mPtr )
680 {
681 cpp::VirtualArray_obj *varray = dynamic_cast<cpp::VirtualArray_obj *>(ptr);
682 if (varray)
683 mPtr = varray;
684 else
685 mPtr = new VirtualArray_obj(dynamic_cast<cpp::ArrayBase_obj *>(ptr), true);
686 }
687 }
688}
689
690
691

Callers

nothing calls this directly

Calls 2

GetPtrMethod · 0.80
__GetClassMethod · 0.45

Tested by

no test coverage detected