YEBracket Class Reference

#include <YExpression.h>

Inheritance diagram for YEBracket:

YCode Rep List of all members.

Public Member Functions

 YEBracket (YCodePtr var, YCodePtr arg, YCodePtr def, constTypePtr resultType)
 YEBracket (bytecodeistream &str)
 ~YEBracket ()
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

YCodePtr YEBracket::def  )  const [inline]
 

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.

YEBracket::REP_BODY YEBracket   )  [private]
 

std::ostream & YEBracket::toStream std::ostream &  str  )  const [virtual]
 

writes YCode to a stream see Bytecode for read

Implements YCode.

string YEBracket::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

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

return type (interesting mostly for function calls)

Reimplemented from YCode.


Member Data Documentation

YCodePtr YEBracket::m_arg [private]
 

YCodePtr YEBracket::m_def [private]
 

constTypePtr YEBracket::m_resultType [private]
 

YCodePtr YEBracket::m_var [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6