X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/1d533a2f726534cd02f1c7ba71f0fd454f70e16f..a86378ad0949572fd260f105f3e02f2c3e1370a0:/src/btree_data.cpp diff --git a/src/btree_data.cpp b/src/btree_data.cpp index 27825d7..dd6f709 100644 --- a/src/btree_data.cpp +++ b/src/btree_data.cpp @@ -32,6 +32,12 @@ uchar* BTreeData::ToArray () return out; } +bool BTreeData::operator < (const BTreeData &data) const +{ + return (*clave) < (*(data.clave)); +} + + BTreeLeafData::~BTreeLeafData () { } @@ -45,3 +51,4 @@ uchar* BTreeLeafData::ToArray () { return clave->ToArray (); } +