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