YETriple Class Reference

#include <YExpression.h>

Inheritance diagram for YETriple:

YCode List of all members.

Public Member Functions

 YETriple (YCodePtr a_expr, YCodePtr a_true, YCodePtr a_false)
 YETriple (bytecodeistream &str)
 ~YETriple ()
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 (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

YETriple::REP_BODY ( YETriple   )  [private]

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

Returns the YCode kind

Implements YCode.

string YETriple::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

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.

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

writes YCode to a stream see Bytecode for read

Implements 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_true [private]

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