Wrapper for SymbolEntry as YCPValue. More...
#include <YCPCode.h>
Public Member Functions | |
SymbolEntryPtr | entry () const |
YCPOrder | compare (const YCPEntry &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 |
Protected Member Functions | |
YCPEntryRep () | |
YCPEntryRep (SymbolEntryPtr entry) | |
~YCPEntryRep () | |
Private Attributes | |
SymbolEntryPtr | m_entry |
Friends | |
class | YCPEntry |
Wrapper for SymbolEntry as YCPValue.
YCPEntryRep::YCPEntryRep | ( | ) | [protected] |
Constructor
YCPEntryRep::YCPEntryRep | ( | SymbolEntryPtr | entry | ) | [protected] |
References m_entry.
YCPEntryRep::~YCPEntryRep | ( | ) | [inline, protected] |
Cleans up.
Compares two YCPEntrys for equality, greaterness or smallerness.
References YO_LESS.
SymbolEntryPtr YCPEntryRep::entry | ( | ) | const |
References m_entry.
YCPValue YCPEntryRep::evaluate | ( | bool | cse = false |
) | const |
Evaluates the code.
References m_entry, toString(), and y2debug.
std::ostream & YCPEntryRep::toStream | ( | std::ostream & | str | ) | const [virtual] |
Output value as bytecode to stream
Implements YCPElementRep.
References m_entry, Bytecode::writeEntry(), and y2debug.
string YCPEntryRep::toString | ( | void | ) | const [virtual] |
Returns an ASCII representation of the YCPEntry.
Implements YCPElementRep.
References m_entry.
Referenced by evaluate().
std::ostream & YCPEntryRep::toXml | ( | std::ostream & | str, | |
int | indent | |||
) | const [virtual] |
Implements YCPValueRep.
References m_entry, and Xmlcode::writeEntry().
YCPValueType YCPEntryRep::valuetype | ( | ) | const [virtual] |
friend class YCPEntry [friend] |
SymbolEntryPtr YCPEntryRep::m_entry [private] |
Referenced by entry(), evaluate(), toStream(), toString(), toXml(), and YCPEntryRep().