yast2-core
Public Member Functions | Protected Member Functions | Friends | List of all members
YCPBreakRep Class Reference

Wrapper for Break as YCPValue. More...

#include <YCPCode.h>

Inheritance diagram for YCPBreakRep:
YCPValueRep YCPElementRep

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
 
- Public Member Functions inherited from YCPValueRep
const char * valuetype_str () const
 
bool isVoid () const
 
bool isBoolean () const
 
bool isInteger () const
 
bool isFloat () const
 
bool isString () const
 
bool isByteblock () const
 
bool isPath () const
 
bool isSymbol () const
 
bool isList () const
 
bool isTerm () const
 
bool isMap () const
 
bool isCode () const
 
bool isBreak () const
 
bool isReturn () const
 
bool isEntry () const
 
bool isReference () const
 
bool isExternal () const
 
YCPVoid asVoid () const
 
YCPBoolean asBoolean () const
 
YCPInteger asInteger () const
 
YCPFloat asFloat () const
 
YCPString asString () const
 
YCPByteblock asByteblock () const
 
YCPPath asPath () const
 
YCPSymbol asSymbol () const
 
YCPList asList () const
 
YCPTerm asTerm () const
 
YCPMap asMap () const
 
YCPCode asCode () const
 
YCPEntry asEntry () const
 
YCPReference asReference () const
 
YCPExternal asExternal () const
 
bool equal (const YCPValue &) const
 
YCPOrder compare (const YCPValue &v, bool rl=false) const
 
- Public Member Functions inherited from YCPElementRep
YCPValue asValue () const
 
virtual const YCPElementRepshallowCopy () const
 

Protected Member Functions

 YCPBreakRep ()
 
 ~YCPBreakRep ()
 
- Protected Member Functions inherited from YCPElementRep
 YCPElementRep ()
 
virtual ~YCPElementRep ()
 

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 ( )
inlineprotected

Constructor

YCPBreakRep::~YCPBreakRep ( )
inlineprotected

Cleans up.

Member Function Documentation

YCPOrder YCPBreakRep::compare ( const YCPBreak ) const
inline

Compares two YBreaks for equality, greaterness or smallerness.

References YO_EQUAL.

std::ostream& YCPBreakRep::toStream ( std::ostream &  str) const
inlinevirtual

Output value as bytecode to stream

Implements YCPElementRep.

References str.

string YCPBreakRep::toString ( void  ) const
inlinevirtual

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
inlinevirtual

Returns YT_BREAK. See YCPValueRep::type.

Implements YCPValueRep.

References YT_BREAK.

Friends And Related Function Documentation

friend class YCPBreak
friend

The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.8.6