YCPBreakRep Class Reference

Wrapper for Break as YCPValue. More...

#include <YCPCode.h>

Inheritance diagram for YCPBreakRep:

YCPValueRep YCPElementRep List of all members.

Public Member Functions

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

Protected Member Functions

 YCPBreakRep ()
 ~YCPBreakRep ()

Friends

class YCPBreak

Detailed Description

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'


Constructor & Destructor Documentation

YCPBreakRep::YCPBreakRep  )  [inline, protected]
 

Constructor

YCPBreakRep::~YCPBreakRep  )  [inline, protected]
 

Cleans up.


Member Function Documentation

YCPOrder YCPBreakRep::compare const YCPBreak v  )  const [inline]
 

Compares two YBreaks for equality, greaterness or smallerness.

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.

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

Returns YT_BREAK. See YCPValueRep::type.

Implements YCPValueRep.


Friends And Related Function Documentation

friend class YCPBreak [friend]
 


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