kexi

KexiDB::NArgExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::NArgExpr:
KexiDB::BaseExpr

Public Member Functions

 NArgExpr (int aClass, int token)
 NArgExpr (const NArgExpr &expr)
virtual NArgExpr * copy () const
void add (BaseExpr *expr)
void prepend (BaseExpr *expr)
BaseExpr * arg (int n)
int args ()
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
virtual Field::Type type ()
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 ()

Public Attributes

BaseExpr::List list

Additional Inherited Members

Public Types inherited from KexiDB::BaseExpr
typedef TQPtrList< BaseExpr > List
typedef TQPtrListIterator< BaseExpr > ListIterator
Static Public Member Functions inherited from KexiDB::BaseExpr
static TQString tokenToDebugString (int token)
Protected Attributes inherited from KexiDB::BaseExpr
int m_cl
BaseExpr * m_par
int m_token

Detailed Description

A base class N-argument operation.

Definition at line 129 of file expression.h.

Constructor & Destructor Documentation

◆ NArgExpr() [1/2]

NArgExpr::NArgExpr ( int aClass,
int token )

Definition at line 124 of file expression.cpp.

◆ NArgExpr() [2/2]

NArgExpr::NArgExpr ( const NArgExpr & expr)

Definition at line 131 of file expression.cpp.

◆ ~NArgExpr()

NArgExpr::~NArgExpr ( )
virtual

Definition at line 138 of file expression.cpp.

Member Function Documentation

◆ add()

void NArgExpr::add ( BaseExpr * expr)

Definition at line 182 of file expression.cpp.

◆ arg()

BaseExpr * NArgExpr::arg ( int n)

Definition at line 177 of file expression.cpp.

◆ args()

int NArgExpr::args ( )

Definition at line 194 of file expression.cpp.

◆ copy()

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

Implements KexiDB::BaseExpr.

Definition at line 142 of file expression.cpp.

◆ debugString()

TQString NArgExpr::debugString ( )
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 147 of file expression.cpp.

◆ getQueryParameters()

void NArgExpr::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 171 of file expression.cpp.

◆ prepend()

void NArgExpr::prepend ( BaseExpr * expr)

Definition at line 188 of file expression.cpp.

◆ toString()

TQString NArgExpr::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 159 of file expression.cpp.

◆ validate()

bool NArgExpr::validate ( ParseInfo & parseInfo)
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 199 of file expression.cpp.

Member Data Documentation

◆ list

BaseExpr::List KexiDB::NArgExpr::list

Definition at line 145 of file expression.h.


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