ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
No Matches
RecyclerPrivate< TSidiNode > Struct Template Reference


template<typename TSidiNode>
struct alib::monomem::detail::RecyclerPrivate< TSidiNode >

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 ).

Template Parameters
TSidiNodeThe type to recycle. Has to be derived of lang::SidiNodeBase .

Definition at line 179 of file recycler.inl.

Inheritance diagram for RecyclerPrivate< TSidiNode >:
Collaboration diagram for RecyclerPrivate< TSidiNode >:

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)

Constructor(s) / Destructor Details::

◆ RecyclerPrivate() [1/3]

template<typename TSidiNode >
RecyclerPrivate ( )

Empty constructor, selected when TRecycling equals to Recycling::Private .

Definition at line 183 of file recycler.inl.

◆ RecyclerPrivate() [2/3]

template<typename TSidiNode >
RecyclerPrivate ( const RecyclerPrivate< TSidiNode > & )

Copy constructor. Does not copy the recycle node, but clears this one.

Definition at line 188 of file recycler.inl.

◆ RecyclerPrivate() [3/3]

template<typename TSidiNode >
RecyclerPrivate ( RecyclerPrivate< TSidiNode > && move)

Move constructor. Grabs the recyclables from the moved one and sets moved to nulled.

moveThe private recycler to move.

Definition at line 194 of file recycler.inl.

Method Details:

◆ disposeRecyclablesIfPrivate()

template<typename TSidiNode >
void disposeRecyclablesIfPrivate ( )

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.

Here is the call graph for this function:

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