ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Methods | Private Fields | List of all members
MonoAllocator::Snapshot Class Reference

#include <monoallocator.hpp>

Collaboration diagram for MonoAllocator::Snapshot:
[legend]

Class Description

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

Definition at line 316 of file monoallocator.hpp.

Public Methods

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

Private Fields

char * actFill
 
Chunkchunk
 

Constructor & Destructor Documentation

◆ Snapshot() [1/2]

Snapshot ( MonoAllocator allocator)
inline

Internal constructor which creates a snapshot from the current allocator.

Parameters
allocatorThe current chunk.

Definition at line 334 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 345 of file monoallocator.hpp.

Member Function Documentation

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

Member Data Documentation

◆ actFill

char* actFill
private

Pointer to the first free byte in the current chunk

Definition at line 327 of file monoallocator.hpp.

◆ chunk

Chunk* chunk
private

The current chunk.

Definition at line 324 of file monoallocator.hpp.


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