YEBracket Class Reference

#include <YExpression.h>

Inheritance diagram for YEBracket:

YCode List of all members.

Public Member Functions

 YEBracket (YCodePtr var, YCodePtr arg, YCodePtr def, constTypePtr resultType)
 YEBracket (bytecodeistream &str)
 ~YEBracket ()
virtual ykind kind () const
string toString () const
YCPValue evaluate (bool cse=false)
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const
YCodePtr def () const

Private Member Functions

 REP_BODY (YEBracket)

Private Attributes

YCodePtr m_var
YCodePtr m_arg
YCodePtr m_def
constTypePtr m_resultType

Constructor & Destructor Documentation

YEBracket::YEBracket ( YCodePtr  var,
YCodePtr  arg,
YCodePtr  def,
constTypePtr  resultType 
)

YEBracket::YEBracket ( bytecodeistream str  ) 

YEBracket::~YEBracket (  ) 


Member Function Documentation

YEBracket::REP_BODY ( YEBracket   )  [private]

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

Returns the YCode kind

Implements YCode.

string YEBracket::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

YCPValue YEBracket::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 & YEBracket::toStream ( std::ostream &  str  )  const [virtual]

writes YCode to a stream see Bytecode for read

Implements YCode.

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

return type (interesting mostly for function calls)

Reimplemented from YCode.

YCodePtr YEBracket::def (  )  const [inline]


Member Data Documentation

YCodePtr YEBracket::m_var [private]

YCodePtr YEBracket::m_arg [private]

YCodePtr YEBracket::m_def [private]

constTypePtr YEBracket::m_resultType [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