|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PNode.h>
Public Member Functions | |
| PNode () | |
| The Standard constructor. | |
| PNode (const PNode &pn) | |
| PNode (const std::string &filename, int linenumber) | |
| PNode (PNODE_TYPE type, const std::string &filename, int linenumber) | |
| virtual | ~PNode () |
| The Standard destructor. | |
| PNODE_TYPE | GetType () const |
| Access mType data. | |
| void | SetFileInfo (const std::string &filename, int linenumber) |
| std::string | GetFilename () const |
| int | GetLineNumber () const |
| void | SetFunctionName (const std::string &funcname) |
| std::string | GetFunctionName () const |
| virtual void | DestroyChildren () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
Protected Attributes | |
| PNODE_TYPE | mType |
| int | mTrace |
| Whether to produce a trace. | |
| std::string | mSourceFile |
| Source file of origin. | |
| int | mLineNumber |
| Closest Line number of origin. | |
| std::string | mFunctName |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const PNode &node) |
PNode is a simple class. It just contains constructors and destructors The evaluator is held in another class, to hopefully make things more easily maintainable. It may not really be worthwhile.
| PNode::PNode | ( | ) |
The Standard constructor.
This is the standard pNode constructor.
| PNode::PNode | ( | const PNode & | pn | ) |
Definition at line 76 of file PNode.cpp.
References GetFilename(), GetLineNumber(), GetType(), mType, and SetFileInfo().
| PNode::PNode | ( | const std::string & | filename, |
| int | linenumber | ||
| ) |
| PNode::PNode | ( | PNODE_TYPE | type, |
| const std::string & | filename, | ||
| int | linenumber | ||
| ) |
|
virtual |
|
virtual |
Reimplemented in OpNode.
Definition at line 112 of file PNode.cpp.
Referenced by PEBLEnvironment::CallFunction(), and OpNode::DestroyChildren().
|
inline |
Definition at line 68 of file PNode.h.
References mSourceFile.
Referenced by Evaluator::Evaluate1(), PNode(), and PError::SignalWarning().
|
inline |
Definition at line 71 of file PNode.h.
References mFunctName.
Referenced by Evaluator::Evaluate(), and Evaluator::Evaluate1().
|
inline |
Definition at line 69 of file PNode.h.
References mLineNumber.
Referenced by Evaluator::Evaluate(), Evaluator::Evaluate(), Evaluator::Evaluate(), Evaluator::Evaluate1(), Evaluator::Evaluate1(), Evaluator::Evaluate1(), PNode(), and PError::SignalWarning().
|
inline |
Access mType data.
Definition at line 61 of file PNode.h.
References mType.
Referenced by Evaluator::Evaluate(), Evaluator::Evaluate(), VCG::Evaluate(), Evaluator::Evaluate1(), Evaluator::Evaluate1(), Loader::FindFunctions(), PNode(), SendToStream(), and DataNode::SendToStream().
|
protectedvirtual |
| void PNode::SetFileInfo | ( | const std::string & | filename, |
| int | linenumber | ||
| ) |
Definition at line 102 of file PNode.cpp.
References mLineNumber, and mSourceFile.
Referenced by PNode().
| void PNode::SetFunctionName | ( | const std::string & | funcname | ) |
Definition at line 107 of file PNode.cpp.
References mFunctName.
Referenced by Loader::LoadLibraryFunctions().
|
friend |
|
protected |
Definition at line 97 of file PNode.h.
Referenced by GetFunctionName(), and SetFunctionName().
|
protected |
Closest Line number of origin.
Definition at line 95 of file PNode.h.
Referenced by GetLineNumber(), and SetFileInfo().
|
protected |
Source file of origin.
Definition at line 92 of file PNode.h.
Referenced by GetFilename(), and SetFileInfo().
|
protected |