This class models a literal value. More...
#include <Literal.h>
Public Types | |
typedef void | ReturnType |
typedef QueryVisitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
Expression * | clone () const |
It creates a new copy of this expression. More... | |
te::dt::AbstractData * | getValue () const |
It returns the value associated to the literal. More... | |
TE_DEFINE_VISITABLE | Literal (te::dt::AbstractData *value) |
Constructor. More... | |
Literal (const te::dt::AbstractData &value) | |
Constructor. More... | |
Literal (const Literal &rhs) | |
Copy constructor. More... | |
Literal & | operator= (const Literal &rhs) |
void | setValue (te::dt::AbstractData *v) |
It sets the value associated to the literal. More... | |
virtual | ~Literal () |
Virtual destructor. More... | |
Protected Attributes | |
std::auto_ptr< te::dt::AbstractData > | m_value |
This class models a literal value.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
TE_DEFINE_VISITABLE te::da::Literal::Literal | ( | te::dt::AbstractData * | value | ) |
Constructor.
value | The value to be assigned to the literal. The literal takes its ownership. |
te::da::Literal::Literal | ( | const te::dt::AbstractData & | value | ) |
Constructor.
value | The value to be assigned to the literal. |
te::da::Literal::Literal | ( | const Literal & | rhs | ) |
Copy constructor.
|
virtual |
Virtual destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
virtual |
It creates a new copy of this expression.
Implements te::da::Expression.
Reimplemented in te::da::LiteralBool, te::da::LiteralByteArray, te::da::LiteralDateTime, te::da::LiteralDouble, te::da::LiteralGeom, te::da::LiteralInt16, te::da::LiteralInt32, te::da::LiteralInt64, and te::da::LiteralString.
te::dt::AbstractData* te::da::Literal::getValue | ( | ) | const |
It returns the value associated to the literal.
void te::da::Literal::setValue | ( | te::dt::AbstractData * | v | ) |
It sets the value associated to the literal.
v | The value to be assigned to the literal. The literal takes its ownership. |
|
protected |