abc-master
|
#include <Alloc.h>
Public Types | |
enum | { Ref_Undef = UINT32_MAX } |
enum | { Unit_Size = sizeof(uint32_t) } |
typedef uint32_t | Ref |
Public Member Functions | |
RegionAllocator (uint32_t start_cap=1024 *1024) | |
~RegionAllocator () | |
uint32_t | size () const |
uint32_t | wasted () const |
Ref | alloc (int size) |
void | _free (int size) |
T & | operator[] (Ref r) |
const T & | operator[] (Ref r) const |
T * | lea (Ref r) |
const T * | lea (Ref r) const |
Ref | ael (const T *t) |
void | moveTo (RegionAllocator &to) |
Private Member Functions | |
void | capacity (uint32_t min_cap) |
Private Attributes | |
T * | memory |
uint32_t | sz |
uint32_t | cap |
uint32_t | wasted_ |
typedef uint32_t Minisat::RegionAllocator< T >::Ref |
anonymous enum |
anonymous enum |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
RegionAllocator< T >::Ref Minisat::RegionAllocator< T >::alloc | ( | int | size | ) |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |