te::da::JoinConditionUsing Class Referenceabstract

JoinConditionUsing class can be used to model a USING clause in a Join. More...

#include <JoinConditionUsing.h>

Inheritance diagram for te::da::JoinConditionUsing:
te::da::JoinCondition 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...
 
void clear ()
 It will release all condition expressions and then it will clear the conteiner. More...
 
JoinConditionclone () const
 It creates a new copy of this JoinCondition. More...
 
void erase (std::size_t i)
 It releases the i-th condition expression and trim the conteiner. More...
 
std::size_t getNumFields () const
 It returns the number of fields in this join condition. More...
 
TE_DEFINE_VISITABLE JoinConditionUsing ()
 Default constructor. More...
 
 JoinConditionUsing (const JoinConditionUsing &rhs)
 Copy constructor. More...
 
JoinConditionUsingoperator= (const JoinConditionUsing &rhs)
 
const Expressionoperator[] (std::size_t i) const
 It returns the i-th condition. More...
 
void push_back (Expression *e)
 It adds the condition to the conteiner. More...
 
 ~JoinConditionUsing ()
 Destructor. More...
 

Private Attributes

boost::ptr_vector< Expressionm_fields
 The join column list. More...
 

Detailed Description

JoinConditionUsing class can be used to model a USING clause in a Join.

See also
JoinCondition, JoinConditionOn

Definition at line 46 of file JoinConditionUsing.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::JoinConditionUsing::JoinConditionUsing ( )
inline

Default constructor.

Definition at line 53 of file JoinConditionUsing.h.

Referenced by clone().

te::da::JoinConditionUsing::JoinConditionUsing ( const JoinConditionUsing rhs)

Copy constructor.

Definition at line 34 of file JoinConditionUsing.cpp.

References ~JoinConditionUsing().

te::da::JoinConditionUsing::~JoinConditionUsing ( )
default

Destructor.

Referenced by JoinConditionUsing().

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.
void te::da::JoinConditionUsing::clear ( )

It will release all condition expressions and then it will clear the conteiner.

Definition at line 73 of file JoinConditionUsing.cpp.

References m_fields.

te::da::JoinCondition * te::da::JoinConditionUsing::clone ( ) const
virtual

It creates a new copy of this JoinCondition.

Implements te::da::JoinCondition.

Definition at line 51 of file JoinConditionUsing.cpp.

References JoinConditionUsing().

void te::da::JoinConditionUsing::erase ( std::size_t  i)

It releases the i-th condition expression and trim the conteiner.

Parameters
iThe condition to be removed.

Definition at line 67 of file JoinConditionUsing.cpp.

References m_fields.

std::size_t te::da::JoinConditionUsing::getNumFields ( ) const
inline

It returns the number of fields in this join condition.

Returns
The number of fields in this join condition.

Definition at line 72 of file JoinConditionUsing.h.

Referenced by te::serialize::xml::Save(), and te::da::SQLVisitor::visit().

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

Assignment operator.

Definition at line 41 of file JoinConditionUsing.cpp.

References m_fields.

const te::da::Expression * te::da::JoinConditionUsing::operator[] ( std::size_t  i) const

It returns the i-th condition.

Parameters
iThe condition position.
Returns
The i-th condition.

Definition at line 61 of file JoinConditionUsing.cpp.

References m_fields.

void te::da::JoinConditionUsing::push_back ( Expression e)

It adds the condition to the conteiner.

Parameters
eThe condition to be added to the join.

Definition at line 56 of file JoinConditionUsing.cpp.

References m_fields.

Member Data Documentation

boost::ptr_vector<Expression> te::da::JoinConditionUsing::m_fields
private

The join column list.

Definition at line 102 of file JoinConditionUsing.h.

Referenced by clear(), erase(), operator=(), operator[](), and push_back().


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