#include "ElementProxyHeaders.hpp" // //############################################################################ //######################## MLRIndexProxy ######################## //############################################################################ // MemoryBlock* MLRIndexProxy::AllocatedMemory = NULL; MLRIndexProxy::ClassData* MLRIndexProxy::DefaultData = NULL; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void MLRIndexProxy::InitializeClass() { Verify(!AllocatedMemory); AllocatedMemory = new MemoryBlock( sizeof(MLRIndexProxy), 10, 10, "MLRIndexProxy" ); Register_Object(AllocatedMemory); Verify(!DefaultData); DefaultData = new ClassData( MLRIndexProxyClassID, "MLRIndexProxy", IndexProxy::DefaultData ); Register_Object(DefaultData); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void MLRIndexProxy::TerminateClass() { Unregister_Object(DefaultData); delete DefaultData; DefaultData = NULL; Unregister_Object(AllocatedMemory); delete AllocatedMemory; AllocatedMemory = NULL; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void MLRIndexProxy::Destroy() { Check_Object(this); Verify(referenceCount == 1); STOP(("Not implemented")); DetachReference(); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // MLRIndexProxy::MLRIndexProxy( MLRPolygonProxy *polygon, MLRVertexProxy *vertex, int polygon_index ): IndexProxy(DefaultData, polygon, vertex), polygonIndex(polygon_index) { Check_Pointer(this); Check_Object(polygonProxy); Check_Object(vertex); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // MLRIndexProxy::~MLRIndexProxy() { Check_Object(this); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void MLRIndexProxy::TestInstance() const { Verify(IsDerivedFrom(DefaultData)); }