te::da::Literal Class Referenceabstract

This class models a literal value. More...

#include <Literal.h>

Inheritance diagram for te::da::Literal:
te::da::Expression te::common::BaseVisitable< QueryVisitor > te::da::LiteralBool te::da::LiteralByteArray te::da::LiteralDateTime te::da::LiteralDouble te::da::LiteralGeom te::da::LiteralInt16 te::da::LiteralInt32 te::da::LiteralInt64 te::da::LiteralString

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::unique_ptr< te::dt::AbstractData > m_value
 

Detailed Description

Member Typedef Documentation

typedef void te::common::BaseVisitable< QueryVisitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::da::Literal::Literal ( te::dt::AbstractData *  value)

Constructor.

Parameters
valueThe value to be assigned to the literal. The literal takes its ownership.

Definition at line 30 of file dataaccess/query/Literal.cpp.

Referenced by clone().

te::da::Literal::Literal ( const te::dt::AbstractData &  value)

Constructor.

Parameters
valueThe value to be assigned to the literal.

Definition at line 35 of file dataaccess/query/Literal.cpp.

te::da::Literal::Literal ( const Literal &  rhs)

Copy constructor.

Definition at line 40 of file dataaccess/query/Literal.cpp.

References m_value, and ~Literal().

te::da::Literal::~Literal ( )
virtualdefault

Virtual destructor.

Referenced by Literal().

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< QueryVisitor , void >::accept ( VisitorType &  guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
te::da::Expression * te::da::Literal::clone ( ) const
virtual
te::dt::AbstractData * te::da::Literal::getValue ( ) const
te::da::Literal & te::da::Literal::operator= ( const Literal &  rhs)

Assignment operator.

Definition at line 48 of file dataaccess/query/Literal.cpp.

References m_value.

void te::da::Literal::setValue ( te::dt::AbstractData *  v)

It sets the value associated to the literal.

Parameters
vThe value to be assigned to the literal. The literal takes its ownership.

Definition at line 68 of file dataaccess/query/Literal.cpp.

References m_value.

Member Data Documentation

std::unique_ptr<te::dt::AbstractData> te::da::Literal::m_value
protected

Definition at line 97 of file dataaccess/query/Literal.h.

Referenced by getValue(), Literal(), operator=(), and setValue().


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