Logo ROOT  
Reference Guide
RooLinkedListImplDetails::Chunk Class Reference

a chunk of memory in a pool for quick allocation of RooLinkedListElems

Definition at line 52 of file RooLinkedList.cxx.

Public Member Functions

 Chunk (Int_t sz)
 constructor More...
 
 ~Chunk ()
 destructor More...
 
Int_t capacity () const
 chunk capacity More...
 
const voidchunkaddr () const
 return address of chunk More...
 
bool contains (RooLinkedListElem *el) const
 check if el is in this chunk More...
 
bool empty () const
 chunk empty? More...
 
Int_t free () const
 chunk free elements More...
 
bool full () const
 chunk full? More...
 
RooLinkedListElempop_free_elem ()
 pop a free element off the free list More...
 
void push_free_elem (RooLinkedListElem *el)
 push a free element back onto the freelist More...
 
Int_t size () const
 chunk occupied elements More...
 
int szclass () const
 return size class More...
 

Private Member Functions

 Chunk (const Chunk &)
 forbid copying More...
 
Chunkoperator= (const Chunk &)
 

Private Attributes

RooLinkedListElem_chunk
 chunk from which elements come More...
 
Int_t _free
 length of free list More...
 
RooLinkedListElem_freelist
 list of free elements More...
 
Int_t _sz
 chunk capacity More...
 

Constructor & Destructor Documentation

◆ Chunk() [1/2]

RooLinkedListImplDetails::Chunk::Chunk ( Int_t  sz)
inline

constructor

Definition at line 55 of file RooLinkedList.cxx.

◆ ~Chunk()

RooLinkedListImplDetails::Chunk::~Chunk ( )
inline

destructor

Definition at line 65 of file RooLinkedList.cxx.

◆ Chunk() [2/2]

RooLinkedListImplDetails::Chunk::Chunk ( const Chunk )
private

forbid copying

Member Function Documentation

◆ capacity()

Int_t RooLinkedListImplDetails::Chunk::capacity ( ) const
inline

chunk capacity

Definition at line 67 of file RooLinkedList.cxx.

◆ chunkaddr()

const void * RooLinkedListImplDetails::Chunk::chunkaddr ( ) const
inline

return address of chunk

Definition at line 80 of file RooLinkedList.cxx.

◆ contains()

bool RooLinkedListImplDetails::Chunk::contains ( RooLinkedListElem el) const
inline

check if el is in this chunk

Definition at line 82 of file RooLinkedList.cxx.

◆ empty()

bool RooLinkedListImplDetails::Chunk::empty ( ) const
inline

chunk empty?

Definition at line 78 of file RooLinkedList.cxx.

◆ free()

Int_t RooLinkedListImplDetails::Chunk::free ( ) const
inline

chunk free elements

Definition at line 70 of file RooLinkedList.cxx.

◆ full()

bool RooLinkedListImplDetails::Chunk::full ( ) const
inline

chunk full?

Definition at line 76 of file RooLinkedList.cxx.

◆ operator=()

Chunk & RooLinkedListImplDetails::Chunk::operator= ( const Chunk )
private

◆ pop_free_elem()

RooLinkedListElem * RooLinkedListImplDetails::Chunk::pop_free_elem ( )
inline

pop a free element off the free list

Definition at line 85 of file RooLinkedList.cxx.

◆ push_free_elem()

void RooLinkedListImplDetails::Chunk::push_free_elem ( RooLinkedListElem el)
inline

push a free element back onto the freelist

Definition at line 96 of file RooLinkedList.cxx.

◆ size()

Int_t RooLinkedListImplDetails::Chunk::size ( ) const
inline

chunk occupied elements

Definition at line 72 of file RooLinkedList.cxx.

◆ szclass()

int RooLinkedListImplDetails::Chunk::szclass ( ) const
inline

return size class

Definition at line 74 of file RooLinkedList.cxx.

Member Data Documentation

◆ _chunk

RooLinkedListElem* RooLinkedListImplDetails::Chunk::_chunk
private

chunk from which elements come

Definition at line 105 of file RooLinkedList.cxx.

◆ _free

Int_t RooLinkedListImplDetails::Chunk::_free
private

length of free list

Definition at line 104 of file RooLinkedList.cxx.

◆ _freelist

RooLinkedListElem* RooLinkedListImplDetails::Chunk::_freelist
private

list of free elements

Definition at line 106 of file RooLinkedList.cxx.

◆ _sz

Int_t RooLinkedListImplDetails::Chunk::_sz
private

chunk capacity

Definition at line 103 of file RooLinkedList.cxx.


The documentation for this class was generated from the following file: