kexi

KexiDB::BaseExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::BaseExpr:

KexiDB::BinaryExpr KexiDB::ConstExpr KexiDB::FunctionExpr KexiDB::NArgExpr KexiDB::UnaryExpr KexiDB::VariableExpr List of all members.

Detailed Description

A base class for all expressions.

Definition at line 57 of file expression.h.


Public Types

typedef QPtrList< BaseExprList
typedef QPtrListIterator<
BaseExpr
ListIterator

Public Member Functions

 BaseExpr (int token)
virtual ~BaseExpr ()
int token () const
virtual Field::Type type ()
BaseExprparent () const
virtual void setParent (BaseExpr *p)
virtual bool validate (ParseInfo &parseInfo)
virtual QString toString ()=0
void debug ()
virtual QString debugString ()
QString tokenToDebugString ()
virtual QString tokenToString ()
int exprClass () const
NArgExprtoNArg ()
UnaryExprtoUnary ()
BinaryExprtoBinary ()
ConstExprtoConst ()
VariableExprtoVariable ()
FunctionExprtoFunction ()

Static Public Member Functions

static QString tokenToDebugString (int token)

Protected Attributes

int m_cl
BaseExprm_par
int m_token

Member Function Documentation

QString KexiDB::BaseExpr::tokenToDebugString (  )  [inline]

Returns:
single character if the token is < 256 or token name, e.g. LESS_OR_EQUAL (for debugging).

Definition at line 76 of file expression.h.

QString BaseExpr::tokenToString (  )  [virtual]

Returns:
string for token, like "<=" or ">"

Reimplemented in KexiDB::BinaryExpr.

Definition at line 105 of file expression.cpp.

NArgExpr * BaseExpr::toNArg (  ) 

Convenience type casts.

Definition at line 112 of file expression.cpp.


Member Data Documentation

int KexiDB::BaseExpr::m_cl [protected]

class

Definition at line 93 of file expression.h.

parent expression

Definition at line 94 of file expression.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys