|
yast2-core
|
YBreakpoint wrapper for YCP debugger. More...
#include <YBreakpoint.h>
Public Member Functions | |
| YBreakpoint (YCodePtr wrapped_ycp, string name) | |
| virtual | ~YBreakpoint () |
| virtual ykind | kind () const |
| virtual string | toString () const |
| virtual std::ostream & | toStream (std::ostream &str) const |
| virtual std::ostream & | toXml (std::ostream &str, int indent) const |
| virtual bool | isConstant () const |
| virtual bool | isStatement () const |
| virtual bool | isBlock () const |
| virtual bool | isReferenceable () const |
| virtual YCPValue | evaluate (bool cse=false) |
| virtual constTypePtr | type () const |
| YCodePtr | code () const |
| bool | enabled () const |
| void | setEnabled (bool enable) |
Public Member Functions inherited from YCode | |
| YCode () | |
| virtual | ~YCode () |
| bool | isError () const |
Public Member Functions inherited from Rep | |
| Rep () | |
| Rep (const Rep &) | |
| Rep & | operator= (const Rep &) |
| virtual | ~Rep () |
| void | ref () const |
| void | unref () const |
| unsigned | refCount () const |
| virtual const char * | repName () const |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
Private Member Functions | |
| REP_BODY (YBreakpoint) | |
Private Attributes | |
| YCodePtr | m_code |
| bool | m_enabled |
| string | m_name |
Additional Inherited Members | |
Public Types inherited from YCode | |
| enum | ykind { yxError = 0, ycVoid, ycBoolean, ycInteger, ycFloat, ycString, ycByteblock, ycPath, ycSymbol, ycList, ycMap, ycTerm, ycEntry, ycConstant, ycLocale, ycFunction, yePropagate, yeUnary, yeBinary, yeTriple, yeCompare, yeLocale, yeList, yeMap, yeTerm, yeIs, yeBracket, yeBlock, yeReturn, yeVariable, yeBuiltin, yeFunction, yeReference, yeFunctionPointer, yeExpression, ysTypedef, ysVariable, ysFunction, ysAssign, ysBracket, ysIf, ysWhile, ysDo, ysRepeat, ysExpression, ysReturn, ysBreak, ysContinue, ysTextdomain, ysInclude, ysFilename, ysImport, ysBlock, ysSwitch, ysStatement, yiBreakpoint } |
Static Public Member Functions inherited from YCode | |
| static string | toString (ykind kind) |
Protected Member Functions inherited from Rep | |
| virtual void | ref_to (unsigned) const |
| virtual void | unref_to (unsigned) const |
YBreakpoint wrapper for YCP debugger.
A class representing a breakpoint in YCP code.
| YBreakpoint::YBreakpoint | ( | YCodePtr | wrapped_ycp, |
| std::string | name | ||
| ) |
Creates a new YCode element
|
virtual |
Destructor
References m_code.
| YCodePtr YBreakpoint::code | ( | ) | const |
References m_code.
| bool YBreakpoint::enabled | ( | ) | const |
References m_enabled.
|
virtual |
Execute YCP code to get the resulting YCPValue. Every inherited class of YCode should reimplement this method.
| cse | should the evaluation be done for parse time evaluation (i.e. constant subexpression elimination) |
Reimplemented from YCode.
References m_code, m_enabled, m_name, Debugger::setTracing(), Debugger::stashOutput(), toString(), y2debug, and y2internal.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
private |
| void YBreakpoint::setEnabled | ( | bool | enable | ) |
References m_enabled.
|
virtual |
|
virtual |
Return ASCII represtation of this YCP code. Actually no-op.
Reimplemented from YCode.
References m_code.
Referenced by evaluate(), and Debugger::setBreakpoint().
|
virtual |
|
virtual |
|
private |
Referenced by code(), evaluate(), isBlock(), isConstant(), isReferenceable(), isStatement(), toStream(), toString(), toXml(), type(), and ~YBreakpoint().
|
private |
Referenced by enabled(), evaluate(), and setEnabled().
|
private |
Referenced by evaluate().
1.8.2