te::da::LiteralString Class Referenceabstract

This class models a string Literal value. More...

#include <LiteralString.h>

Inheritance diagram for te::da::LiteralString:
te::da::Literal te::da::Expression te::common::BaseVisitable< QueryVisitor >

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...
 
Expressionclone () const
 It creates a new copy of this expression. More...
 
te::dt::AbstractDatagetValue () const
 It returns the value associated to the literal. More...
 
TE_DEFINE_VISITABLE LiteralString (const std::string &s)
 Constructor. More...
 
 LiteralString (const LiteralString &rhs)
 Copy constructor. More...
 
LiteralStringoperator= (const LiteralString &rhs)
 
void setValue (te::dt::AbstractData *v)
 It sets the value associated to the literal. More...
 
 ~LiteralString ()
 Destructor. More...
 

Protected Attributes

std::unique_ptr< te::dt::AbstractDatam_value
 

Detailed Description

This class models a string Literal value.

See also
Literal

Definition at line 46 of file LiteralString.h.

Member Typedef Documentation

◆ ReturnType

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

Definition at line 58 of file BaseVisitable.h.

◆ VisitorType

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

◆ LiteralString() [1/2]

TE_DEFINE_VISITABLE te::da::LiteralString::LiteralString ( const std::string &  s)

Constructor.

Parameters
sThe string value.

◆ LiteralString() [2/2]

te::da::LiteralString::LiteralString ( const LiteralString rhs)

Copy constructor.

◆ ~LiteralString()

te::da::LiteralString::~LiteralString ( )
inline

Destructor.

Definition at line 63 of file LiteralString.h.

Member Function Documentation

◆ accept()

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.

◆ clone()

Expression* te::da::LiteralString::clone ( ) const
virtual

It creates a new copy of this expression.

Reimplemented from te::da::Literal.

◆ getValue()

te::dt::AbstractData* te::da::Literal::getValue ( ) const
inherited

It returns the value associated to the literal.

◆ operator=()

LiteralString& te::da::LiteralString::operator= ( const LiteralString rhs)

Assignment operator.

◆ setValue()

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

It sets the value associated to the literal.

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

Member Data Documentation

◆ m_value

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

Definition at line 97 of file Literal.h.


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