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::auto_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_DEFINE_VISITABLE 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.
te::da::SelectExpression::SelectExpression ( const Select s)

Constructor.

Parameters
sThe real Select to be associated to this object.
te::da::SelectExpression::SelectExpression ( const SelectExpression rhs)

Copy constructor.

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.
Expression* te::da::SelectExpression::clone ( ) const
virtual

It creates a new copy of this Expression.

Implements te::da::Expression.

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

It returns the associated select expression.

Returns
The associated select expression.
SelectExpression& te::da::SelectExpression::operator= ( const SelectExpression rhs)

Assignment operator.

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.

Member Data Documentation

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

The associated SelectExpression.

Definition at line 101 of file SelectExpression.h.


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