// $Header$ #include "Plex.h" using namespace Reve; //______________________________________________________________________ // Plex // // A group of containers with chunked memory allocation. // //______________________________________________________________________ // VoidCPlex // void VoidCPlex::ReleaseChunks() { for (Int_t i=0; ifArray; for (Int_t i=0; ifArray, size); pos += size; } ReleaseChunks(); fN = fCapacity = fSize; fVecSize = 1; fChunks.push_back(one); } /**************************************************************************/ Char_t* VoidCPlex::NewChunk() { fChunks.push_back(new TArrayC(fS*fN)); ++fVecSize; fCapacity += fN; return fChunks.back()->fArray; } /**************************************************************************/ /**************************************************************************/