KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KviKvsTreeNodeExpressionBinaryOperator Class Reference

#include <KviKvsTreeNodeExpression.h>

+ Inheritance diagram for KviKvsTreeNodeExpressionBinaryOperator:

Public Member Functions

virtual void contextDescription (QString &szBuffer)
 Sets the buffer. More...
 
virtual void dump (const char *prefix)
 Dumps the tree. More...
 
void dumpOperands (const char *prefix)
 
virtual int firstBinaryOperator ()
 
 KviKvsTreeNodeExpressionBinaryOperator (const QChar *pLocation)
 
virtual KviKvsTreeNodeExpressionleft ()
 
virtual KviKvsTreeNodeExpressionright ()
 
void setLeft (KviKvsTreeNodeExpression *pLeft)
 
void setRight (KviKvsTreeNodeExpression *pRight)
 
 ~KviKvsTreeNodeExpressionBinaryOperator ()
 
- Public Member Functions inherited from KviKvsTreeNodeExpressionOperator
 KviKvsTreeNodeExpressionOperator (const QChar *pLocation)
 
 ~KviKvsTreeNodeExpressionOperator ()
 
- Public Member Functions inherited from KviKvsTreeNodeExpression
 KviKvsTreeNodeExpression (const QChar *pLocation)
 
KviKvsTreeNodeExpressionparentExpression ()
 
virtual KviKvsTreeNodeExpressionparentWithPrecedenceLowerThan (int iPrec)
 
virtual int precedence ()
 
void setParentExpression (KviKvsTreeNodeExpression *pParent)
 
 ~KviKvsTreeNodeExpression ()
 
- Public Member Functions inherited from KviKvsTreeNodeData
virtual bool canEvaluateInObjectScope ()
 
virtual bool canEvaluateToObjectReference ()
 
virtual bool convertStringConstantToNumeric ()
 
const QChar * endingLocation ()
 
virtual bool evaluateReadOnly (KviKvsRunTimeContext *c, KviKvsVariant *pBuffer)
 
virtual bool evaluateReadOnlyInObjectScope (KviKvsObject *o, KviKvsRunTimeContext *c, KviKvsVariant *pBuffer)
 
virtual KviKvsRWEvaluationResultevaluateReadWrite (KviKvsRunTimeContext *c)
 
virtual KviKvsRWEvaluationResultevaluateReadWriteInObjectScope (KviKvsObject *o, KviKvsRunTimeContext *c)
 
virtual bool isFunctionCall ()
 
virtual bool isReadOnly ()
 
 KviKvsTreeNodeData (const QChar *pLocation)
 
void setEndingLocation (const QChar *pEndingLocation)
 
 ~KviKvsTreeNodeData ()
 
- Public Member Functions inherited from KviKvsTreeNode
 KviKvsTreeNode (const QChar *pLocation)
 Constructs the treenode object. More...
 
const QChar * location ()
 Returns the location char. More...
 
KviKvsTreeNodeparent ()
 Returns the parent object. More...
 
void setParent (KviKvsTreeNode *p)
 Sets the parent object. More...
 
virtual ~KviKvsTreeNode ()
 Destroys the treenode object. More...
 

Protected Member Functions

bool evaluateOperands (KviKvsRunTimeContext *c)
 
- Protected Member Functions inherited from KviKvsTreeNode
void setLocation (const QChar *pLocation)
 Sets the location char. More...
 

Protected Attributes

KviKvsNumber m_nLeft
 
KviKvsNumber m_nRight
 
KviKvsTreeNodeExpressionm_pLeft
 
KviKvsTreeNodeExpressionm_pRight
 
- Protected Attributes inherited from KviKvsTreeNodeExpression
KviKvsTreeNodeExpressionm_pParentExpression
 
- Protected Attributes inherited from KviKvsTreeNodeData
const QChar * m_pEndingLocation
 
- Protected Attributes inherited from KviKvsTreeNode
const QChar * m_pLocation
 
KviKvsTreeNodem_pParent
 

Constructor & Destructor Documentation

KviKvsTreeNodeExpressionBinaryOperator::KviKvsTreeNodeExpressionBinaryOperator ( const QChar *  pLocation)

References m_pLeft, and m_pRight.

KviKvsTreeNodeExpressionBinaryOperator::~KviKvsTreeNodeExpressionBinaryOperator ( )

References m_pLeft, and m_pRight.

Member Function Documentation

void KviKvsTreeNodeExpressionBinaryOperator::contextDescription ( QString &  szBuffer)
virtual

Sets the buffer.

Parameters
szBufferThe buffer :)
Returns
void

Reimplemented from KviKvsTreeNodeExpressionOperator.

void KviKvsTreeNodeExpressionBinaryOperator::dump ( const char *  prefix)
virtual

Dumps the tree.

Parameters
prefixThe prefix of the instruction
Returns
void

Reimplemented from KviKvsTreeNodeExpressionOperator.

References dumpOperands().

void KviKvsTreeNodeExpressionBinaryOperator::dumpOperands ( const char *  prefix)

References KviKvsTreeNodeExpression::dump(), m_pLeft, and m_pRight.

Referenced by dump().

bool KviKvsTreeNodeExpressionBinaryOperator::evaluateOperands ( KviKvsRunTimeContext c)
protected
int KviKvsTreeNodeExpressionBinaryOperator::firstBinaryOperator ( )
virtual
KviKvsTreeNodeExpression * KviKvsTreeNodeExpressionBinaryOperator::left ( )
virtual

Reimplemented from KviKvsTreeNodeExpression.

References m_pLeft.

KviKvsTreeNodeExpression * KviKvsTreeNodeExpressionBinaryOperator::right ( )
virtual

Reimplemented from KviKvsTreeNodeExpression.

References m_pRight.

void KviKvsTreeNodeExpressionBinaryOperator::setLeft ( KviKvsTreeNodeExpression pLeft)
virtual
void KviKvsTreeNodeExpressionBinaryOperator::setRight ( KviKvsTreeNodeExpression pRight)
virtual

Member Data Documentation

KviKvsNumber KviKvsTreeNodeExpressionBinaryOperator::m_nLeft
protected

Referenced by evaluateOperands().

KviKvsNumber KviKvsTreeNodeExpressionBinaryOperator::m_nRight
protected

Referenced by evaluateOperands().

KviKvsTreeNodeExpression* KviKvsTreeNodeExpressionBinaryOperator::m_pLeft
protected
KviKvsTreeNodeExpression* KviKvsTreeNodeExpressionBinaryOperator::m_pRight
protected

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