YSAssign Class Reference

#include <YStatement.h>

Inheritance diagram for YSAssign:

YStatement YCode YSVariable List of all members.

Public Member Functions

 YSAssign (SymbolEntryPtr entry, YCodePtr code, int line=0)
 YSAssign (bytecodeistream &str)
 ~YSAssign ()
virtual ykind kind () const
string toString () const
std::ostream & toStream (std::ostream &str) const
YCPValue evaluate (bool cse=false)

Protected Attributes

SymbolEntryPtr m_entry
YCodePtr m_code

Private Member Functions

 REP_BODY (YSAssign)

Detailed Description

assignment or definition [<type>] <m_entry> = <m_code>


Constructor & Destructor Documentation

YSAssign::YSAssign ( SymbolEntryPtr  entry,
YCodePtr  code,
int  line = 0 
)

YSAssign::YSAssign ( bytecodeistream str  ) 

YSAssign::~YSAssign (  ) 


Member Function Documentation

YSAssign::REP_BODY ( YSAssign   )  [private]

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

Returns the YCode kind

Implements YCode.

Reimplemented in YSVariable.

string YSAssign::toString (  )  const [virtual]

Returns an ASCII representation of the YCode.

Reimplemented from YStatement.

Reimplemented in YSVariable.

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

writes YCode to a stream see Bytecode for read

Reimplemented from YStatement.

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


Member Data Documentation

SymbolEntryPtr YSAssign::m_entry [protected]

YCodePtr YSAssign::m_code [protected]


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