| 20 | /* Method implementations */ |
| 21 | |
| 22 | PyObject * |
| 23 | BPlusTree_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { |
| 24 | BPlusTree *self = PyObject_GC_New(BPlusTree, type); |
| 25 | if (self != NULL) { |
| 26 | self->root = NULL; |
| 27 | self->leaves = NULL; |
| 28 | self->capacity = DEFAULT_CAPACITY; |
| 29 | self->min_keys = DEFAULT_CAPACITY / 2; |
| 30 | self->size = 0; |
| 31 | self->modification_count = 0; |
| 32 | PyObject_GC_Track(self); |
| 33 | } |
| 34 | return (PyObject *)self; |
| 35 | } |
| 36 | |
| 37 | int |
| 38 | BPlusTree_init(BPlusTree *self, PyObject *args, PyObject *kwds) { |
nothing calls this directly
no outgoing calls
no test coverage detected