YCPReturnRep Class Reference

Wrapper for Return as YCPValue. More...

#include <YCPCode.h>

Inheritance diagram for YCPReturnRep:

YCPValueRep YCPElementRep List of all members.

Public Member Functions

YCPOrder compare (const YCPReturn &v) const
string toString () const
std::ostream & toStream (std::ostream &str) const
YCPValueType valuetype () const

Protected Member Functions

 YCPReturnRep ()
 ~YCPReturnRep ()

Friends

class YCPReturn

Detailed Description

Wrapper for Return as YCPValue.

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)


Constructor & Destructor Documentation

YCPReturnRep::YCPReturnRep  )  [inline, protected]
 

Constructor

YCPReturnRep::~YCPReturnRep  )  [inline, protected]
 

Cleans up.


Member Function Documentation

YCPOrder YCPReturnRep::compare const YCPReturn v  )  const [inline]
 

Compares two YReturns for equality, greaterness or smallerness.

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.

YCPValueType YCPReturnRep::valuetype  )  const [inline, virtual]
 

Returns YT_BREAK. See YCPValueRep::type.

Implements YCPValueRep.


Friends And Related Function Documentation

friend class YCPReturn [friend]
 


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6