ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::monomem::TMonoAllocator< TAllocator >::Resetter Struct Reference

Description:

template<typename TAllocator>
struct alib::monomem::TMonoAllocator< TAllocator >::Resetter

This is a simple helper-type following the RAII idiom . On construction a snapshot of the given mono allocator is taken and the allocator is reset to the state on destruction.

Definition at line 941 of file monoallocator.inl.

Public Field Index:

TMonoAllocatorMA
 The mono allocator to reset on destruction.
Snapshot snapshot
 The snapshot taken on construction.

Public Method Index:

 Resetter (TMonoAllocator &ma)
 ~Resetter ()
 Destructor. Resets the mono allocator given with construciton.

Field Details:

◆ MA

template<typename TAllocator>
TMonoAllocator& alib::monomem::TMonoAllocator< TAllocator >::Resetter::MA

The mono allocator to reset on destruction.

Definition at line 942 of file monoallocator.inl.

◆ snapshot

template<typename TAllocator>
Snapshot alib::monomem::TMonoAllocator< TAllocator >::Resetter::snapshot

The snapshot taken on construction.

Definition at line 943 of file monoallocator.inl.

Constructor(s) / Destructor Details:

◆ Resetter()

template<typename TAllocator>
alib::monomem::TMonoAllocator< TAllocator >::Resetter::Resetter ( TMonoAllocator & ma)
inline

Constructor.

Parameters
maThe mono allocator to reset on destruction.

Definition at line 947 of file monoallocator.inl.

◆ ~Resetter()

template<typename TAllocator>
alib::monomem::TMonoAllocator< TAllocator >::Resetter::~Resetter ( )
inline

Destructor. Resets the mono allocator given with construciton.

Definition at line 950 of file monoallocator.inl.


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