#include <SolverTypes.h>
|
enum | { Unit_Size = RegionAllocator<uint32_t>::Unit_Size
} |
|
Definition at line 226 of file SolverTypes.h.
Minisat::ClauseAllocator::ClauseAllocator |
( |
uint32_t |
start_cap | ) |
|
|
inline |
Minisat::ClauseAllocator::ClauseAllocator |
( |
| ) |
|
|
inline |
CRef Minisat::ClauseAllocator::ael |
( |
const Clause * |
t | ) |
|
|
inline |
Definition at line 271 of file SolverTypes.h.
271 {
return ra.
ael((uint32_t*)t); }
RegionAllocator< uint32_t > ra
CRef Minisat::ClauseAllocator::alloc |
( |
const vec< Lit > & |
ps, |
|
|
bool |
learnt = false |
|
) |
| |
|
inline |
Definition at line 245 of file SolverTypes.h.
247 assert(
sizeof(Lit) ==
sizeof(uint32_t));
248 assert(
sizeof(
float) ==
sizeof(uint32_t));
251 new (
lea(cid)) Clause(ps, use_extra, learnt);
RegionAllocator< uint32_t >::Ref CRef
static uint32_t clauseWord32Size(int size, bool has_extra)
RegionAllocator< uint32_t > ra
CRef Minisat::ClauseAllocator::alloc |
( |
const Clause & |
from | ) |
|
|
inline |
Definition at line 256 of file SolverTypes.h.
260 new (
lea(cid)) Clause(from, use_extra);
RegionAllocator< uint32_t >::Ref CRef
static uint32_t clauseWord32Size(int size, bool has_extra)
RegionAllocator< uint32_t > ra
static uint32_t Minisat::ClauseAllocator::clauseWord32Size |
( |
int |
size, |
|
|
bool |
has_extra |
|
) |
| |
|
inlinestaticprivate |
Definition at line 230 of file SolverTypes.h.
231 return (
sizeof(Clause) + (
sizeof(Lit) * (
size + (
int)has_extra))) /
sizeof(uint32_t); }
void Minisat::ClauseAllocator::free |
( |
CRef |
cid | ) |
|
|
inline |
Definition at line 273 of file SolverTypes.h.
static uint32_t clauseWord32Size(int size, bool has_extra)
Clause & operator[](CRef r)
RegionAllocator< uint32_t > ra
Definition at line 269 of file SolverTypes.h.
269 {
return (Clause*)
ra.
lea(r); }
RegionAllocator< uint32_t > ra
const Clause* Minisat::ClauseAllocator::lea |
( |
CRef |
r | ) |
const |
|
inline |
Definition at line 270 of file SolverTypes.h.
270 {
return (Clause*)
ra.
lea(r);; }
RegionAllocator< uint32_t > ra
Definition at line 241 of file SolverTypes.h.
void moveTo(RegionAllocator &to)
RegionAllocator< uint32_t > ra
Clause& Minisat::ClauseAllocator::operator[] |
( |
CRef |
r | ) |
|
|
inline |
Definition at line 267 of file SolverTypes.h.
267 {
return (Clause&)
ra[r]; }
RegionAllocator< uint32_t > ra
const Clause& Minisat::ClauseAllocator::operator[] |
( |
CRef |
r | ) |
const |
|
inline |
Definition at line 268 of file SolverTypes.h.
268 {
return (Clause&)
ra[r]; }
RegionAllocator< uint32_t > ra
Definition at line 279 of file SolverTypes.h.
283 if (c.reloced()) { cr = c.relocation();
return; }
Clause & operator[](CRef r)
uint32_t Minisat::ClauseAllocator::size |
( |
void |
| ) |
const |
|
inline |
uint32_t Minisat::ClauseAllocator::wasted |
( |
| ) |
const |
|
inline |
bool Minisat::ClauseAllocator::extra_clause_field |
The documentation for this class was generated from the following file: