#include <arena.hpp>
Definition at line 60 of file arena.hpp.
◆ Arena()
◆ ~Arena()
| CaDiCaL::Arena::~Arena |
( |
| ) |
|
Definition at line 14 of file cadical_arena.cpp.
14 {
15 delete[] from.start;
16 delete[] to.start;
17}
◆ contains()
| bool CaDiCaL::Arena::contains |
( |
void * | p | ) |
const |
|
inline |
Definition at line 81 of file arena.hpp.
81 {
83 return (from.start <= c && c < from.top) ||
84 (to.start <= c && c < to.top);
85 }
◆ copy()
| char * CaDiCaL::Arena::copy |
( |
const char * | p, |
|
|
size_t | bytes ) |
|
inline |
Definition at line 92 of file arena.hpp.
92 {
93 char *res = to.top;
94 to.top += bytes;
97 return res;
98 }
#define CADICAL_assert(ignore)
◆ prepare()
| void CaDiCaL::Arena::prepare |
( |
size_t | bytes | ) |
|
Definition at line 19 of file cadical_arena.cpp.
19 {
20 LOG (
"preparing 'to' space of arena with %zd bytes", bytes);
22 to.top = to.start = new char[bytes];
23 to.end = to.start + bytes;
24}
◆ swap()
| void CaDiCaL::Arena::swap |
( |
| ) |
|
Definition at line 26 of file cadical_arena.cpp.
26 {
27 delete[] from.start;
28 LOG (
"delete 'from' space of arena with %zd bytes",
29 (size_t) (from.end - from.start));
30 from = to;
31 to.start = to.top = to.end = 0;
32}
◆ end
| char * CaDiCaL::Arena::end |
◆ start
| char* CaDiCaL::Arena::start |
◆ top
| char * CaDiCaL::Arena::top |
The documentation for this class was generated from the following files: