YETriple Class Reference

#include <YExpression.h>

Inheritance diagram for YETriple:

YCode Rep List of all members.

Public Member Functions

 YETriple (YCodePtr a_expr, YCodePtr a_true, YCodePtr a_false)
 YETriple (bytecodeistream &str)
 ~YETriple ()
string toString () const
YCPValue evaluate (bool cse=false)
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const

Private Member Functions

 REP_BODY (YETriple)

Private Attributes

YCodePtr m_expr
YCodePtr m_true
YCodePtr m_false

Constructor & Destructor Documentation

YETriple::YETriple YCodePtr  a_expr,
YCodePtr  a_true,
YCodePtr  a_false
 

YETriple::YETriple bytecodeistream str  ) 
 

YETriple::~YETriple  ) 
 


Member Function Documentation

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

YETriple::REP_BODY YETriple   )  [private]
 

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

writes YCode to a stream see Bytecode for read

Implements YCode.

string YETriple::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

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

return type (interesting mostly for function calls)

Reimplemented from YCode.


Member Data Documentation

YCodePtr YETriple::m_expr [private]
 

YCodePtr YETriple::m_false [private]
 

YCodePtr YETriple::m_true [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