Kexi API Documentation (2.0 alpha)

KexiDB::FunctionExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::FunctionExpr:

KexiDB::BaseExpr List of all members.

Detailed Description

..

Definition at line 262 of file expression.h.

Public Member Functions

 FunctionExpr (const QString &_name, NArgExpr *args_=0)
virtual ~FunctionExpr ()
virtual Field::Type type ()
virtual QString debugString ()
virtual QString toString (QuerySchemaParameterValueListIterator *params=0)
virtual void getQueryParameters (QuerySchemaParameterList &params)
virtual bool validate (ParseInfo &parseInfo)

Static Public Member Functions

static QValueList< QCString > builtInAggregates ()
static bool isBuiltInAggregate (const QCString &fname)

Public Attributes

QString name
NArgExprargs


Constructor & Destructor Documentation

FunctionExpr::FunctionExpr const QString _name,
NArgExpr args_ = 0
 

Definition at line 773 of file expression.cpp.

References args, isBuiltInAggregate(), KexiDBExpr_Aggregation, KexiDBExpr_Function, KexiDB::BaseExpr::m_cl, name, and KexiDB::BaseExpr::setParent().

FunctionExpr::~FunctionExpr  )  [virtual]
 

Definition at line 786 of file expression.cpp.

References args.


Member Function Documentation

QValueList< QCString > FunctionExpr::builtInAggregates  )  [static]
 

Definition at line 764 of file expression.cpp.

References FunctionExpr_builtIns_.

Referenced by isBuiltInAggregate().

QString FunctionExpr::debugString  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Definition at line 791 of file expression.cpp.

References args, KexiDB::Driver::defaultSQLTypeName(), name, and type().

void FunctionExpr::getQueryParameters QuerySchemaParameterList params  )  [virtual]
 

Collects query parameters (messages and types) reculsively and saves them to params. The leaf nodes are objects of QueryParameterExpr class.

Implements KexiDB::BaseExpr.

Definition at line 806 of file expression.cpp.

References args, and KexiDB::NArgExpr::getQueryParameters().

bool FunctionExpr::isBuiltInAggregate const QCString &  fname  )  [static]
 

Definition at line 825 of file expression.cpp.

References builtInAggregates().

Referenced by FunctionExpr().

QString FunctionExpr::toString QuerySchemaParameterValueListIterator params = 0  )  [virtual]
 

Returns:
string as a representation of this expression element by running recursive calls. param, if not 0, points to a list item containing value of a query parameter (used in QueryParameterExpr).

Implements KexiDB::BaseExpr.

Definition at line 801 of file expression.cpp.

References args, name, and KexiDB::NArgExpr::toString().

Field::Type FunctionExpr::type  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Definition at line 811 of file expression.cpp.

References KexiDB::Field::InvalidType.

Referenced by debugString().

bool FunctionExpr::validate ParseInfo parseInfo  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Definition at line 817 of file expression.cpp.

References args, KexiDB::NArgExpr::validate(), and KexiDB::BaseExpr::validate().


Member Data Documentation

NArgExpr* KexiDB::FunctionExpr::args
 

Definition at line 277 of file expression.h.

Referenced by debugString(), FunctionExpr(), getQueryParameters(), toString(), validate(), and ~FunctionExpr().

QString KexiDB::FunctionExpr::name
 

Definition at line 276 of file expression.h.

Referenced by debugString(), FunctionExpr(), and toString().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:44 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003