Implements internal recycling interface. Used by container types of module ALib Memory that use private recycling (when their template parameter TRecycling evaluates to Recycling::Private ).
TSidiNode | The type to recycle. Has to be derived of lang::SidiNodeBase . |
Definition at line 179 of file recycler.inl.
Public Method Index: | |
RecyclerPrivate () | |
RecyclerPrivate (const RecyclerPrivate &) | |
RecyclerPrivate (RecyclerPrivate &&move) | |
void | disposeRecyclablesIfPrivate () |
Public Method Index: inherited from RecyclerPSBase< TSidiNode, lang::SidiListHelper< TSidiNode > > | |
RecyclerPSBase ()=default | |
RecyclerPSBase (lang::SidiListHelper< TSidiNode > sharedRecyclables) | |
integer | count () const |
TSidiNode * | get () |
void | recycle (TSidiNode *elem) |
void | recycle (TSidiNode *first, TSidiNode *last) |
void | recycleChunk (TChunk *chunk, size_t count) |
|
inline |
Empty constructor, selected when TRecycling equals to Recycling::Private .
Definition at line 183 of file recycler.inl.
|
inline |
Copy constructor. Does not copy the recycle node, but clears this one.
Definition at line 188 of file recycler.inl.
|
inline |
Move constructor. Grabs the recyclables from the moved one and sets moved to nulled.
move | The private recycler to move. |
Definition at line 194 of file recycler.inl.
|
inline |
As the method name indicates, this implementation disposes the recyclables. This method is invoked by Reset() methods of containers which indicate that the monotonic memory is about to be reset likewise.
Definition at line 203 of file recycler.inl.