Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
Public Member Functions | List of all members
broom::MemorySpace Class Reference

#include <allocator.h>

Inheritance diagram for broom::MemorySpace:
Inheritance graph
[legend]
Collaboration diagram for broom::MemorySpace:
Collaboration graph
[legend]

Public Member Functions

 MemorySpace (const void *start, size_t size)
 
 ~MemorySpace ()=default
 
UintPtr Top () const
 
UintPtr Allocate (size_t size)
 
void Fill ()
 
size_t RemainingBytes () const
 
bool IsValid () const
 
- Public Member Functions inherited from broom::MemoryRegion
 MemoryRegion (const void *start, size_t size)
 
 MemoryRegion (UintPtr start, UintPtr end)
 
 MemoryRegion (const void *start, const void *end)
 
 ~MemoryRegion ()=default
 
size_t Size () const
 
UintPtr Start () const
 
UintPtr End () const
 
voidStartPtr () const
 
voidEndPtr () const
 
bool AttemptGrow (size_t howmuch)
 
void IncrementStart (size_t how_much)
 
bool operator== (const MemoryRegion &other) const
 
bool operator!= (const MemoryRegion &other) const
 

Additional Inherited Members

- Public Types inherited from broom::MemoryRegion
using SetCompare = std::integral_constant< decltype(&SetCompareFn), &SetCompareFn >
 
- Protected Attributes inherited from broom::MemoryRegion
UintPtr start_
 
size_t size_
 

Detailed Description

Definition at line 72 of file allocator.h.

Constructor & Destructor Documentation

◆ MemorySpace()

broom::MemorySpace::MemorySpace ( const void start,
size_t  size 
)
inline

Definition at line 74 of file allocator.h.

◆ ~MemorySpace()

broom::MemorySpace::~MemorySpace ( )
default

Member Function Documentation

◆ Allocate()

UintPtr broom::MemorySpace::Allocate ( size_t  size)
inline

Definition at line 81 of file allocator.h.

◆ Fill()

void broom::MemorySpace::Fill ( )
inline

Definition at line 98 of file allocator.h.

◆ IsValid()

bool broom::MemorySpace::IsValid ( ) const
inline

Definition at line 101 of file allocator.h.

◆ RemainingBytes()

size_t broom::MemorySpace::RemainingBytes ( ) const
inline

Definition at line 99 of file allocator.h.

◆ Top()

UintPtr broom::MemorySpace::Top ( ) const
inline

Definition at line 78 of file allocator.h.


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