#include <YCPCode.h>

Public Member Functions | |
| YCPOrder | compare (const YCPReturn &) 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 | |
| YCPReturnRep () | |
| ~YCPReturnRep () | |
Friends | |
| class | YCPReturn |
YCPReturn is used as a result value in YCode->evaluate in order to distinguish a normal statement/block (resulting in YCPVoid) from a 'return;' (resulting in YCPReturn) A return with value 'return <expr>;' statement results in a YCPValue (!= YCPVoid() since 'return nil;' is not allowed)
| YCPReturnRep::YCPReturnRep | ( | ) | [inline, protected] |
Constructor
| YCPReturnRep::~YCPReturnRep | ( | ) | [inline, protected] |
Cleans up.
Compares two YReturns for equality, greaterness or smallerness.
References YO_EQUAL.
| std::ostream& YCPReturnRep::toStream | ( | std::ostream & | str | ) | const [inline, virtual] |
Output value as bytecode to stream
Implements YCPElementRep.
| string YCPReturnRep::toString | ( | void | ) | const [inline, virtual] |
Returns an ASCII representation of the YCPReturn.
Implements YCPElementRep.
| std::ostream & YCPReturnRep::toXml | ( | std::ostream & | str, | |
| int | indent | |||
| ) | const [virtual] |
Implements YCPValueRep.
| YCPValueType YCPReturnRep::valuetype | ( | ) | const [inline, virtual] |
friend class YCPReturn [friend] |
1.5.9