te::da::SelectExpression Class Referenceabstract

A Select can be used as a source of information in another query. More...

#include <SelectExpression.h>

Inheritance diagram for te::da::SelectExpression:
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...
 
SelectgetSelect () const
 It returns the associated select expression. More...
 
SelectExpressionoperator= (const SelectExpression &rhs)
 
TE_DEFINE_VISITABLE SelectExpression (Select *s)
 Constructor. More...
 
 SelectExpression (const Select &s)
 Constructor. More...
 
 SelectExpression (const SelectExpression &rhs)
 Copy constructor. More...
 
void setSelect (Select *s)
 It sets the real SelectExpression associated to this object. More...
 
 ~SelectExpression ()
 Destructor. More...
 

Private Attributes

std::unique_ptr< Selectm_select
 The associated SelectExpression. More...
 

Detailed Description

A Select can be used as a source of information in another query.

See also
FromItem, DataSetName, DataSetType, DataSet, FromFunctionCall, Join

Definition at line 49 of file SelectExpression.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::SelectExpression::SelectExpression ( Select s)

Constructor.

Parameters
sThe real Select to be associated to this object.
Note
The SelectExpression will take the ownership of the Select.

Definition at line 30 of file SelectExpression.cpp.

Referenced by clone().

te::da::SelectExpression::SelectExpression ( const Select s)

Constructor.

Parameters
sThe real Select to be associated to this object.

Definition at line 35 of file SelectExpression.cpp.

te::da::SelectExpression::SelectExpression ( const SelectExpression rhs)

Copy constructor.

Definition at line 40 of file SelectExpression.cpp.

References m_select.

te::da::SelectExpression::~SelectExpression ( )
inline

Destructor.

Definition at line 75 of file SelectExpression.h.

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

It creates a new copy of this Expression.

Implements te::da::Expression.

Definition at line 54 of file SelectExpression.cpp.

References SelectExpression().

te::da::Select * te::da::SelectExpression::getSelect ( ) const

It returns the associated select expression.

Returns
The associated select expression.

Definition at line 59 of file SelectExpression.cpp.

References m_select.

Referenced by te::da::SQLVisitor::visit().

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

Assignment operator.

Definition at line 46 of file SelectExpression.cpp.

References m_select.

void te::da::SelectExpression::setSelect ( Select s)

It sets the real SelectExpression associated to this object.

Parameters
sThe Select to be associated to the Expression object.
Note
The SelectExpression will take the ownership of the Select.

Definition at line 64 of file SelectExpression.cpp.

References m_select.

Member Data Documentation

std::unique_ptr<Select> te::da::SelectExpression::m_select
private

The associated SelectExpression.

Definition at line 101 of file SelectExpression.h.

Referenced by getSelect(), operator=(), SelectExpression(), and setSelect().


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