X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/a57a70eab1f0b259f3b488a58e1812b262455b33..44c4c40e48cc4a72e81e0af80842738c45d6116f:/src/clave_fija.h?ds=inline diff --git a/src/clave_fija.h b/src/clave_fija.h index aa6e712..7b715a9 100644 --- a/src/clave_fija.h +++ b/src/clave_fija.h @@ -3,6 +3,8 @@ #define _CLAVE_FIJA_H_ #include "clave.h" +#include +#include class ClaveFija : public Clave { public : @@ -12,7 +14,17 @@ class ClaveFija : public Clave { uint Size () const; uchar *ToArray () const; + 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; + ss << data; + ss >> out; + return out; + } private: int data; };