src/sat/bsat/satVec.h File Reference
#include <stdlib.h>
Go to the source code of this file.
Typedef Documentation
Function Documentation
static int* veci_begin |
( |
veci * |
v |
) |
[inline, static] |
static void veci_delete |
( |
veci * |
v |
) |
[inline, static] |
static void veci_new |
( |
veci * |
v |
) |
[inline, static] |
static void veci_push |
( |
veci * |
v, |
|
|
int |
e | |
|
) |
| | [inline, static] |
Definition at line 45 of file satVec.h.
00046 {
00047 if (v->size == v->cap) {
00048 int newsize = v->cap * 2;
00049 v->ptr = (int*)realloc(v->ptr,sizeof(int)*newsize);
00050 v->cap = newsize; }
00051 v->ptr[v->size++] = e;
00052 }
static void veci_resize |
( |
veci * |
v, |
|
|
int |
k | |
|
) |
| | [inline, static] |
static int veci_size |
( |
veci * |
v |
) |
[inline, static] |
static void** vecp_begin |
( |
vecp * |
v |
) |
[inline, static] |
static void vecp_delete |
( |
vecp * |
v |
) |
[inline, static] |
static void vecp_new |
( |
vecp * |
v |
) |
[inline, static] |
Definition at line 63 of file satVec.h.
00063 {
00064 v->size = 0;
00065 v->cap = 4;
00066 v->ptr = (void**)malloc(sizeof(void*)*v->cap);
00067 }
static void vecp_push |
( |
vecp * |
v, |
|
|
void * |
e | |
|
) |
| | [inline, static] |
Definition at line 73 of file satVec.h.
00074 {
00075 if (v->size == v->cap) {
00076 int newsize = v->cap * 2;
00077 v->ptr = (void**)realloc(v->ptr,sizeof(void*)*newsize);
00078 v->cap = newsize; }
00079 v->ptr[v->size++] = e;
00080 }
static void vecp_resize |
( |
vecp * |
v, |
|
|
int |
k | |
|
) |
| | [inline, static] |
static int vecp_size |
( |
vecp * |
v |
) |
[inline, static] |