yast2-core
|
Wrapper for YCode as YCPValue. More...
#include <YCPCode.h>
Public Member Functions | |
YCodePtr | code () const |
YCPOrder | compare (const YCPCode &v) const |
string | toString () const |
std::ostream & | toStream (std::ostream &str) const |
std::ostream & | toXml (std::ostream &str, int indent) const |
YCPValueType | valuetype () const |
YCPValue | evaluate (bool cse=false) const |
![]() | |
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 |
![]() | |
YCPValue | asValue () const |
virtual const YCPElementRep * | shallowCopy () const |
Protected Member Functions | |
YCPCodeRep () | |
YCPCodeRep (YCodePtr c) | |
~YCPCodeRep () | |
![]() | |
YCPElementRep () | |
virtual | ~YCPElementRep () |
Private Attributes | |
YCodePtr | m_code |
Friends | |
class | YCPCode |
|
protected |
Constructor
References m_code.
|
protected |
Cleans up.
YCodePtr YCPCodeRep::code | ( | ) | const |
References m_code.
Referenced by YCPCodeRep().
Compares two YCodes for equality, greaterness or smallerness.
References YO_LESS.
Referenced by YCPEntryRep::~YCPEntryRep(), and YCPReferenceRep::~YCPReferenceRep().
YCPValue YCPCodeRep::evaluate | ( | bool | cse = false | ) | const |
Evaluates the code.
References m_code, toString(), and y2debug.
Referenced by YCPEntryRep::~YCPEntryRep(), and YCPReferenceRep::~YCPReferenceRep().
|
virtual |
Output value as bytecode to stream
Implements YCPElementRep.
References m_code.
Referenced by YCPEntryRep::~YCPEntryRep(), and YCPReferenceRep::~YCPReferenceRep().
|
virtual |
Returns an ASCII representation of the YCode.
Implements YCPElementRep.
References m_code.
Referenced by evaluate(), YCPEntryRep::~YCPEntryRep(), and YCPReferenceRep::~YCPReferenceRep().
|
virtual |
Implements YCPValueRep.
References m_code.
Referenced by YCPBreakRep::toStream(), YCPReturnRep::toStream(), YCPEntryRep::~YCPEntryRep(), and YCPReferenceRep::~YCPReferenceRep().
|
virtual |
Returns YT_CODE. See YCPValueRep::type.
Implements YCPValueRep.
References YT_CODE.
Referenced by YCPEntryRep::~YCPEntryRep(), and YCPReferenceRep::~YCPReferenceRep().
|
friend |
Referenced by YCPCode::YCPCode().
|
private |
Referenced by code(), evaluate(), toStream(), toString(), toXml(), and YCPCodeRep().