YEReference Class Reference

#include <YExpression.h>

Inheritance diagram for YEReference:

YCode Rep

List of all members.

Public Member Functions

 YEReference (SymbolEntryPtr entry)
 YEReference (bytecodeistream &str)
 ~YEReference ()
virtual ykind kind () const
const char * name () const
SymbolEntryPtr entry () const
string toString () const
YCPValue evaluate (bool cse=false)
std::ostream & toStream (std::ostream &str) const
std::ostream & toXml (std::ostream &str, int indent) const
constTypePtr type () const

Private Member Functions

 REP_BODY (YEReference)

Private Attributes

SymbolEntryPtr m_entry


Constructor & Destructor Documentation

YEReference::YEReference ( SymbolEntryPtr  entry  ) 

References y2debug.

YEReference::YEReference ( bytecodeistream str  ) 

References m_entry, and Bytecode::readEntry().

YEReference::~YEReference (  )  [inline]


Member Function Documentation

YEReference::REP_BODY ( YEReference   )  [private]

virtual ykind YEReference::kind (  )  const [inline, virtual]

Returns the YCode kind

Implements YCode.

References YCode::yeReference.

const char * YEReference::name (  )  const

References m_entry.

SymbolEntryPtr YEReference::entry (  )  const

References m_entry.

string YEReference::toString ( void   )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

References m_entry.

Referenced by evaluate().

YCPValue YEReference::evaluate ( bool  cse = false  )  [virtual]

evaluate YCode to YCPValue if debugger == 0 called for parse time evaluation (i.e. constant subexpression elimination) else called for runtime evaluation

Reimplemented from YCode.

References YCPElement::isNull(), m_entry, toString(), and y2debug.

std::ostream & YEReference::toStream ( std::ostream &  str  )  const [virtual]

writes YCode to a stream see Bytecode for read

Implements YCode.

References m_entry, YCode::toStream(), and Bytecode::writeEntry().

std::ostream & YEReference::toXml ( std::ostream &  str,
int  indent 
) const [virtual]

Implements YCode.

References m_entry, and Xmlcode::writeEntry().

constTypePtr YEReference::type (  )  const [virtual]

return type (interesting mostly for function calls)

Reimplemented from YCode.

References m_entry.


Member Data Documentation

SymbolEntryPtr YEReference::m_entry [private]


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

Generated on Fri Jun 6 22:21:58 2008 for yast2-core by  doxygen 1.5.5