virtual uchar *ToArray () const;
Clave* getClave () { return clave; }
+ uint getChild () { return hijo; }
bool operator < (const BTreeData &data) const;
virtual operator std::string () const {
std::string out = (*clave);
std::stringstream ss;
- ss << "(" << out << ") ";
- ss << "[" << hijo << "]";
+ ss << "(" << out ;
+ ss << ")" << "[" << hijo << "]";
ss >> out;
return out;
}
class BTreeChildData:public BTreeData {
public:
- BTreeChildData (uint child):BTreeData () { hijo = child; }
+ BTreeChildData (uint child):BTreeData () { hijo = child; clave = NULL; }
BTreeChildData (uchar *node);
virtual ~BTreeChildData ();