Files
terminal-spreadsheet/src/celltree.h
2023-08-18 17:20:36 +02:00

21 lines
437 B
C

#ifndef CELLTREE_H
#define CELLTREE_H
#include "cell.h"
#include <stdbool.h>
/* TODO: implement red-black tree */
struct celltree {
struct cell *cell;
struct celltree *right;
struct celltree *left;
bool isRed;
};
void celltree_delete(struct celltree *root);
struct cell *celltree_search(struct celltree *root, size_t x, size_t y);
void celltree_insert(struct celltree **root, struct cell *c);
#endif