#include <ogdf/lib/minisat/mtl/Alloc.h>
Public Types | |
enum | { Unit_Size = sizeof(uint32_t) } |
enum | { Ref_Undef = UINT_MAX } |
using | Ref = uint32_t |
Public Member Functions | |
RegionAllocator (uint32_t start_cap=1024 *1024) | |
~RegionAllocator () | |
Ref | ael (const T *t) |
Ref | alloc (int size) |
void | free (int size) |
T * | lea (Ref r) |
const T * | lea (Ref r) const |
void | moveTo (RegionAllocator &to) |
T & | operator[] (Ref r) |
const T & | operator[] (Ref r) const |
uint32_t | size () const |
uint32_t | wasted () const |
Private Member Functions | |
void | capacity (uint32_t min_cap) |
Private Attributes | |
uint32_t | cap |
T * | memory |
uint32_t | sz |
uint32_t | wasted_ |
using Minisat::Internal::RegionAllocator< T >::Ref = uint32_t |
|
inlineexplicit |
|
inline |
|
inline |
RegionAllocator< T >::Ref Minisat::Internal::RegionAllocator< T >::alloc | ( | int | size | ) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |