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.
 
Rama & operator= (const Rama &)
 Operador asignación.
 
bool operator== (const Rama &r2) const
 Comparison operator.
 
bool operator== (const double &d) const
 
Rama * getCopy (void) const
 
virtual ~Rama (void)
 Destructor.
 
void PutIzdo (Rama *i)
 
void PutDcho (Rama *j)
 
const Operando * GetData (void) const
 
Rama * getLeft (void) const
 
Rama * getRight (void) const
 
Clase GetClase (void) const
 
const std::string & StrClase (void) const
 
const Operando * DatoIzdo (void)
 
const Operando * DatoDcho (void)
 
int GetPrioridad (void) const
 
bool Evaluable (void) const
 Devuelve verdadero si la rama es evaluable.
 
bool EsToNum (void) const
 
const Operando & Opera (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 LexAlgebra & CreaLexico (void)
 Devuelve una referencia al léxico.
 
static Lexico & Lex (void)
 Devuelve una referencia al léxico.
 
static LexAlgebra & LexA (void)
 Devuelve una referencia al léxico.
 
static bool TieneLexico (void)
 
static NamedOperand * NuevaVar (const Variable &v)
 Creates the variable being passed as parameter.
 
static NamedOperand * NuevaVar (const std::string &palabra)
 Creates the variable which name is being passed as parameter. More...
 
static Variable * CalcDirVar (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 Operando * data
 
Rama * izdo
 
Rama * dcho
 

Friends

class ArbolExpr
 
class OpUnario
 
class OpBinario
 
class OpProd
 
class OpSuma
 
Rama * ContraeIzdo (Rama *)
 
Rama * ContraeDcho (Rama *)
 
Rama * distrib (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 Segnal * CalcularDireccion (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 LexAlgebra * ptr_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: