kexi

KexiDB::UnaryExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::UnaryExpr:
KexiDB::BaseExpr

Public Member Functions

 UnaryExpr (int token, BaseExpr *arg)
 UnaryExpr (const UnaryExpr &expr)
virtual UnaryExpr * copy () const
virtual Field::Type type ()
virtual TQString debugString ()
virtual TQString toString (QuerySchemaParameterValueListIterator *params=0)
virtual void getQueryParameters (QuerySchemaParameterList &params)
BaseExpr * arg () const
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 ()

Public Attributes

BaseExpr * m_arg

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

An unary argument operation: + - NOT (or !) ~ "IS NULL" "IS NOT NULL".

Definition at line 149 of file expression.h.

Constructor & Destructor Documentation

◆ UnaryExpr() [1/2]

UnaryExpr::UnaryExpr ( int token,
BaseExpr * arg )

Definition at line 212 of file expression.cpp.

◆ UnaryExpr() [2/2]

UnaryExpr::UnaryExpr ( const UnaryExpr & expr)

Definition at line 221 of file expression.cpp.

◆ ~UnaryExpr()

UnaryExpr::~UnaryExpr ( )
virtual

Definition at line 229 of file expression.cpp.

Member Function Documentation

◆ arg()

BaseExpr * KexiDB::UnaryExpr::arg ( ) const
inline

Definition at line 161 of file expression.h.

◆ copy()

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

Implements KexiDB::BaseExpr.

Definition at line 234 of file expression.cpp.

◆ debugString()

TQString UnaryExpr::debugString ( )
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 239 of file expression.cpp.

◆ getQueryParameters()

void UnaryExpr::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 262 of file expression.cpp.

◆ toString()

TQString UnaryExpr::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 247 of file expression.cpp.

◆ type()

Field::Type UnaryExpr::type ( )
virtual

Reimplemented from KexiDB::BaseExpr.

Definition at line 268 of file expression.cpp.

◆ validate()

bool UnaryExpr::validate ( ParseInfo & parseInfo)
virtual
Todo
compare types... e.g. NOT applied to Text makes no sense...

Reimplemented from KexiDB::BaseExpr.

Definition at line 286 of file expression.cpp.

Member Data Documentation

◆ m_arg

BaseExpr* KexiDB::UnaryExpr::m_arg

Definition at line 164 of file expression.h.


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