te::da::FromFunctionCall Class Referenceabstract

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

#include <FromFunctionCall.h>

Inheritance diagram for te::da::FromFunctionCall:
te::da::FromItem 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...
 
FromItemclone () const
 It creates a new copy of this FromItem. More...
 
TE_DEFINE_VISITABLE FromFunctionCall (Function *f, const std::string &alias)
 Constructor. More...
 
 FromFunctionCall (const Function &f, const std::string &alias)
 Constructor. More...
 
 FromFunctionCall (const FromFunctionCall &rhs)
 Copy constructor. More...
 
const std::string & getAlias () const
 It returns the alias associated to the source item. More...
 
FunctiongetFunction () const
 It returns the associated function. More...
 
FromFunctionCalloperator= (const FromFunctionCall &rhs)
 
void setAlias (const std::string &alias)
 It sets the alias for a from source item. More...
 
void setFunction (Function *f)
 It sets the function associated to this object. More...
 
 ~FromFunctionCall ()
 Destructor. More...
 

Protected Attributes

std::string m_alias
 An alias for the output name. More...
 

Private Attributes

std::unique_ptr< Functionm_f
 The associated function. 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 FromFunctionCall.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::FromFunctionCall::FromFunctionCall ( Function f,
const std::string &  alias 
)

Constructor.

Parameters
fThe function to be associated to this object.
Note
The FromFunctionCall will take the ownership of the function.

Definition at line 30 of file FromFunctionCall.cpp.

Referenced by clone().

te::da::FromFunctionCall::FromFunctionCall ( const Function f,
const std::string &  alias 
)

Constructor.

Parameters
fThe function to be associated to this object.

Definition at line 36 of file FromFunctionCall.cpp.

References te::da::Function::clone(), and m_f.

te::da::FromFunctionCall::FromFunctionCall ( const FromFunctionCall rhs)

Copy constructor.

Definition at line 44 of file FromFunctionCall.cpp.

References m_f, and ~FromFunctionCall().

te::da::FromFunctionCall::~FromFunctionCall ( )
default

Destructor.

Referenced by FromFunctionCall().

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::FromItem * te::da::FromFunctionCall::clone ( ) const
virtual

It creates a new copy of this FromItem.

Implements te::da::FromItem.

Definition at line 65 of file FromFunctionCall.cpp.

References FromFunctionCall().

const std::string & te::da::FromItem::getAlias ( ) const
inherited
te::da::Function * te::da::FromFunctionCall::getFunction ( ) const

It returns the associated function.

Returns
The associated function.

Definition at line 70 of file FromFunctionCall.cpp.

References m_f.

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

Assignment operator.

Definition at line 53 of file FromFunctionCall.cpp.

References m_f, and te::da::FromItem::operator=().

void te::da::FromItem::setAlias ( const std::string &  alias)
inherited

It sets the alias for a from source item.

Parameters
aliasThe alias for a from source item.
Note
The FromItem will take the ownership of the given alias.

Definition at line 42 of file FromItem.cpp.

References te::da::FromItem::m_alias.

void te::da::FromFunctionCall::setFunction ( Function f)

It sets the function associated to this object.

Parameters
fThe function to be associated to the FromItem object.

Definition at line 75 of file FromFunctionCall.cpp.

References m_f.

Member Data Documentation

std::string te::da::FromItem::m_alias
protectedinherited

An alias for the output name.

Definition at line 93 of file FromItem.h.

Referenced by te::da::FromItem::getAlias(), te::da::FromItem::operator=(), and te::da::FromItem::setAlias().

std::unique_ptr<Function> te::da::FromFunctionCall::m_f
private

The associated function.

Definition at line 99 of file FromFunctionCall.h.

Referenced by FromFunctionCall(), getFunction(), operator=(), and setFunction().


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