Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMemFile::TMemBlock Struct Reference

Definition at line 30 of file TMemFile.h.

Public Member Functions

 TMemBlock ()=default
 
 TMemBlock (Long64_t size, TMemBlock *previous=nullptr)
 Constructor allocating the memory buffer.
 
 TMemBlock (UChar_t *externalBuffer, Long64_t size)
 Constructor not allocating the memory buffer, for external ownership.
 
 ~TMemBlock ()
 Usual destructors. Delete the block memory.
 
void CreateNext (Long64_t size)
 

Public Attributes

UChar_tfBuffer {nullptr}
 
TMemBlockfNext {nullptr}
 
TMemBlockfPrevious {nullptr}
 
Long64_t fSize {0}
 

Private Member Functions

 TMemBlock (const TMemBlock &)=delete
 
TMemBlockoperator= (const TMemBlock &)=delete
 

#include <TMemFile.h>

Constructor & Destructor Documentation

◆ TMemBlock() [1/4]

TMemFile::TMemBlock::TMemBlock ( const TMemBlock )
privatedelete

◆ TMemBlock() [2/4]

TMemFile::TMemBlock::TMemBlock ( )
default

◆ TMemBlock() [3/4]

TMemFile::TMemBlock::TMemBlock ( Long64_t  size,
TMemBlock previous = nullptr 
)

Constructor allocating the memory buffer.

Parameters
sizesize of the buffer to be allocated. A value of -1 means that no allocation should happen, leaving fBuffer and fSize at 0.
previousprevious TMemBlock, used to set up the linked list.

Definition at line 53 of file TMemFile.cxx.

◆ TMemBlock() [4/4]

TMemFile::TMemBlock::TMemBlock ( UChar_t externalBuffer,
Long64_t  size 
)

Constructor not allocating the memory buffer, for external ownership.

Definition at line 65 of file TMemFile.cxx.

◆ ~TMemBlock()

TMemFile::TMemBlock::~TMemBlock ( )

Usual destructors. Delete the block memory.

Definition at line 72 of file TMemFile.cxx.

Member Function Documentation

◆ CreateNext()

void TMemFile::TMemBlock::CreateNext ( Long64_t  size)

Definition at line 80 of file TMemFile.cxx.

◆ operator=()

TMemBlock & TMemFile::TMemBlock::operator= ( const TMemBlock )
privatedelete

Member Data Documentation

◆ fBuffer

UChar_t* TMemFile::TMemBlock::fBuffer {nullptr}

Definition at line 44 of file TMemFile.h.

◆ fNext

TMemBlock* TMemFile::TMemBlock::fNext {nullptr}

Definition at line 43 of file TMemFile.h.

◆ fPrevious

TMemBlock* TMemFile::TMemBlock::fPrevious {nullptr}

Definition at line 42 of file TMemFile.h.

◆ fSize

Long64_t TMemFile::TMemBlock::fSize {0}

Definition at line 45 of file TMemFile.h.

Collaboration diagram for TMemFile::TMemBlock:
[legend]

The documentation for this struct was generated from the following files: