ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Methods | List of all members
RecyclerPrivate< TSidiNode > Struct Template Reference
Inheritance diagram for RecyclerPrivate< TSidiNode >:
[legend]
Collaboration diagram for RecyclerPrivate< TSidiNode >:
[legend]

Class Description

template<typename TSidiNode>
struct aworx::lib::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 detail::SidiNodeBase.

Definition at line 179 of file recycler.inl.

Public Methods

 RecyclerPrivate ()
 
 RecyclerPrivate (const RecyclerPrivate &)
 
 RecyclerPrivate (RecyclerPrivate &&move)
 
void disposeRecyclablesIfPrivate ()
 
- Public Methods inherited from RecyclerPSBase< TSidiNode, lib::detail::SidiListHelper< TSidiNode > >
 RecyclerPSBase ()=default
 
 RecyclerPSBase (lib::detail::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)
 

Additional Inherited Members

- Protected Fields inherited from RecyclerPSBase< TSidiNode, lib::detail::SidiListHelper< TSidiNode > >
lib::detail::SidiListHelper< TSidiNode > recyclables
 

Constructor & Destructor Documentation

◆ RecyclerPrivate() [1/3]

RecyclerPrivate ( )
inline

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

Definition at line 183 of file recycler.inl.

◆ RecyclerPrivate() [2/3]

RecyclerPrivate ( const RecyclerPrivate< TSidiNode > &  )
inline

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

Definition at line 188 of file recycler.inl.

◆ RecyclerPrivate() [3/3]

RecyclerPrivate ( RecyclerPrivate< TSidiNode > &&  move)
inline

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

Parameters
moveThe private recycler to move.

Definition at line 194 of file recycler.inl.

Member Function Documentation

◆ disposeRecyclablesIfPrivate()

void disposeRecyclablesIfPrivate ( )
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.

Here is the call graph for this function:

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