Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
AllocationCluster::Storage Struct Reference

Description

maintaining the Allocation

Definition at line 93 of file allocation-cluster.hpp.

Public Attributes

void * pos {nullptr}
 
size_t rest {0}
 

Public Member Functions

auto bytePos ()
 
void * allot (size_t bytes, size_t alignment)
 
void adjustPos (int offset)
 
bool hasReserve (int offset) const
 
bool matches_last_allocation (void const *loc, size_t siz) const
 

Member Function Documentation

◆ bytePos()

auto bytePos ( )
inline

Definition at line 98 of file allocation-cluster.hpp.

References AllocationCluster::Storage::pos.

Referenced by AllocationCluster::Storage::adjustPos(), and AllocationCluster::Storage::allot().

+ Here is the caller graph for this function:

◆ allot()

void * allot ( size_t  bytes,
size_t  alignment 
)
inline

Definition at line 101 of file allocation-cluster.hpp.

References AllocationCluster::Storage::bytePos(), AllocationCluster::Storage::pos, and AllocationCluster::Storage::rest.

Referenced by AllocationCluster::allotMemory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adjustPos()

void adjustPos ( int  offset)
inline
Parameters
offset
Warning
be sure a negative offset is properly limited

Definition at line 299 of file allocation-cluster.hpp.

References AllocationCluster::Storage::bytePos(), AllocationCluster::Storage::hasReserve(), AllocationCluster::Storage::pos, and AllocationCluster::Storage::rest.

Referenced by AllocationCluster::doAdjust().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasReserve()

bool hasReserve ( int  offset) const
inline

Definition at line 308 of file allocation-cluster.hpp.

Referenced by AllocationCluster::Storage::adjustPos(), and AllocationCluster::canAdjust().

+ Here is the caller graph for this function:

◆ matches_last_allocation()

bool matches_last_allocation ( void const *  loc,
size_t  siz 
) const
inline

Definition at line 314 of file allocation-cluster.hpp.

Referenced by AllocationCluster::canAdjust().

+ Here is the caller graph for this function:

Member Data Documentation

◆ pos

◆ rest

+ Collaboration diagram for AllocationCluster::Storage:

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