YCPReferenceRep Class Reference

Wrapper for a reference to a SymbolEntry as YCPValue. More...

#include <YCPCode.h>

Inheritance diagram for YCPReferenceRep:
YCPValueRep YCPElementRep

List of all members.

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

Detailed Description

Wrapper for a reference to a SymbolEntry as YCPValue.


Constructor & Destructor Documentation

YCPReferenceRep::YCPReferenceRep (  )  [protected]

Constructor

YCPReferenceRep::YCPReferenceRep ( SymbolEntryPtr  entry  )  [protected]

References m_entry.

YCPReferenceRep::~YCPReferenceRep (  )  [inline, protected]

Cleans up.


Member Function Documentation

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]

Returns YT_Reference. See YCPValueRep::type.

Implements YCPValueRep.

References YT_REFERENCE.


Friends And Related Function Documentation

friend class YCPReference [friend]

Member Data Documentation

SymbolEntryPtr YCPReferenceRep::m_entry [private]

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

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