X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/57dbb7df8973a3e0c0c570c1eae9d84802e02bd9..HEAD:/src/clave.h diff --git a/src/clave.h b/src/clave.h index c0f3a30..cbf0cc4 100644 --- a/src/clave.h +++ b/src/clave.h @@ -10,6 +10,9 @@ class Clave { public: virtual ~Clave () {} + void SetBlockData (int i) { block_data = i; } + uint GetBlockData () { return block_data; } + /** Retorna el tamaƱo en bytes que ocupa la clave */ virtual uint Size () const = 0; /** Retorna un array de bytes de Size() de longitud. @@ -28,6 +31,8 @@ class Clave { virtual bool operator < (const Clave &k) const = 0; virtual bool operator == (const Clave &k) const = 0; virtual operator std::string () const = 0; + protected: + uint block_data; }; #endif