MainObjectArrayPtr::MainObjectArray::MainObjectArray(QuantumFile *p_MRU) { ArrayIndex i; if (p_MRU) { m_QuantumFile = p_MRU; m_MainObjectCount = p_MRU->GetMainObjectCount(); m_MainObjectBlockCount = p_MRU->GetMainObjectBlockCount(); m_CurrentLowestFreeObject = 0; m_BlockPtr.SetSize(m_MainObjectCount); for (i = 0; i < m_BlockPtr.GetSize(); i ++) m_BlockPtr[i] = p_MRU->MakeMainObjectBlockPtr(i); } }