Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
RangeList Class Reference

Public Member Functions

 RangeList ()
 
void Reset ()
 
template<class InsertPolicy >
void Insert (FreedBlock *freedBlock)
 
FreedBlockFind (size_t minSize)
 
void Remove (FreedBlock *freedBlock)
 
void Validate (uintptr_t id) const
 
bool IsEmpty () const
 
size_t FreeBlocks () const
 
size_t FreeBytes () const
 

Private Attributes

FreedBlock m_sentinel
 
size_t m_freeBlocks
 
size_t m_freeBytes
 

Detailed Description

Definition at line 153 of file headerless.cpp.

Constructor & Destructor Documentation

RangeList::RangeList ( )
inline

Definition at line 156 of file headerless.cpp.

Member Function Documentation

FreedBlock* RangeList::Find ( size_t  minSize)
inline
Returns
the first freed block of size >= minSize or 0 if none exists.

Definition at line 192 of file headerless.cpp.

size_t RangeList::FreeBlocks ( ) const
inline

Definition at line 247 of file headerless.cpp.

size_t RangeList::FreeBytes ( ) const
inline

Definition at line 252 of file headerless.cpp.

template<class InsertPolicy >
void RangeList::Insert ( FreedBlock freedBlock)
inline

Definition at line 170 of file headerless.cpp.

bool RangeList::IsEmpty ( ) const
inline

Definition at line 242 of file headerless.cpp.

void RangeList::Remove ( FreedBlock freedBlock)
inline

Definition at line 205 of file headerless.cpp.

void RangeList::Reset ( )
inline

Definition at line 161 of file headerless.cpp.

void RangeList::Validate ( uintptr_t  id) const
inline

Definition at line 216 of file headerless.cpp.

Member Data Documentation

size_t RangeList::m_freeBlocks
private

Definition at line 262 of file headerless.cpp.

size_t RangeList::m_freeBytes
private

Definition at line 263 of file headerless.cpp.

FreedBlock RangeList::m_sentinel
mutableprivate

Definition at line 260 of file headerless.cpp.


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