![]() |
KVIrc
4.9.2
DeveloperAPIs
|
#include <KviKvsTreeNodeSpecialCommandForeach.h>
Inheritance diagram for KviKvsTreeNodeSpecialCommandForeach:Public Member Functions | |
| virtual void | contextDescription (QString &szBuffer) |
| Sets the buffer as Instruction. More... | |
| virtual void | dump (const char *prefix) |
| Dumps the instructions tree. More... | |
| virtual bool | execute (KviKvsRunTimeContext *c) |
| This is the main entry point to the tree visit. More... | |
| KviKvsTreeNodeSpecialCommandForeach (const QChar *pLocation, KviKvsTreeNodeData *pVar, KviKvsTreeNodeDataList *pArgs, KviKvsTreeNodeInstruction *pLoop) | |
| ~KviKvsTreeNodeSpecialCommandForeach () | |
Public Member Functions inherited from KviKvsTreeNodeSpecialCommand | |
| KviKvsTreeNodeSpecialCommand (const QChar *pLocation, const QString &szCmdName) | |
| ~KviKvsTreeNodeSpecialCommand () | |
Public Member Functions inherited from KviKvsTreeNodeCommand | |
| const QString & | commandName () |
| void | dumpSwitchList (const char *prefix) |
| KviKvsTreeNodeCommand (const QChar *pLocation, const QString &szCmdName) | |
| ~KviKvsTreeNodeCommand () | |
Public Member Functions inherited from KviKvsTreeNodeInstruction | |
| KviKvsTreeNodeInstruction (const QChar *pLocation) | |
| Constructs the treenode instruction object. More... | |
| ~KviKvsTreeNodeInstruction () | |
| Destroys the treenode instruction object. More... | |
Public Member Functions inherited from KviKvsTreeNode | |
| KviKvsTreeNode (const QChar *pLocation) | |
| Constructs the treenode object. More... | |
| const QChar * | location () |
| Returns the location char. More... | |
| KviKvsTreeNode * | parent () |
| Returns the parent object. More... | |
| void | setParent (KviKvsTreeNode *p) |
| Sets the parent object. More... | |
| virtual | ~KviKvsTreeNode () |
| Destroys the treenode object. More... | |
Private Attributes | |
| KviKvsTreeNodeDataList * | m_pIterationData |
| KviKvsTreeNodeData * | m_pIterationVariable |
| KviKvsTreeNodeInstruction * | m_pLoop |
Additional Inherited Members | |
Protected Member Functions inherited from KviKvsTreeNodeCommand | |
| void | setSwitchList (KviKvsTreeNodeSwitchList *sw) |
Protected Member Functions inherited from KviKvsTreeNode | |
| void | setLocation (const QChar *pLocation) |
| Sets the location char. More... | |
Protected Attributes inherited from KviKvsTreeNodeCommand | |
| KviKvsTreeNodeSwitchList * | m_pSwitches |
| QString | m_szCmdName |
Protected Attributes inherited from KviKvsTreeNode | |
| const QChar * | m_pLocation |
| KviKvsTreeNode * | m_pParent |
| KviKvsTreeNodeSpecialCommandForeach::KviKvsTreeNodeSpecialCommandForeach | ( | const QChar * | pLocation, |
| KviKvsTreeNodeData * | pVar, | ||
| KviKvsTreeNodeDataList * | pArgs, | ||
| KviKvsTreeNodeInstruction * | pLoop | ||
| ) |
References m_pIterationData, m_pIterationVariable, m_pLoop, and KviKvsTreeNode::setParent().
| KviKvsTreeNodeSpecialCommandForeach::~KviKvsTreeNodeSpecialCommandForeach | ( | ) |
References m_pIterationData, m_pIterationVariable, and m_pLoop.
|
virtual |
Sets the buffer as Instruction.
| szBuffer | The buffer :) |
Reimplemented from KviKvsTreeNodeSpecialCommand.
|
virtual |
Dumps the instructions tree.
| prefix | The prefix of the instruction |
Reimplemented from KviKvsTreeNodeSpecialCommand.
References KviKvsTreeNodeData::dump(), KviKvsTreeNodeDataList::dump(), KviKvsTreeNodeInstruction::dump(), m_pIterationData, m_pIterationVariable, and m_pLoop.
|
virtual |
This is the main entry point to the tree visit.
It returns false when the tree visiting has to be stopped and returns true when it has been successfully completed. A false return value may signal an error but is also used by break, halt, return and similar. The error condition is signaled by KviKvsRunTimeContext::error().
| c | The source context |
Implements KviKvsTreeNodeInstruction.
References KviKvsVariantData::Array, KviKvsVariant::array(), KviKvsArray::at(), KviKvsRunTimeContext::breakPending(), KviKvsRunTimeContext::continuePending(), KviKvsVariant::copyFrom(), KviKvsRunTimeContext::error(), KviKvsTreeNodeDataList::evaluate(), KviKvsTreeNodeSwitchList::evaluate(), KviKvsTreeNodeData::evaluateReadWrite(), KviKvsTreeNodeInstruction::execute(), KviKvsSwitchList::find(), KviKvsVariantList::first(), KviKvsRunTimeContext::handleBreak(), KviKvsRunTimeContext::handleContinue(), KviKvsVariantData::Hash, KviKvsVariant::isEmpty(), l, m_pIterationData, m_pIterationVariable, m_pLoop, KviKvsTreeNodeCommand::m_pSwitches, KviKvsVariantList::next(), KviKvsRWEvaluationResult::result(), KviKvsVariantList::setAutoDelete(), KviKvsVariant::setNothing(), swl, and v.
|
private |
Referenced by dump(), execute(), KviKvsTreeNodeSpecialCommandForeach(), and ~KviKvsTreeNodeSpecialCommandForeach().
|
private |
Referenced by dump(), execute(), KviKvsTreeNodeSpecialCommandForeach(), and ~KviKvsTreeNodeSpecialCommandForeach().
|
private |
Referenced by dump(), execute(), KviKvsTreeNodeSpecialCommandForeach(), and ~KviKvsTreeNodeSpecialCommandForeach().
1.8.7