return (*clave) < (*(data.clave));
}
+bool BTreeData::operator == (const BTreeData &data) const
+{
+ if (!data.clave) return false;
+
+ return (*clave) == (*(data.clave));
+}
BTreeLeafData::~BTreeLeafData ()
{
void setChild (uint c) { hijo = c; }
bool operator < (const BTreeData &data) const;
+ bool operator == (const BTreeData &data) const;
virtual operator std::string () const {
std::string out = (*clave);
std::stringstream ss;
virtual Clave *Clone () const = 0;
virtual bool operator < (const Clave &k) const = 0;
+ virtual bool operator == (const Clave &k) const = 0;
virtual operator std::string () const = 0;
};
return data < ((ClaveFija&)c).data;
}
+bool ClaveFija::operator == (const Clave &c) const
+{
+ return data == ((ClaveFija&)c).data;
+}
Clave *Clone () const;
virtual bool operator < (const Clave &c) const;
+ virtual bool operator == (const Clave &c) const;
virtual operator std::string () const {
std::string out;
std::stringstream ss;