KVIrc
4.9.2
DeveloperAPIs
|
Treenode class. More...
#include <KviKvsTreeNodeBase.h>
Public Member Functions | |
virtual void | contextDescription (QString &szBuffer)=0 |
Sets the buffer. More... | |
virtual void | dump (const char *prefix)=0 |
Dumps the tree. More... | |
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... | |
Protected Member Functions | |
void | setLocation (const QChar *pLocation) |
Sets the location char. More... | |
Protected Attributes | |
const QChar * | m_pLocation |
KviKvsTreeNode * | m_pParent |
Friends | |
class | KviKvsParser |
Treenode class.
KviKvsTreeNode::KviKvsTreeNode | ( | const QChar * | pLocation | ) |
Constructs the treenode object.
pLocation | The location char of the instruction |
References m_pLocation, and m_pParent.
|
inlinevirtual |
Destroys the treenode object.
|
pure virtual |
Sets the buffer.
szBuffer | The buffer :) |
Implemented in KviKvsTreeNodeOperationStringSubstitution, KviKvsTreeNodeOperationStringTransliteration, KviKvsTreeNodeOperationStringAppendWithSpace, KviKvsTreeNodeOperationStringAppendWithComma, KviKvsTreeNodeOperationArrayAppend, KviKvsTreeNodeOperationStringAppend, KviKvsTreeNodeOperationSelfXor, KviKvsTreeNodeOperationSelfSum, KviKvsTreeNodeExpressionBinaryOperator, KviKvsTreeNodeSpecialCommandDefpopup, KviKvsTreeNodeOperationSelfSubtraction, KviKvsTreeNodeSpecialCommandDefpopupLabelPopup, KviKvsTreeNodeExpressionUnaryOperatorLogicalNot, KviKvsTreeNodeOperationSelfShr, KviKvsTreeNodeExpressionUnaryOperatorBitwiseNot, KviKvsTreeNodeSpecialCommandDefpopupLabelEpilogue, KviKvsTreeNodeOperationSelfShl, KviKvsTreeNodeExpressionUnaryOperatorNegate, KviKvsTreeNodeOperationSelfOr, KviKvsTreeNodeSpecialCommandDefpopupLabelPrologue, KviKvsTreeNodeExpressionUnaryOperator, KviKvsTreeNodeOperationSelfMultiplication, KviKvsTreeNodeSpecialCommandDefpopupLabelLabel, KviKvsTreeNodeExpressionOperator, KviKvsTreeNodeOperationSelfModulus, KviKvsTreeNodeSpecialCommandDefpopupLabelItem, KviKvsTreeNodeExpressionConstantOperand, KviKvsTreeNodeSpecialCommandSwitch, KviKvsTreeNodeOperationSelfDivision, KviKvsTreeNodeSpecialCommandDefpopupLabelExtpopup, KviKvsTreeNodeExpressionVariableOperand, KviKvsTreeNodeSpecialCommandSwitchLabelDefault, KviKvsTreeNodeOperationSelfAnd, KviKvsTreeNodeSpecialCommandSwitchLabelRegexp, KviKvsTreeNodeOperationIncrement, KviKvsTreeNodeExpression, KviKvsTreeNodeArrayReferenceAssert, KviKvsTreeNodeAliasFunctionCall, KviKvsTreeNodeSpecialCommandDefpopupLabelSeparator, KviKvsTreeNodeSpecialCommandSwitchLabelMatch, KviKvsTreeNodeArrayElement, KviKvsTreeNodeOperationDecrement, KviKvsTreeNodeSpecialCommandClass, KviKvsTreeNodeAliasSimpleCommand, KviKvsTreeNodeArrayCount, KviKvsTreeNodeInstruction, KviKvsTreeNodeSpecialCommandSwitchLabelCase, KviKvsTreeNodeOperationAssignment, KviKvsTreeNodeDataList, KviKvsTreeNodeSwitchList, KviKvsTreeNodeData, KviKvsTreeNodeSpecialCommandClassFunctionDefinition, KviKvsTreeNodeInstructionBlock, KviKvsTreeNodeCommand, KviKvsTreeNodeCoreCallbackCommand, KviKvsTreeNodeSpecialCommandFor, KviKvsTreeNodeSpecialCommandForeach, KviKvsTreeNodeBaseObjectFunctionCall, KviKvsTreeNodeSpecialCommandIf, KviKvsTreeNodeCommandWithParameters, KviKvsTreeNodeCoreFunctionCall, KviKvsTreeNodeHashReferenceAssert, KviKvsTreeNodeModuleCallbackCommand, KviKvsTreeNodeModuleFunctionCall, KviKvsTreeNodeRebindingSwitch, KviKvsTreeNodeSpecialCommandDo, KviKvsTreeNodeSpecialCommandWhile, KviKvsTreeNodeCallbackCommand, KviKvsTreeNodeCoreSimpleCommand, KviKvsTreeNodeHashElement, KviKvsTreeNodeModuleSimpleCommand, KviKvsTreeNodeMultipleParameterIdentifier, KviKvsTreeNodeOperation, KviKvsTreeNodeSpecialCommandUnset, KviKvsTreeNodeThisObjectFunctionCall, KviKvsTreeNodeVoidFunctionCall, KviKvsTreeNodeCompositeData, KviKvsTreeNodeExpressionReturn, KviKvsTreeNodeHashCount, KviKvsTreeNodeParameterReturn, KviKvsTreeNodeScopeOperator, KviKvsTreeNodeSingleParameterIdentifier, KviKvsTreeNodeConstantData, KviKvsTreeNodeFunctionCall, KviKvsTreeNodeObjectField, KviKvsTreeNodeStringCast, KviKvsTreeNodeExtendedScopeVariable, KviKvsTreeNodeGlobalVariable, KviKvsTreeNodeLocalVariable, KviKvsTreeNodeParameterCount, KviKvsTreeNodeSpecialCommandBreak, KviKvsTreeNodeSpecialCommandContinue, KviKvsTreeNodeObjectFunctionCall, KviKvsTreeNodeSimpleCommand, and KviKvsTreeNodeSpecialCommand.
Referenced by KviKvsRunTimeContext::report().
|
pure virtual |
Dumps the tree.
prefix | The prefix of the instruction |
Implemented in KviKvsTreeNodeOperationStringSubstitution, KviKvsTreeNodeOperationStringTransliteration, KviKvsTreeNodeOperationStringAppendWithSpace, KviKvsTreeNodeOperationStringAppendWithComma, KviKvsTreeNodeOperationArrayAppend, KviKvsTreeNodeOperationStringAppend, KviKvsTreeNodeOperationSelfXor, KviKvsTreeNodeOperationSelfSum, KviKvsTreeNodeExpressionBinaryOperator, KviKvsTreeNodeSpecialCommandDefpopup, KviKvsTreeNodeOperationSelfSubtraction, KviKvsTreeNodeSpecialCommandDefpopupLabelPopup, KviKvsTreeNodeExpressionUnaryOperatorLogicalNot, KviKvsTreeNodeOperationSelfShr, KviKvsTreeNodeExpressionUnaryOperatorBitwiseNot, KviKvsTreeNodeSpecialCommandDefpopupLabelEpilogue, KviKvsTreeNodeOperationSelfShl, KviKvsTreeNodeExpressionUnaryOperatorNegate, KviKvsTreeNodeOperationSelfOr, KviKvsTreeNodeSpecialCommandDefpopupLabelPrologue, KviKvsTreeNodeExpressionUnaryOperator, KviKvsTreeNodeOperationSelfMultiplication, KviKvsTreeNodeSpecialCommandDefpopupLabelLabel, KviKvsTreeNodeExpressionOperator, KviKvsTreeNodeOperationSelfModulus, KviKvsTreeNodeSpecialCommandDefpopupLabelItem, KviKvsTreeNodeExpressionConstantOperand, KviKvsTreeNodeSpecialCommandSwitch, KviKvsTreeNodeOperationSelfDivision, KviKvsTreeNodeSpecialCommandDefpopupLabelExtpopup, KviKvsTreeNodeExpressionVariableOperand, KviKvsTreeNodeSpecialCommandSwitchLabelDefault, KviKvsTreeNodeOperationSelfAnd, KviKvsTreeNodeSpecialCommandSwitchLabelRegexp, KviKvsTreeNodeArrayReferenceAssert, KviKvsTreeNodeOperationIncrement, KviKvsTreeNodeExpression, KviKvsTreeNodeArrayElement, KviKvsTreeNodeSpecialCommandDefpopupLabelSeparator, KviKvsTreeNodeSpecialCommandSwitchLabelMatch, KviKvsTreeNodeAliasSimpleCommand, KviKvsTreeNodeArrayCount, KviKvsTreeNodeInstruction, KviKvsTreeNodeOperationDecrement, KviKvsTreeNodeSpecialCommandClass, KviKvsTreeNodeAliasFunctionCall, KviKvsTreeNodeSpecialCommandSwitchLabelCase, KviKvsTreeNodeOperationAssignment, KviKvsTreeNodeDataList, KviKvsTreeNodeData, KviKvsTreeNodeSpecialCommandClassFunctionDefinition, KviKvsTreeNodeSwitchList, KviKvsTreeNodeInstructionBlock, KviKvsTreeNodeCommand, KviKvsTreeNodeCoreCallbackCommand, KviKvsTreeNodeSpecialCommandFor, KviKvsTreeNodeSpecialCommandForeach, KviKvsTreeNodeBaseObjectFunctionCall, KviKvsTreeNodeSpecialCommandIf, KviKvsTreeNodeCommandWithParameters, KviKvsTreeNodeCoreFunctionCall, KviKvsTreeNodeHashReferenceAssert, KviKvsTreeNodeModuleCallbackCommand, KviKvsTreeNodeModuleFunctionCall, KviKvsTreeNodeRebindingSwitch, KviKvsTreeNodeSpecialCommandDo, KviKvsTreeNodeSpecialCommandWhile, KviKvsTreeNodeCallbackCommand, KviKvsTreeNodeCoreSimpleCommand, KviKvsTreeNodeHashElement, KviKvsTreeNodeModuleSimpleCommand, KviKvsTreeNodeMultipleParameterIdentifier, KviKvsTreeNodeOperation, KviKvsTreeNodeSpecialCommandUnset, KviKvsTreeNodeCompositeData, KviKvsTreeNodeThisObjectFunctionCall, KviKvsTreeNodeVoidFunctionCall, KviKvsTreeNodeConstantData, KviKvsTreeNodeExpressionReturn, KviKvsTreeNodeHashCount, KviKvsTreeNodeParameterReturn, KviKvsTreeNodeScopeOperator, KviKvsTreeNodeSingleParameterIdentifier, KviKvsTreeNodeStringCast, KviKvsTreeNodeFunctionCall, KviKvsTreeNodeObjectField, KviKvsTreeNodeExtendedScopeVariable, KviKvsTreeNodeGlobalVariable, KviKvsTreeNodeLocalVariable, KviKvsTreeNodeParameterCount, KviKvsTreeNodeSpecialCommandBreak, KviKvsTreeNodeSpecialCommandContinue, KviKvsTreeNodeObjectFunctionCall, KviKvsTreeNodeSimpleCommand, and KviKvsTreeNodeSpecialCommand.
|
inline |
Returns the location char.
Referenced by KviKvsModuleCallbackCommandCall::getParameterCode(), KviKvsParser::parseCommand(), KviKvsParser::parseExpressionOperand(), KviKvsParser::parseVoidFunctionCallOrOperation(), and KviKvsRunTimeContext::report().
|
inline |
|
inlineprotected |
Sets the location char.
This is called only by KviKvsParser
pLocation | The location char |
Referenced by KviKvsParser::parseCommand().
|
inline |
Sets the parent object.
p | The parent treenode |
References p.
Referenced by KviKvsTreeNodeSpecialCommandClass::addFunctionDefinition(), KviKvsTreeNodeInstructionBlock::addInstruction(), KviKvsTreeNodeDataList::addItem(), KviKvsTreeNodeSpecialCommandSwitch::addLabel(), KviKvsTreeNodeSpecialCommandDefpopupLabelPopup::addLabel(), KviKvsTreeNodeSwitchList::addLong(), KviKvsTreeNodeSwitchList::addShort(), KviKvsTreeNodeArrayElement::KviKvsTreeNodeArrayElement(), KviKvsTreeNodeCommandEvaluation::KviKvsTreeNodeCommandEvaluation(), KviKvsTreeNodeCommandWithParameters::KviKvsTreeNodeCommandWithParameters(), KviKvsTreeNodeExpressionReturn::KviKvsTreeNodeExpressionReturn(), KviKvsTreeNodeExpressionUnaryOperator::KviKvsTreeNodeExpressionUnaryOperator(), KviKvsTreeNodeExpressionVariableOperand::KviKvsTreeNodeExpressionVariableOperand(), KviKvsTreeNodeFunctionCall::KviKvsTreeNodeFunctionCall(), KviKvsTreeNodeHashElement::KviKvsTreeNodeHashElement(), KviKvsTreeNodeIndirectData::KviKvsTreeNodeIndirectData(), KviKvsTreeNodeOperationArrayAppend::KviKvsTreeNodeOperationArrayAppend(), KviKvsTreeNodeOperationAssignment::KviKvsTreeNodeOperationAssignment(), KviKvsTreeNodeOperationSelfAnd::KviKvsTreeNodeOperationSelfAnd(), KviKvsTreeNodeOperationSelfDivision::KviKvsTreeNodeOperationSelfDivision(), KviKvsTreeNodeOperationSelfModulus::KviKvsTreeNodeOperationSelfModulus(), KviKvsTreeNodeOperationSelfMultiplication::KviKvsTreeNodeOperationSelfMultiplication(), KviKvsTreeNodeOperationSelfOr::KviKvsTreeNodeOperationSelfOr(), KviKvsTreeNodeOperationSelfShl::KviKvsTreeNodeOperationSelfShl(), KviKvsTreeNodeOperationSelfShr::KviKvsTreeNodeOperationSelfShr(), KviKvsTreeNodeOperationSelfSubtraction::KviKvsTreeNodeOperationSelfSubtraction(), KviKvsTreeNodeOperationSelfSum::KviKvsTreeNodeOperationSelfSum(), KviKvsTreeNodeOperationSelfXor::KviKvsTreeNodeOperationSelfXor(), KviKvsTreeNodeOperationStringAppend::KviKvsTreeNodeOperationStringAppend(), KviKvsTreeNodeOperationStringAppendWithComma::KviKvsTreeNodeOperationStringAppendWithComma(), KviKvsTreeNodeOperationStringAppendWithSpace::KviKvsTreeNodeOperationStringAppendWithSpace(), KviKvsTreeNodeOperationStringSubstitution::KviKvsTreeNodeOperationStringSubstitution(), KviKvsTreeNodeOperationStringTransliteration::KviKvsTreeNodeOperationStringTransliteration(), KviKvsTreeNodeParameterReturn::KviKvsTreeNodeParameterReturn(), KviKvsTreeNodeRebindingSwitch::KviKvsTreeNodeRebindingSwitch(), KviKvsTreeNodeScopeOperator::KviKvsTreeNodeScopeOperator(), KviKvsTreeNodeSpecialCommandClass::KviKvsTreeNodeSpecialCommandClass(), KviKvsTreeNodeSpecialCommandDefpopup::KviKvsTreeNodeSpecialCommandDefpopup(), KviKvsTreeNodeSpecialCommandDo::KviKvsTreeNodeSpecialCommandDo(), KviKvsTreeNodeSpecialCommandFor::KviKvsTreeNodeSpecialCommandFor(), KviKvsTreeNodeSpecialCommandForeach::KviKvsTreeNodeSpecialCommandForeach(), KviKvsTreeNodeSpecialCommandIf::KviKvsTreeNodeSpecialCommandIf(), KviKvsTreeNodeSpecialCommandSwitch::KviKvsTreeNodeSpecialCommandSwitch(), KviKvsTreeNodeSpecialCommandWhile::KviKvsTreeNodeSpecialCommandWhile(), KviKvsTreeNodeStringCast::KviKvsTreeNodeStringCast(), KviKvsTreeNodeDataList::prependItem(), KviKvsTreeNodeInstructionBlock::releaseFirst(), KviKvsTreeNodeSpecialCommandSwitchLabel::setInstruction(), KviKvsTreeNodeExpressionBinaryOperator::setLeft(), KviKvsTreeNodeSpecialCommandSwitchLabel::setParameter(), KviKvsTreeNodeExpressionBinaryOperator::setRight(), KviKvsTreeNodeCommand::setSwitchList(), and KviKvsTreeNodeOperation::setTargetVariableReference().
|
friend |
|
protected |
Referenced by KviKvsTreeNode().
|
protected |
Referenced by KviKvsTreeNode().