xc
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
Expresion Class Referenceabstract
Inheritance diagram for Expresion:
Inheritance graph
[legend]
Collaboration diagram for Expresion:
Collaboration graph
[legend]

Public Types

typedef l_Expr::const_iterator const_iterator_segnales
 
typedef l_Expr::iterator iterator_segnales
 

Public Member Functions

 Expresion (void)
 Constructor por defecto.
 
 Expresion (const Expresion &other)
 Constructor de copia.
 
Expresionoperator= (const Expresion &other)
 Operador de asignación.
 
Expresionoperator= (const std::string &str)
 Operador de asignación.
 
bool Vacia (void) const
 Devuelve verdadero si la expresión está vacía.
 
bool Size (void) const
 Devuelve el tamaño de la expresión.
 
Expresion::l_Expr::const_iterator Begin (void) const
 Devuelve un iterador apuntando al principio de la lista de señales.
 
Expresion::l_Expr::const_iterator End (void) const
 Devuelve un iterador apuntando al final de la lista de señales.
 
void PonerDouble (const double &)
 Inserts a literal on the list, this functions exists to avoid calling PonerSegnal and to increment by error, the literal reference counter. More...
 
void PonerSegnal (const Segnal *)
 Inserta una señal en la lista.
 
bool Inicial (void)
 Devuelve verdadero si -La expresión está vacía. More...
 
- Public Member Functions inherited from ExprBase
 ExprBase (const bool &ET)
 Constructor por defecto.
 
virtual bool operator== (const ExprBase &) const
 Comparison operator.
 
bool operator!= (const ExprBase &other) const
 
bool ErrorTraduccion (void) const
 Devuelve verdadero si ha habido errores en la traducción.
 
- Public Member Functions inherited from ProtoExpresion
 ProtoExpresion (void)
 Constructor.
 

Protected Member Functions

void borra_lista (void)
 
void update_nueva_lista (void)
 
virtual void Traduce (std::istream &is)=0
 Crea la expresión a partir del istream que se pasa como parámetro.
 
void Traduce (const std::string &str)
 Crea la expresión a partir de la cadena de caracteres que se pasa como parámetro.
 

Friends

std::ostream & operator<< (std::ostream &stream, const Expresion &expr)
 Operador salida.
 
std::istream & operator>> (std::istream &is, Expresion &e)
 Operador entrada.
 

Additional Inherited Members

- 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...
 
- 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...
 
- Protected Attributes inherited from ExprBase
bool err_traduc
 Verdadero si se produce un error en la traducción.
 
- Static Protected Attributes inherited from ProtoExpresion
static LexAlgebraptr_lex = NULL
 

Member Function Documentation

◆ Inicial()

bool Expresion::Inicial ( void  )

Devuelve verdadero si -La expresión está vacía.

-El último valor es una de estas dos cosas

  • un paréntesis izquierdo.
  • un operador.

◆ PonerDouble()

void Expresion::PonerDouble ( const double &  d)

Inserts a literal on the list, this functions exists to avoid calling PonerSegnal and to increment by error, the literal reference counter.


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