Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TFree.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/io:$Id$
0002 // Author: Rene Brun   28/12/94
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TFree
0013 #define ROOT_TFree
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TFree                                                                //
0019 //                                                                      //
0020 // Description of free segments on a file.                              //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TObject.h"
0025 
0026 
0027 class TFree : public TObject {
0028 
0029 protected:
0030    Long64_t        fFirst;            ///<First free word of segment
0031    Long64_t        fLast;             ///<Last free word of segment
0032 
0033 public:
0034    TFree();
0035    TFree(TList *lfree, Long64_t first, Long64_t last);
0036    ~TFree() override;
0037            TFree    *AddFree(TList *lfree, Long64_t first, Long64_t last);
0038    virtual void      FillBuffer(char *&buffer);
0039            TFree    *GetBestFree(TList *lfree, Int_t nbytes);
0040            Long64_t  GetFirst() const {return fFirst;}
0041            Long64_t  GetLast() const {return fLast;}
0042            void      ls(Option_t * = "") const override;
0043    virtual void      ReadBuffer(char *&buffer);
0044            void      SetFirst(Long64_t first) {fFirst=first;}
0045            void      SetLast(Long64_t last) {fLast=last;}
0046            Int_t     Sizeof() const;
0047 
0048    ClassDefOverride(TFree,1);  //Description of free segments on a file
0049 };
0050 
0051 #endif