YCPEntryRep Class Reference

Wrapper for SymbolEntry as YCPValue. More...

#include <YCPCode.h>

Inheritance diagram for YCPEntryRep:
YCPValueRep YCPElementRep

List of all members.

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

Detailed Description

Wrapper for SymbolEntry as YCPValue.


Constructor & Destructor Documentation

YCPEntryRep::YCPEntryRep (  )  [protected]

Constructor

YCPEntryRep::YCPEntryRep ( SymbolEntryPtr  entry  )  [protected]

References m_entry.

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

Cleans up.


Member Function Documentation

YCPOrder YCPEntryRep::compare ( const YCPEntry v  )  const

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]

Returns YT_ENTRY. See YCPValueRep::type.

Implements YCPValueRep.

References YT_ENTRY.


Friends And Related Function Documentation

friend class YCPEntry [friend]

Member Data Documentation

SymbolEntryPtr YCPEntryRep::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