ALib C++ Framework
by
Library Version: 2605 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 934 of file monoallocator.hpp.

#include <monoallocator.hpp>

Collaboration diagram for alib::monomem::TMonoAllocator< TAllocator >::Resetter:
[legend]

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 935 of file monoallocator.hpp.

◆ snapshot

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

The snapshot taken on construction.

Definition at line 936 of file monoallocator.hpp.

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 940 of file monoallocator.hpp.

Here is the call graph for this function:

◆ ~Resetter()

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

Destructor. Resets the mono allocator given with construciton.

Definition at line 943 of file monoallocator.hpp.


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