te::da::LiteralBool Class Referenceabstract

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

#include <LiteralBool.h>

Inheritance diagram for te::da::LiteralBool:
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...
 
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 LiteralBool (te::dt::AbstractData *v)
 Constructor. More...
 
 LiteralBool (const te::dt::AbstractData &v)
 Constructor. More...
 
 LiteralBool (const bool &v)
 Constructor. More...
 
 LiteralBool (const LiteralBool &rhs)
 Copy constructor. More...
 
LiteralBool & operator= (const LiteralBool &rhs)
 
void setValue (te::dt::AbstractData *v)
 It sets the value associated to the literal. More...
 
 ~LiteralBool ()
 Destructor. More...
 

Protected Attributes

std::unique_ptr< te::dt::AbstractData > m_value
 

Detailed Description

This class models a bool Literal value.

See also
Literal

Definition at line 43 of file LiteralBool.h.

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::LiteralBool::LiteralBool ( te::dt::AbstractData *  v)

Constructor.

Parameters
vThe bool value. The literal will take its ownership

Definition at line 30 of file LiteralBool.cpp.

Referenced by clone(), and LiteralBool().

te::da::LiteralBool::LiteralBool ( const te::dt::AbstractData &  v)

Constructor.

Parameters
vThe bool value.

Definition at line 35 of file LiteralBool.cpp.

te::da::LiteralBool::LiteralBool ( const bool &  v)

Constructor.

Parameters
vThe bool value.

Definition at line 40 of file LiteralBool.cpp.

References LiteralBool(), operator=(), and ~LiteralBool().

te::da::LiteralBool::LiteralBool ( const LiteralBool &  rhs)
default

Copy constructor.

te::da::LiteralBool::~LiteralBool ( )
default

Destructor.

Referenced by LiteralBool().

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::LiteralBool::clone ( ) const
virtual

It creates a new copy of this expression.

Reimplemented from te::da::Literal.

Definition at line 54 of file LiteralBool.cpp.

References LiteralBool().

te::dt::AbstractData * te::da::Literal::getValue ( ) const
inherited
te::da::LiteralBool & te::da::LiteralBool::operator= ( const LiteralBool &  rhs)
default

Assignment operator.

Referenced by LiteralBool().

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.

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

References te::da::Literal::m_value.

Member Data Documentation

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

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