ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::monomem::Snapshot Class Reference

Description:

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

Definition at line 103 of file monoallocator.inl.

Public Method Index:

constexpr Snapshot () noexcept
constexpr bool IsValid () noexcept

Protected Field Index:

char * actFill
 Pointer to the first free byte in the current buffer.
detail::Bufferbuffer
 The current buffer.

Protected Method Index:

constexpr Snapshot (detail::Buffer *pBuffer, char *pFill) noexcept

Field Details:

◆ actFill

char* alib::monomem::Snapshot::actFill
protected

Pointer to the first free byte in the current buffer.

Definition at line 111 of file monoallocator.inl.

◆ buffer

detail::Buffer* alib::monomem::Snapshot::buffer
protected

The current buffer.

Definition at line 110 of file monoallocator.inl.

Constructor(s) / Destructor Details:

◆ Snapshot() [1/2]

alib::monomem::Snapshot::Snapshot ( detail::Buffer * pBuffer,
char * pFill )
inlineconstexprprotectednoexcept

Internal constructor.

Parameters
pBufferThe current buffer.
pFillThe current fill of buffer.

Definition at line 116 of file monoallocator.inl.

◆ Snapshot() [2/2]

alib::monomem::Snapshot::Snapshot ( )
inlineconstexprnoexcept

Default constructor.

Note
Default-constructed snapshots passed to method void Reset(Snapshot)  do reset the monotonic allocator to its initial state after construction. All monotonically allocated memory is considered 'freed' then.

Definition at line 127 of file monoallocator.inl.

Method Details:

◆ IsValid()

bool alib::monomem::Snapshot::IsValid ( )
inlineconstexprnoexcept

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 134 of file monoallocator.inl.


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