/* Clave para agregar a un arbol B */
#include "common.h"
+#include <string>
class Clave {
public:
virtual ~Clave () {}
- virtual uint Size () = 0;
- virtual uchar *ToArray () = 0;
+ virtual uint Size () const = 0;
+ virtual uchar *ToArray () const = 0;
+ 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;
};
#endif