QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Public Member Functions | Protected Attributes | List of all members
QgsSQLStatement::NodeSelectedColumn Class Reference

Selected column. More...

#include <qgssqlstatement.h>

Inheritance diagram for QgsSQLStatement::NodeSelectedColumn:
Inheritance graph
[legend]

Public Member Functions

 NodeSelectedColumn (Node *node)
 Constructor. More...
 
virtual ~NodeSelectedColumn ()
 
virtual void accept (Visitor &v) const override
 Support the visitor pattern. More...
 
QString alias () const
 Alias name. More...
 
virtual Nodeclone () const override
 Generate a clone of this node. More...
 
NodeSelectedColumncloneThis () const
 Clone with same type return. More...
 
Nodecolumn () const
 Column that is refered to. More...
 
virtual QString dump () const override
 Abstract virtual dump method. More...
 
virtual NodeType nodeType () const override
 Abstract virtual that returns the type of this node. More...
 
void setAlias (const QString &alias)
 Set alias name. More...
 
- Public Member Functions inherited from QgsSQLStatement::Node
virtual ~Node ()
 

Protected Attributes

QString mAlias
 
NodemColumnNode
 

Detailed Description

Selected column.

Definition at line 490 of file qgssqlstatement.h.

Constructor & Destructor Documentation

QgsSQLStatement::NodeSelectedColumn::NodeSelectedColumn ( Node node)
inline

Constructor.

Definition at line 494 of file qgssqlstatement.h.

virtual QgsSQLStatement::NodeSelectedColumn::~NodeSelectedColumn ( )
inlinevirtual

Definition at line 495 of file qgssqlstatement.h.

Member Function Documentation

virtual void QgsSQLStatement::NodeSelectedColumn::accept ( Visitor v) const
inlineoverridevirtual

Support the visitor pattern.

For any implementation this should look like

C++:

v.visit( *this );

Python:

v.visit( self)
Parameters
vA visitor that visits this node.

Implements QgsSQLStatement::Node.

Definition at line 509 of file qgssqlstatement.h.

QString QgsSQLStatement::NodeSelectedColumn::alias ( ) const
inline

Alias name.

Definition at line 504 of file qgssqlstatement.h.

QgsSQLStatement::Node * QgsSQLStatement::NodeSelectedColumn::clone ( ) const
overridevirtual

Generate a clone of this node.

Make sure that the clone does not contain any information which is generated in prepare and context related. Ownership is transferred to the caller.

Returns
a deep copy of this node.

Implements QgsSQLStatement::Node.

Definition at line 519 of file qgssqlstatement.cpp.

QgsSQLStatement::NodeSelectedColumn * QgsSQLStatement::NodeSelectedColumn::cloneThis ( ) const

Clone with same type return.

Definition at line 512 of file qgssqlstatement.cpp.

Node* QgsSQLStatement::NodeSelectedColumn::column ( ) const
inline

Column that is refered to.

Definition at line 501 of file qgssqlstatement.h.

QString QgsSQLStatement::NodeSelectedColumn::dump ( ) const
overridevirtual

Abstract virtual dump method.

Returns
A statement which represents this node as string

Implements QgsSQLStatement::Node.

Definition at line 500 of file qgssqlstatement.cpp.

virtual NodeType QgsSQLStatement::NodeSelectedColumn::nodeType ( ) const
inlineoverridevirtual

Abstract virtual that returns the type of this node.

Returns
The type of this node

Implements QgsSQLStatement::Node.

Definition at line 506 of file qgssqlstatement.h.

void QgsSQLStatement::NodeSelectedColumn::setAlias ( const QString alias)
inline

Set alias name.

Definition at line 498 of file qgssqlstatement.h.

Member Data Documentation

QString QgsSQLStatement::NodeSelectedColumn::mAlias
protected

Definition at line 516 of file qgssqlstatement.h.

Node* QgsSQLStatement::NodeSelectedColumn::mColumnNode
protected

Definition at line 515 of file qgssqlstatement.h.


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