KVIrc 5.2.6
Developer APIs
KviKvsTreeNodeExpressionBinaryOperator Class Reference

#include <KviKvsTreeNodeExpression.h>

+ Inheritance diagram for KviKvsTreeNodeExpressionBinaryOperator:

Public Member Functions

virtual void contextDescription (QString &szBuffer)
 Sets the buffer.
 
virtual void dump (const char *prefix)
 Dumps the tree.
 
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.
 
const QChar * location ()
 Returns the location char.
 
KviKvsTreeNodeparent ()
 Returns the parent object.
 
void setParent (KviKvsTreeNode *p)
 Sets the parent object.
 
virtual ~KviKvsTreeNode ()
 Destroys the treenode object.
 

Protected Member Functions

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

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::KviKvsTreeNodeExpressionBinaryOperator ( const QChar * pLocation)

◆ ~KviKvsTreeNodeExpressionBinaryOperator()

KviKvsTreeNodeExpressionBinaryOperator::~KviKvsTreeNodeExpressionBinaryOperator ( )

References m_pLeft, and m_pRight.

Member Function Documentation

◆ contextDescription()

void KviKvsTreeNodeExpressionBinaryOperator::contextDescription ( QString & szBuffer)
virtual

Sets the buffer.

Parameters
szBufferThe buffer :)
Returns
void

Reimplemented from KviKvsTreeNodeExpressionOperator.

References szBuffer.

◆ dump()

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

Dumps the tree.

Parameters
prefixThe prefix of the instruction
Returns
void

Reimplemented from KviKvsTreeNodeExpressionOperator.

References dumpOperands().

◆ dumpOperands()

void KviKvsTreeNodeExpressionBinaryOperator::dumpOperands ( const char * prefix)

References m_pLeft, and m_pRight.

Referenced by dump().

◆ evaluateOperands()

bool KviKvsTreeNodeExpressionBinaryOperator::evaluateOperands ( KviKvsRunTimeContext * c)
protected

◆ firstBinaryOperator()

int KviKvsTreeNodeExpressionBinaryOperator::firstBinaryOperator ( )
virtual

◆ left()

KviKvsTreeNodeExpression * KviKvsTreeNodeExpressionBinaryOperator::left ( )
virtual

Reimplemented from KviKvsTreeNodeExpression.

References m_pLeft.

◆ right()

KviKvsTreeNodeExpression * KviKvsTreeNodeExpressionBinaryOperator::right ( )
virtual

Reimplemented from KviKvsTreeNodeExpression.

References m_pRight.

◆ setLeft()

void KviKvsTreeNodeExpressionBinaryOperator::setLeft ( KviKvsTreeNodeExpression * pLeft)
virtual

Reimplemented from KviKvsTreeNodeExpression.

References m_pLeft.

◆ setRight()

void KviKvsTreeNodeExpressionBinaryOperator::setRight ( KviKvsTreeNodeExpression * pRight)
virtual

Reimplemented from KviKvsTreeNodeExpression.

References m_pRight.

Member Data Documentation

◆ m_nLeft

KviKvsNumber KviKvsTreeNodeExpressionBinaryOperator::m_nLeft
protected

Referenced by evaluateOperands().

◆ m_nRight

KviKvsNumber KviKvsTreeNodeExpressionBinaryOperator::m_nRight
protected

Referenced by evaluateOperands().

◆ m_pLeft

◆ m_pRight


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