Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YETerm Class Reference

#include <YExpression.h>

Inheritance diagram for YETerm:

YCode Rep List of all members.

Public Member Functions

 YETerm (const char *name)
 YETerm (std::istream &str)
 ~YETerm ()
constTypePtr attachParameter (YCodePtr code, constTypePtr dummy=Type::Unspec)
string toString () const
const char * name () const
YCPValue evaluate (bool cse=false)
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const

Private Member Functions

 REP_BODY (YETerm)

Private Attributes

const char * m_name
ycodelist_tm_parameters

Constructor & Destructor Documentation

YETerm::YETerm const char *  name  ) 
 

YETerm::YETerm std::istream &  str  ) 
 

YETerm::~YETerm  ) 
 


Member Function Documentation

constTypePtr YETerm::attachParameter YCodePtr  code,
constTypePtr  dummy = Type::Unspec
 

Attach parameter to external function call

Parameters:
code: parameter code
type: parameter type
Returns:
NULL if success, != NULL (expected type) if wrong parameter type Type::Unspec if bad code (NULL or isError) Type::Error if excessive parameter

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

const char * YETerm::name  )  const
 

YETerm::REP_BODY YETerm   )  [private]
 

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

writes YCode to a stream see Bytecode for read

Implements YCode.

string YETerm::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

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

return type (interesting mostly for function calls)

Reimplemented from YCode.


Member Data Documentation

const char* YETerm::m_name [private]
 

ycodelist_t* YETerm::m_parameters [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6