|
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) |
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
| YBreakpoint::~YBreakpoint | ( | ) | [virtual] |
Destructor
References m_code.
| YCodePtr YBreakpoint::code | ( | ) | const |
References m_code.
| bool YBreakpoint::enabled | ( | ) | const |
References m_enabled.
| YCPValue YBreakpoint::evaluate | ( | bool | cse = false | ) | [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.
| bool YBreakpoint::isBlock | ( | ) | const [virtual] |
| bool YBreakpoint::isConstant | ( | ) | const [virtual] |
| bool YBreakpoint::isReferenceable | ( | ) | const [virtual] |
| bool YBreakpoint::isStatement | ( | ) | const [virtual] |
| virtual ykind YBreakpoint::kind | ( | ) | const [inline, virtual] |
| YBreakpoint::REP_BODY | ( | YBreakpoint | ) | [private] |
| void YBreakpoint::setEnabled | ( | bool | enable | ) |
References m_enabled.
| std::ostream & YBreakpoint::toStream | ( | std::ostream & | str | ) | const [virtual] |
| string YBreakpoint::toString | ( | void | ) | const [virtual] |
Return ASCII represtation of this YCP code. Actually no-op.
Reimplemented from YCode.
References m_code.
Referenced by evaluate(), and Debugger::setBreakpoint().
| std::ostream & YBreakpoint::toXml | ( | std::ostream & | str, |
| int | indent | ||
| ) | const [virtual] |
| constTypePtr YBreakpoint::type | ( | ) | const [virtual] |
YCodePtr YBreakpoint::m_code [private] |
Referenced by code(), evaluate(), isBlock(), isConstant(), isReferenceable(), isStatement(), toStream(), toString(), toXml(), type(), and ~YBreakpoint().
bool YBreakpoint::m_enabled [private] |
Referenced by enabled(), evaluate(), and setEnabled().
string YBreakpoint::m_name [private] |
Referenced by evaluate().
1.7.5.1