|
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 () |
| std::string | commentToXml () const |
| std::ostream & | commentToXml (std::ostream &str) const |
| bool | isError () const |
| void | setCommentBefore (const char *comment) |
| void | setCommentAfter (const char *comment) |
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 |
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.6