Pyrogenesis  trunk
Public Member Functions | Private Attributes | List of all members
RangeList Class Reference
Collaboration diagram for RangeList:
Collaboration graph
[legend]

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
 

Constructor & Destructor Documentation

RangeList::RangeList ( )
inline

Member Function Documentation

FreedBlock* RangeList::Find ( size_t  minSize)
inline
Returns
the first freed block of size >= minSize or 0 if none exists.
size_t RangeList::FreeBlocks ( ) const
inline
size_t RangeList::FreeBytes ( ) const
inline
template<class InsertPolicy >
void RangeList::Insert ( FreedBlock freedBlock)
inline
bool RangeList::IsEmpty ( ) const
inline
void RangeList::Remove ( FreedBlock freedBlock)
inline
void RangeList::Reset ( )
inline
void RangeList::Validate ( uintptr_t  id) const
inline

Member Data Documentation

size_t RangeList::m_freeBlocks
private
size_t RangeList::m_freeBytes
private
FreedBlock RangeList::m_sentinel
mutableprivate

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