ROOT logo
// @(#)root/io:$Id: TFree.h 23122 2008-04-10 14:56:30Z rdm $
// Author: Rene Brun   28/12/94

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TFree
#define ROOT_TFree


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TFree                                                                //
//                                                                      //
// Description of free segments on a file.                              //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif


class TFree : public TObject {

protected:
   Long64_t        fFirst;            //First free word of segment
   Long64_t        fLast;             //Last free word of segment

public:
   TFree();
   TFree(TList *lfree, Long64_t first, Long64_t last);
   virtual ~TFree();
           TFree    *AddFree(TList *lfree, Long64_t first, Long64_t last);
   virtual void      FillBuffer(char *&buffer);
           TFree    *GetBestFree(TList *lfree, Int_t nbytes);
           Long64_t  GetFirst() const {return fFirst;}
           Long64_t  GetLast() const {return fLast;}
           void      ls(Option_t *) const;
   virtual void      ReadBuffer(char *&buffer);
           void      SetFirst(Long64_t first) {fFirst=first;}
           void      SetLast(Long64_t last) {fLast=last;}
           Int_t     Sizeof() const;

   ClassDef(TFree,1);  //Description of free segments on a file
};

#endif
 TFree.h:1
 TFree.h:2
 TFree.h:3
 TFree.h:4
 TFree.h:5
 TFree.h:6
 TFree.h:7
 TFree.h:8
 TFree.h:9
 TFree.h:10
 TFree.h:11
 TFree.h:12
 TFree.h:13
 TFree.h:14
 TFree.h:15
 TFree.h:16
 TFree.h:17
 TFree.h:18
 TFree.h:19
 TFree.h:20
 TFree.h:21
 TFree.h:22
 TFree.h:23
 TFree.h:24
 TFree.h:25
 TFree.h:26
 TFree.h:27
 TFree.h:28
 TFree.h:29
 TFree.h:30
 TFree.h:31
 TFree.h:32
 TFree.h:33
 TFree.h:34
 TFree.h:35
 TFree.h:36
 TFree.h:37
 TFree.h:38
 TFree.h:39
 TFree.h:40
 TFree.h:41
 TFree.h:42
 TFree.h:43
 TFree.h:44
 TFree.h:45
 TFree.h:46
 TFree.h:47
 TFree.h:48
 TFree.h:49
 TFree.h:50
 TFree.h:51
 TFree.h:52
 TFree.h:53