return out;
}
+bool BTreeData::operator < (const BTreeData &data) const
+{
+ return (*clave) < (*(data.clave));
+}
+
+
BTreeLeafData::~BTreeLeafData ()
{
}
{
return clave->ToArray ();
}
+
/** Dato a guardar en los nodos */
class BTreeData {
public:
- BTreeData () {}
+ BTreeData () { clave = NULL; }
BTreeData (uchar *node);
virtual ~BTreeData ();
virtual uint Size ();
virtual uchar *ToArray ();
+
+
+ bool operator < (const BTreeData &data) const;
+ virtual operator std::string () const {
+ if (clave) {
+ return (*clave);
+ }
+ return "NoKey";
+ }
protected:
Clave *clave;
uint hijo;