YSWhile Class Reference

#include <YStatement.h>

Inheritance diagram for YSWhile:

YStatement YCode List of all members.

Public Member Functions

 YSWhile (YCodePtr expr, YCodePtr loop, int line=0)
 YSWhile (bytecodeistream &str)
 ~YSWhile ()
virtual ykind kind () const
string toString () const
std::ostream & toStream (std::ostream &str) const
YCPValue evaluate (bool cse=false)
constTypePtr type () const

Private Member Functions

 REP_BODY (YSWhile)

Private Attributes

YCodePtr m_condition
YCodePtr m_loop

Detailed Description

while-do statement (-> bool expr, loop statement)


Constructor & Destructor Documentation

YSWhile::YSWhile ( YCodePtr  expr,
YCodePtr  loop,
int  line = 0 
)

YSWhile::YSWhile ( bytecodeistream str  ) 

YSWhile::~YSWhile (  ) 


Member Function Documentation

YSWhile::REP_BODY ( YSWhile   )  [private]

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

Returns the YCode kind

Implements YCode.

string YSWhile::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YStatement.

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

writes YCode to a stream see Bytecode for read

Reimplemented from YStatement.

YCPValue YSWhile::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 YStatement.

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

return type (interesting mostly for function calls)

Reimplemented from YStatement.


Member Data Documentation

YCodePtr YSWhile::m_condition [private]

YCodePtr YSWhile::m_loop [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