This class models a literal value. More...
#include <Literal.h>
  
 Public Types | |
| typedef R | 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::da::Literal::Literal | ( | te::dt::AbstractData * | value | ) | 
Constructor.
| value | The value to be assigned to the literal. The literal takes its ownership. | 
Definition at line 30 of file Literal.cpp.
| te::da::Literal::Literal | ( | const te::dt::AbstractData & | value | ) | 
Constructor.
| value | The value to be assigned to the literal. | 
Definition at line 35 of file Literal.cpp.
| te::da::Literal::Literal | ( | const Literal & | rhs | ) | 
      
  | 
  virtual | 
Virtual destructor.
Definition at line 46 of file Literal.cpp.
      
  | 
  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.
Definition at line 60 of file Literal.cpp.
| te::dt::AbstractData * te::da::Literal::getValue | ( | ) | const | 
It returns the value associated to the literal.
Definition at line 65 of file Literal.cpp.
Referenced by te::da::SpatialRestrictionVisitor::getGeometryRestriction(), te::serialize::xml::Save(), te::ado::SQLVisitor::visit(), te::pgis::SQLVisitor::visit(), and te::da::SQLVisitor::visit().
| te::da::Literal & te::da::Literal::operator= | ( | const Literal & | rhs | ) | 
Assignment operator.
Definition at line 50 of file Literal.cpp.
References m_value.
Referenced by te::da::LiteralString::operator=(), te::da::LiteralInt16::operator=(), te::da::LiteralInt64::operator=(), te::da::LiteralInt32::operator=(), te::da::LiteralGeom::operator=(), te::da::LiteralByteArray::operator=(), te::da::LiteralBool::operator=(), te::da::LiteralDateTime::operator=(), and te::da::LiteralDouble::operator=().
| 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. | 
Definition at line 70 of file Literal.cpp.
      
  | 
  protected | 
Definition at line 97 of file Literal.h.
Referenced by Literal(), and operator=().