xc
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
Rama Class Reference
Inheritance diagram for Rama:
Inheritance graph
[legend]
Collaboration diagram for Rama:
Collaboration graph
[legend]

Public Member Functions

 Rama (void)
 Constructor por defecto.
 
 Rama (const double &d)
 Constructor.
 
 Rama (const Rama &)
 Constructor de copia.
 
Ramaoperator= (const Rama &)
 Operador asignación.
 
bool operator== (const Rama &r2) const
 Comparison operator.
 
bool operator== (const double &d) const
 
RamagetCopy (void) const
 
virtual ~Rama (void)
 Destructor.
 
void PutIzdo (Rama *i)
 
void PutDcho (Rama *j)
 
const OperandoGetData (void) const
 
RamagetLeft (void) const
 
RamagetRight (void) const
 
Clase GetClase (void) const
 
const std::string & StrClase (void) const
 
const OperandoDatoIzdo (void)
 
const OperandoDatoDcho (void)
 
int GetPrioridad (void) const
 
bool Evaluable (void) const
 Devuelve verdadero si la rama es evaluable.
 
bool EsToNum (void) const
 
const OperandoOpera (void)
 Ejecuta el operador de éste objeto.
 
const double & GetValor (void) const
 
void Asigna (Operando *po, const Rama *p)
 
void Borra (void)
 
void GetVariables (ConjVariables &cv) const
 
const std::string & GetFullString (void) const
 Devuelve una cadena de caracteres que representa a la expresión representando los literales con la máxima precisión posible. More...
 
- Public Member Functions inherited from ProtoExpresion
 ProtoExpresion (void)
 Constructor.
 

Static Public Member Functions

static void Opera (Rama *raiz)
 Ejecuta todos los operadores desde raíz.
 
- Static Public Member Functions inherited from ProtoExpresion
static LexAlgebraCreaLexico (void)
 Devuelve una referencia al léxico.
 
static LexicoLex (void)
 Devuelve una referencia al léxico.
 
static LexAlgebraLexA (void)
 Devuelve una referencia al léxico.
 
static bool TieneLexico (void)
 
static NamedOperandNuevaVar (const Variable &v)
 Creates the variable being passed as parameter.
 
static NamedOperandNuevaVar (const std::string &palabra)
 Creates the variable which name is being passed as parameter. More...
 
static VariableCalcDirVar (const std::string &nmb)
 Return a pointer to the variable which name is being passed as parameter. More...
 
static void Asigna (const std::string &palabra, const double &d)
 Assigns to the variable named 'palabra' the value being passed as parameter. More...
 
static void DesAsigna (const std::string &palabra)
 Removes the assignment to the variable which name is being passed as parameter. More...
 

Protected Attributes

const Operandodata
 
Ramaizdo
 
Ramadcho
 

Friends

class ArbolExpr
 
class OpUnario
 
class OpBinario
 
class OpProd
 
class OpSuma
 
RamaContraeIzdo (Rama *)
 
RamaContraeDcho (Rama *)
 
Ramadistrib (Rama *raiz)
 Aplica la propiedad distributiva a través del arbol.
 
std::ostream & operator<< (std::ostream &stream, const Rama &e)
 

Additional Inherited Members

- Static Protected Member Functions inherited from ProtoExpresion
static SegnalCalcularDireccion (const std::string &nmb)
 Return a pointer to the signal which name is being passed as parameter. More...
 
- Static Protected Attributes inherited from ProtoExpresion
static LexAlgebraptr_lex = NULL
 

Member Function Documentation

◆ GetFullString()

const std::string & Rama::GetFullString ( void  ) const

Devuelve una cadena de caracteres que representa a la expresión representando los literales con la máxima precisión posible.


The documentation for this class was generated from the following files: