ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
MonoAllocator::Snapshot Class Reference

Description:

Stores the actual state of outer class MonoAllocator. Retrieved method MonoAllocator::TakeSnapshot and MonoAllocator::Reset(const Snapshot&) .

Definition at line 308 of file monoallocator.hpp.

#include <monoallocator.hpp>

Collaboration diagram for MonoAllocator::Snapshot:
[legend]

Public Method Index:

 Snapshot ()
 
 Snapshot (MonoAllocator *allocator)
 
bool IsValid ()
 

Field Details:

◆ actFill

char* actFill
private

Pointer to the first free byte in the current chunk

Definition at line 319 of file monoallocator.hpp.

◆ chunk

Chunk* chunk
private

The current chunk.

Definition at line 316 of file monoallocator.hpp.

Constructor(s) / Destructor Details::

◆ Snapshot() [1/2]

Snapshot ( MonoAllocator * allocator)
inline

Internal constructor which creates a snapshot from the current allocator.

Parameters
allocatorThe current chunk.

Definition at line 326 of file monoallocator.hpp.

◆ Snapshot() [2/2]

Snapshot ( )
inline

Default constructor.

Note
Default-constructed snapshots passed to method Reset(const Snapshot&) reset the whole of the monotonic allocator.

Definition at line 337 of file monoallocator.hpp.

Method Details:

◆ IsValid()

bool IsValid ( )
inline

Returns false if this snapshot was never initialized properly (default constructed and not copied over.

Returns
true if this is not a valid snapshot, false otherwise.

Definition at line 346 of file monoallocator.hpp.


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