#include <expression.h>

Inheritance diagram for KexiDB::FunctionExpr:
KexiDB::BaseExpr

Public Member Functions

 FunctionExpr (const TQString &_name, NArgExpr *args_=0)
 
 FunctionExpr (const FunctionExpr &expr)
 
virtual FunctionExpr * copy () const
 
virtual Field::Type type ()
 
virtual TQString debugString ()
 
virtual TQString toString (QuerySchemaParameterValueListIterator *params=0)
 
virtual void getQueryParameters (QuerySchemaParameterList &params)
 
virtual bool validate (ParseInfo &parseInfo)
 
- Public Member Functions inherited from KexiDB::BaseExpr
 BaseExpr (int token)
 
int token () const
 
BaseExpr * parent () const
 
virtual void setParent (BaseExpr *p)
 
void debug ()
 
TQString tokenToDebugString ()
 
virtual TQString tokenToString ()
 
int exprClass () const
 
NArgExpr * toNArg ()
 
UnaryExpr * toUnary ()
 
BinaryExpr * toBinary ()
 
ConstExpr * toConst ()
 
VariableExpr * toVariable ()
 
FunctionExpr * toFunction ()
 
QueryParameterExpr * toQueryParameter ()
 

Static Public Member Functions

static TQValueList< TQCString > builtInAggregates ()
 
static bool isBuiltInAggregate (const TQCString &fname)
 
- Static Public Member Functions inherited from KexiDB::BaseExpr
static TQString tokenToDebugString (int token)
 

Public Attributes

TQString name
 
NArgExpr * args
 

Additional Inherited Members

- Public Types inherited from KexiDB::BaseExpr
typedef TQPtrList< BaseExpr > List
 
typedef TQPtrListIterator< BaseExpr > ListIterator
 
- Protected Attributes inherited from KexiDB::BaseExpr
int m_cl
 
BaseExpr * m_par
 
int m_token
 

Detailed Description

  • aggregation functions like SUM, COUNT, MAX, ...
  • builtin functions like CURRENT_TIME()
  • user defined functions

Definition at line 288 of file expression.h.

Constructor & Destructor Documentation

◆ FunctionExpr() [1/2]

FunctionExpr::FunctionExpr ( const TQString &  _name,
NArgExpr *  args_ = 0 
)

Definition at line 841 of file expression.cpp.

◆ FunctionExpr() [2/2]

FunctionExpr::FunctionExpr ( const FunctionExpr &  expr)

Definition at line 854 of file expression.cpp.

◆ ~FunctionExpr()

FunctionExpr::~FunctionExpr ( )
virtual

Definition at line 863 of file expression.cpp.

Member Function Documentation

◆ builtInAggregates()

TQValueList< TQCString > FunctionExpr::builtInAggregates ( )
static

Definition at line 832 of file expression.cpp.

◆ copy()

FunctionExpr * FunctionExpr::copy ( ) const
virtual
Returns
a deep copy of this object.

Implements KexiDB::BaseExpr.

Definition at line 868 of file expression.cpp.

◆ debugString()

TQString FunctionExpr::debugString ( )
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 873 of file expression.cpp.

◆ getQueryParameters()

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 888 of file expression.cpp.

◆ isBuiltInAggregate()

bool FunctionExpr::isBuiltInAggregate ( const TQCString &  fname)
static

Definition at line 907 of file expression.cpp.

◆ toString()

TQString 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 883 of file expression.cpp.

◆ type()

Field::Type FunctionExpr::type ( )
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 893 of file expression.cpp.

◆ validate()

bool FunctionExpr::validate ( ParseInfo &  parseInfo)
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 899 of file expression.cpp.

Member Data Documentation

◆ args

NArgExpr* KexiDB::FunctionExpr::args

Definition at line 306 of file expression.h.

◆ name

TQString KexiDB::FunctionExpr::name

Definition at line 305 of file expression.h.


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