Wrapper for Break as YCPValue. More...
#include <YCPCode.h>
Public Member Functions | |
| YCPOrder | compare (const YCPBreak &) const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| std::ostream & | toXml (std::ostream &str, int indent) const |
| YCPValueType | valuetype () const |
Protected Member Functions | |
| YCPBreakRep () | |
| ~YCPBreakRep () | |
Friends | |
| class | YCPBreak |
Wrapper for Break as YCPValue.
YCPBreak is used as a result value in YCode->evaluate in order to distinguish a normal statement/block (returning a value (return <expr>) or YCPVoid (return)) from a 'break'
| YCPBreakRep::YCPBreakRep | ( | ) | [inline, protected] |
Constructor
| YCPBreakRep::~YCPBreakRep | ( | ) | [inline, protected] |
Cleans up.
Compares two YBreaks for equality, greaterness or smallerness.
References YO_EQUAL.
| std::ostream& YCPBreakRep::toStream | ( | std::ostream & | str | ) | const [inline, virtual] |
Output value as bytecode to stream
Implements YCPElementRep.
| string YCPBreakRep::toString | ( | void | ) | const [inline, virtual] |
Returns an ASCII representation of the YBreak. Executing 'break;' always results in YCPNull()
Implements YCPElementRep.
| std::ostream & YCPBreakRep::toXml | ( | std::ostream & | str, | |
| int | indent | |||
| ) | const [virtual] |
Implements YCPValueRep.
| YCPValueType YCPBreakRep::valuetype | ( | ) | const [inline, virtual] |
friend class YCPBreak [friend] |
1.6.3