X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/2ab8041933e77875de62bc73e76febc528af258e..f0a17b3d23f3f277957d3e97ac1c7c1869d6d4cc:/src/clave_variable.h?ds=inline diff --git a/src/clave_variable.h b/src/clave_variable.h index fbe5011..e568451 100644 --- a/src/clave_variable.h +++ b/src/clave_variable.h @@ -8,7 +8,7 @@ /** Representa una clave de longitud variable. * - * \TODO Usar abreviaciones + * \todo Usar abreviaciones */ class ClaveVariable : public Clave { public : @@ -20,16 +20,16 @@ class ClaveVariable : public Clave { uchar *ToArray () const; Clave *Clone () const; + bool Abrev (ClaveVariable *c); + bool DesAbrev (ClaveVariable *c); + 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; + return data; } private: + std::string abreviar(std::string &primera, std::string &actual, int &iguales); std::string data; };