This class can be used to represent literal values. More...
#include <Literal.h>
Public Types | |
| typedef void | ReturnType |
| typedef Visitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const=0 |
| It call the visit method from the guest object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| Literal (const std::string &value) | |
| It initializes a new Literal. More... | |
| ~Literal () | |
| Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
| const std::string & | getValue () const |
| It returns the literal value. More... | |
| void | setValue (const std::string &v) |
| It sets the literal value. More... | |
Expression Re-implementation | |
Methods re-implemented from Expression. | |
| std::string | m_value |
| Literal expression. (Mandatory) More... | |
| Expression * | clone () const |
| It returns a clone of this object. More... | |
This class can be used to represent literal values.
A literal value is any part of a statement or expression that is to be used exactly as it is specified, rather than as a variable or other element. The Literal is used to encode literal scalar and geometric values.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
| te::fe::Literal::Literal | ( | const std::string & | value | ) |
It initializes a new Literal.
| value | The literal value. |
| te::fe::Literal::~Literal | ( | ) |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
|
virtual |
| const std::string & te::fe::Literal::getValue | ( | ) | const |
It returns the literal value.
| void te::fe::Literal::setValue | ( | const std::string & | v | ) |
It sets the literal value.
| v | The literal value. |
|
private |