TBasket


class description - source file - inheritance tree

class TBasket : public TKey


    public:
TBasket TBasket() TBasket TBasket(Text_t* name, Text_t* title, TBranch* branch) TBasket TBasket(TBasket&) virtual void ~TBasket() virtual void AdjustSize(Int_t newsize) TClass* Class() virtual Int_t DropBuffers() TBranch* GetBranch() virtual Int_t GetBufferSize() virtual Int_t* GetEntryOffset() virtual Int_t GetEntryPointer(Int_t Entry) virtual Int_t GetLast() virtual Int_t GetNevBuf() virtual Int_t GetNevBufSize() char* GetZipBuffer() virtual TClass* IsA() virtual void Print(Option_t* option) virtual void ReadBasketBuffers() virtual void ReadBasketBuffers(char* buf) virtual void Reset(Option_t* option) virtual void SetNevBufSize(Int_t n) virtual void SetReadMode() virtual void SetWriteMode() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) virtual void Update(Int_t newlast) virtual Int_t WriteBuffer()

Data Members

protected:
Int_t fBufferSize fBuffer length in bytes Int_t fNevBufSize Length in Int_t of fEntryOffset Int_t fNevBuf Number of entries in basket Int_t fLast Pointer to last used byte in basket Bool_t fWritingBuffer True when writing buffer char* fZipBuffer Basket compressed buffer (if compression) Int_t* fEntryOffset Offset of entries in fBuffer(TKey) TBranch* fBranch Pointer to the basket support branch

Class Description

  Manages buffers for branches of a Tree.
  See picture in TTree.


TBasket()
               Default contructor

TBasket(const Text_t *name, const Text_t *title, TBranch *branch)
            Basket normal constructor



~TBasket()
          Basket destructor


void AdjustSize(Int_t newsize)
      Increase the size of the current fBuffer up to newsize

Int_t DropBuffers()
      Drop buffers of this basket if it is not the current basket

Int_t GetEntryPointer(Int_t entry)
*-*-*-*-*-*-*Get pointer to buffer for internal entry*-*-*-*-*-*
*-*          ========================================

void Print(Option_t *option)
            Print Basket parameters


void ReadBasketBuffers()
*-*-*-*-*-*-*-*-*Read basket buffers in memory and cleanup*-*-*-*-*-*-*
*-*              =========================================

       Read a basket buffer. Check if buffers of previous ReadBasket
       should not be dropped. Remember, we keep buffers
       in memory up to fMaxVirtualSize.

void ReadBasketBuffers(char *buf)
*-*-*-*-*-*-*-*-*Read basket buffers in memory and cleanup*-*-*-*-*-*-*
*-*              =========================================

       Read a basket buffer from buf. Check if buffers of previous ReadBasket
       should not be dropped. Remember, we keep buffers
       in memory up to fMaxVirtualSize.

void Reset(Option_t *)

void SetReadMode()
 Set read mode of basket.

void SetWriteMode()
 Set write mode of basket.

void Streamer(TBuffer &b)
*-*-*-*-*-*-*-*-*Stream a class object*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*              =========================================

void Update(Int_t offset)
    Update basket header and EntryOffset table

Int_t WriteBuffer()
    Write buffer of this basket on the current file



Inline Functions


           TBranch* GetBranch()
              Int_t GetBufferSize()
             Int_t* GetEntryOffset()
              char* GetZipBuffer()
              Int_t GetNevBuf()
              Int_t GetNevBufSize()
              Int_t GetLast()
               void SetNevBufSize(Int_t n)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
            TBasket TBasket(TBasket&)


Author: Rene Brun 19/01/96
Last update: 2.22/07 30/06/99 11.37.44 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.