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

#include <allocator.h>

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

Public Types

using SetCompare = std::integral_constant< decltype(&SetCompareFn), &SetCompareFn >
 

Public Member Functions

 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
 

Protected Attributes

UintPtr start_
 
size_t size_
 

Detailed Description

Definition at line 18 of file allocator.h.

Member Typedef Documentation

◆ SetCompare

using broom::MemoryRegion::SetCompare = std::integral_constant<decltype(&SetCompareFn), &SetCompareFn>

Definition at line 54 of file allocator.h.

Constructor & Destructor Documentation

◆ MemoryRegion() [1/3]

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

Definition at line 25 of file allocator.h.

◆ MemoryRegion() [2/3]

broom::MemoryRegion::MemoryRegion ( UintPtr  start,
UintPtr  end 
)
inline

Definition at line 27 of file allocator.h.

◆ MemoryRegion() [3/3]

broom::MemoryRegion::MemoryRegion ( const void start,
const void end 
)
inline

Definition at line 31 of file allocator.h.

◆ ~MemoryRegion()

broom::MemoryRegion::~MemoryRegion ( )
default

Member Function Documentation

◆ AttemptGrow()

bool broom::MemoryRegion::AttemptGrow ( size_t  howmuch)
inline

Definition at line 40 of file allocator.h.

◆ End()

UintPtr broom::MemoryRegion::End ( ) const
inline

Definition at line 37 of file allocator.h.

◆ EndPtr()

void * broom::MemoryRegion::EndPtr ( ) const
inline

Definition at line 39 of file allocator.h.

◆ IncrementStart()

void broom::MemoryRegion::IncrementStart ( size_t  how_much)
inline

Definition at line 43 of file allocator.h.

◆ operator!=()

bool broom::MemoryRegion::operator!= ( const MemoryRegion other) const
inline

Definition at line 52 of file allocator.h.

◆ operator==()

bool broom::MemoryRegion::operator== ( const MemoryRegion other) const
inline

Definition at line 49 of file allocator.h.

◆ Size()

size_t broom::MemoryRegion::Size ( ) const
inline

Definition at line 35 of file allocator.h.

◆ Start()

UintPtr broom::MemoryRegion::Start ( ) const
inline

Definition at line 36 of file allocator.h.

◆ StartPtr()

void * broom::MemoryRegion::StartPtr ( ) const
inline

Definition at line 38 of file allocator.h.

Member Data Documentation

◆ size_

size_t broom::MemoryRegion::size_
protected

Definition at line 59 of file allocator.h.

◆ start_

UintPtr broom::MemoryRegion::start_
protected

Definition at line 58 of file allocator.h.


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