X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/1b6152a8b901df0e8b57c35b9846a6e609b8b7df..3981ffa23945f8764b5bc4c790ff0f0947858010:/src/clave.h?ds=sidebyside diff --git a/src/clave.h b/src/clave.h index 7cf3ceb..81e24db 100644 --- a/src/clave.h +++ b/src/clave.h @@ -4,13 +4,19 @@ /* Clave para agregar a un arbol B */ #include "common.h" +#include 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