MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / BPlusTree_new

Function BPlusTree_new

python/bplustree_c_src/bplustree_module.c:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20/* Method implementations */
21
22PyObject *
23BPlusTree_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
37int
38BPlusTree_init(BPlusTree *self, PyObject *args, PyObject *kwds) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected