X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/2ab8041933e77875de62bc73e76febc528af258e..ea5776d090486ba7895940545e8dff58d558a7d3:/src/clave_variable.h?ds=sidebyside diff --git a/src/clave_variable.h b/src/clave_variable.h index fbe5011..224f4e0 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 : @@ -18,19 +18,21 @@ class ClaveVariable : public Clave { uint Size () const; uchar *ToArray () const; + uchar *ToRaw (uint &size) 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; + std::string raw_data; }; #endif