YEReturn Class Reference

#include <YExpression.h>

Inheritance diagram for YEReturn:

YCode List of all members.

Public Member Functions

 YEReturn (YCodePtr expr)
 YEReturn (bytecodeistream &str)
 ~YEReturn ()
virtual ykind kind () const
string toString () const
YCPValue evaluate (bool cse=false)
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const

Private Member Functions

 REP_BODY (YEReturn)

Private Attributes

YCodePtr m_expr

Constructor & Destructor Documentation

YEReturn::YEReturn ( YCodePtr  expr  ) 

YEReturn::YEReturn ( bytecodeistream str  ) 

YEReturn::~YEReturn (  ) 


Member Function Documentation

YEReturn::REP_BODY ( YEReturn   )  [private]

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

Returns the YCode kind

Implements YCode.

string YEReturn::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

YCPValue YEReturn::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.

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

writes YCode to a stream see Bytecode for read

Implements YCode.

constTypePtr YEReturn::type (  )  const [inline, virtual]

return type (interesting mostly for function calls)

Reimplemented from YCode.


Member Data Documentation

YCodePtr YEReturn::m_expr [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:23 2007 for yast2-core by  doxygen 1.5.0