X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/6a4238b2894a1cf20a5b8ccb0575f018ae25a5b3..04db779a8aee626e80fb2d403cd22c7924babb44:/src/btree_data.cpp diff --git a/src/btree_data.cpp b/src/btree_data.cpp index bc0ce93..bf92909 100644 --- a/src/btree_data.cpp +++ b/src/btree_data.cpp @@ -63,6 +63,22 @@ bool BTreeData::operator == (const BTreeData &data) const return (*clave) == (*(data.clave)); } +bool BTreeData::Abrev (BTreeData *anterior) +{ + if (anterior == NULL) return false; + + ClaveVariable *c = (ClaveVariable *)clave; + return c->Abrev (dynamic_cast(anterior->getClave ())); +} + +bool BTreeData::DesAbrev (BTreeData *anterior) +{ + if (anterior == NULL) return false; + + ClaveVariable *c = (ClaveVariable *)clave; + return c->DesAbrev (dynamic_cast(anterior->getClave ())); +} + BTreeLeafData::BTreeLeafData (uchar *node, int key_type) { if (key_type == BTree::KEY_FIXED)