YSAssign Class Reference

#include <YStatement.h>

Inheritance diagram for YSAssign:

YStatement YCode Rep 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

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.

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

Returns the YCode kind

Implements YCode.

Reimplemented in YSVariable.

YSAssign::REP_BODY YSAssign   )  [private]
 

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

writes YCode to a stream see Bytecode for read

Reimplemented from YStatement.

string YSAssign::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Reimplemented from YStatement.

Reimplemented in YSVariable.


Member Data Documentation

YCodePtr YSAssign::m_code [protected]
 

SymbolEntryPtr YSAssign::m_entry [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Apr 22 00:09:39 2008 for yast2-core by  doxygen 1.4.6