yast2-core
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
YCPReferenceRep Class Reference

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

#include <YCPCode.h>

Inheritance diagram for YCPReferenceRep:
YCPValueRep YCPElementRep

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
 
- Public Member Functions inherited from YCPValueRep
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
 
- Public Member Functions inherited from YCPElementRep
YCPValue asValue () const
 
virtual const YCPElementRepshallowCopy () const
 

Protected Member Functions

 YCPReferenceRep ()
 
 YCPReferenceRep (SymbolEntryPtr entry)
 
 ~YCPReferenceRep ()
 
- Protected Member Functions inherited from YCPElementRep
 YCPElementRep ()
 
virtual ~YCPElementRep ()
 

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 entry(), and m_entry.

YCPReferenceRep::~YCPReferenceRep ( )
inlineprotected

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.

Referenced by YCPReferenceRep().

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.

References str.

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.

References str.

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.8.5