KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | List of all members
KviKvsTreeNodeArrayReferenceAssert Class Reference

Treenode array reference assert class. More...

#include <KviKvsTreeNodeArrayReferenceAssert.h>

+ Inheritance diagram for KviKvsTreeNodeArrayReferenceAssert:

Public Member Functions

virtual void contextDescription (QString &szBuffer)
 Sets the buffer as Array Reference Assert. More...
 
virtual void dump (const char *prefix)
 Dumps the tree. More...
 
virtual bool evaluateReadOnly (KviKvsRunTimeContext *c, KviKvsVariant *pBuffer)
 Evaluates the array in read-only mode. More...
 
virtual bool evaluateReadOnlyInObjectScope (KviKvsObject *o, KviKvsRunTimeContext *c, KviKvsVariant *pBuffer)
 Evaluates the array in read-only mode in the object scope. More...
 
virtual KviKvsRWEvaluationResultevaluateReadWrite (KviKvsRunTimeContext *c)
 Evaluates the array in read-write mode. More...
 
virtual KviKvsRWEvaluationResultevaluateReadWriteInObjectScope (KviKvsObject *o, KviKvsRunTimeContext *c)
 Evaluates the array in read-write mode in the object scope. More...
 
virtual bool isReadOnly ()
 Returns true if the array reference is read-only. More...
 
 KviKvsTreeNodeArrayReferenceAssert (const QChar *pLocation, KviKvsTreeNodeData *pSource)
 Constructs the treenode array reference assert object. More...
 
 ~KviKvsTreeNodeArrayReferenceAssert ()
 Destroys the treenode array reference assert object. More...
 
- Public Member Functions inherited from KviKvsTreeNodeIndirectData
virtual bool canEvaluateInObjectScope ()
 
 KviKvsTreeNodeIndirectData (const QChar *pLocation, KviKvsTreeNodeData *pSource)
 
 ~KviKvsTreeNodeIndirectData ()
 
- Public Member Functions inherited from KviKvsTreeNodeData
virtual bool canEvaluateToObjectReference ()
 
virtual bool convertStringConstantToNumeric ()
 
const QChar * endingLocation ()
 
virtual bool isFunctionCall ()
 
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from KviKvsTreeNode
void setLocation (const QChar *pLocation)
 Sets the location char. More...
 
- Protected Attributes inherited from KviKvsTreeNodeIndirectData
KviKvsTreeNodeDatam_pSource
 
- Protected Attributes inherited from KviKvsTreeNodeData
const QChar * m_pEndingLocation
 
- Protected Attributes inherited from KviKvsTreeNode
const QChar * m_pLocation
 
KviKvsTreeNodem_pParent
 

Detailed Description

Treenode array reference assert class.

Constructor & Destructor Documentation

KviKvsTreeNodeArrayReferenceAssert::KviKvsTreeNodeArrayReferenceAssert ( const QChar *  pLocation,
KviKvsTreeNodeData pSource 
)

Constructs the treenode array reference assert object.

Parameters
pLocationThe location char of the instruction
pSourceThe source data
Returns
KviKvsTreeNodeArrayReferenceAssert
KviKvsTreeNodeArrayReferenceAssert::~KviKvsTreeNodeArrayReferenceAssert ( )
default

Destroys the treenode array reference assert object.

Returns
KviKvsTreeNodeArrayElement

Member Function Documentation

void KviKvsTreeNodeArrayReferenceAssert::contextDescription ( QString &  szBuffer)
virtual

Sets the buffer as Array Reference Assert.

Parameters
szBufferThe buffer :)
Returns
void

Reimplemented from KviKvsTreeNodeData.

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

Dumps the tree.

Parameters
prefixThe prefix of the instruction
Returns
void

Reimplemented from KviKvsTreeNodeData.

bool KviKvsTreeNodeArrayReferenceAssert::evaluateReadOnly ( KviKvsRunTimeContext c,
KviKvsVariant pBuffer 
)
virtual

Evaluates the array in read-only mode.

Parameters
cThe context where the alias is bound to
pBufferThe data buffer
Returns
bool

Reimplemented from KviKvsTreeNodeData.

References evaluateReadOnlyInObjectScope().

bool KviKvsTreeNodeArrayReferenceAssert::evaluateReadOnlyInObjectScope ( KviKvsObject o,
KviKvsRunTimeContext c,
KviKvsVariant pBuffer 
)
virtual

Evaluates the array in read-only mode in the object scope.

Parameters
oThe source object to evaluate
cThe context where the array is bound to
pBufferThe data buffer
Returns
bool

Reimplemented from KviKvsTreeNodeData.

References __tr2qs_ctx(), KviKvsRunTimeContext::error(), KviKvsTreeNodeData::evaluateReadOnly(), KviKvsTreeNodeData::evaluateReadOnlyInObjectScope(), KviKvsVariant::getTypeName(), KviKvsVariant::isArray(), KviKvsVariant::isNothing(), and KviKvsTreeNodeIndirectData::m_pSource.

Referenced by evaluateReadOnly().

KviKvsRWEvaluationResult * KviKvsTreeNodeArrayReferenceAssert::evaluateReadWrite ( KviKvsRunTimeContext c)
virtual

Evaluates the array in read-write mode.

Parameters
cThe context where the alias is bound to
Returns
KviKvsRWEvaluationResult *

Reimplemented from KviKvsTreeNodeData.

References evaluateReadWriteInObjectScope().

KviKvsRWEvaluationResult * KviKvsTreeNodeArrayReferenceAssert::evaluateReadWriteInObjectScope ( KviKvsObject o,
KviKvsRunTimeContext c 
)
virtual

Evaluates the array in read-write mode in the object scope.

Parameters
oThe source object to evaluate
cThe context where the array is bound to
Returns
KviKvsRWEvaluationResult *

Reimplemented from KviKvsTreeNodeData.

References KviKvsTreeNodeData::evaluateReadWrite(), KviKvsTreeNodeData::evaluateReadWriteInObjectScope(), KviKvsTreeNodeIndirectData::m_pSource, and r.

Referenced by evaluateReadWrite().

bool KviKvsTreeNodeArrayReferenceAssert::isReadOnly ( )
virtual

Returns true if the array reference is read-only.

Returns
bool

Reimplemented from KviKvsTreeNodeData.

References KviKvsTreeNodeData::isReadOnly(), and KviKvsTreeNodeIndirectData::m_pSource.


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