te::da::LiteralByteArray Class Referenceabstract

A class that models a literal for ByteArray values. More...

#include <LiteralByteArray.h>

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

Protected Attributes

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

Detailed Description

A class that models a literal for ByteArray values.

This class is just a syntatic-suggar.

See also
Literal

Definition at line 48 of file LiteralByteArray.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::LiteralByteArray::LiteralByteArray ( te::dt::ByteArray *  b)

Constructor.

Parameters
bThe ByteArray value.
Note
The LiteralByteArray will take the ownership of the given byte array.

Definition at line 30 of file LiteralByteArray.cpp.

Referenced by clone(), and LiteralByteArray().

te::da::LiteralByteArray::LiteralByteArray ( const te::dt::ByteArray &  b)

Constructor.

Parameters
bThe ByteArray value.

Definition at line 35 of file LiteralByteArray.cpp.

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

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

Copy constructor.

te::da::LiteralByteArray::~LiteralByteArray ( )
default

Destructor.

Referenced by LiteralByteArray().

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

It creates a new copy of this expression.

Reimplemented from te::da::Literal.

Definition at line 49 of file LiteralByteArray.cpp.

References LiteralByteArray().

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

Assignment operator.

Referenced by LiteralByteArray().

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: