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 void * | chunkaddr () 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... | |
RooLinkedListElem * | pop_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... | |
Chunk & | operator= (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... | |
|
inline |
constructor
Definition at line 55 of file RooLinkedList.cxx.
|
inline |
destructor
Definition at line 65 of file RooLinkedList.cxx.
|
private |
forbid copying
|
inline |
chunk capacity
Definition at line 67 of file RooLinkedList.cxx.
|
inline |
return address of chunk
Definition at line 80 of file RooLinkedList.cxx.
|
inline |
check if el is in this chunk
Definition at line 82 of file RooLinkedList.cxx.
|
inline |
chunk empty?
Definition at line 78 of file RooLinkedList.cxx.
|
inline |
chunk free elements
Definition at line 70 of file RooLinkedList.cxx.
|
inline |
chunk full?
Definition at line 76 of file RooLinkedList.cxx.
|
inline |
pop a free element off the free list
Definition at line 85 of file RooLinkedList.cxx.
|
inline |
push a free element back onto the freelist
Definition at line 96 of file RooLinkedList.cxx.
|
inline |
chunk occupied elements
Definition at line 72 of file RooLinkedList.cxx.
|
inline |
return size class
Definition at line 74 of file RooLinkedList.cxx.
|
private |
chunk from which elements come
Definition at line 105 of file RooLinkedList.cxx.
|
private |
length of free list
Definition at line 104 of file RooLinkedList.cxx.
|
private |
list of free elements
Definition at line 106 of file RooLinkedList.cxx.
|
private |
chunk capacity
Definition at line 103 of file RooLinkedList.cxx.