YECall Class Reference

#include <YExpression.h>

Inheritance diagram for YECall:

YCode Rep YEFunction YEFunctionPointer List of all members.

Public Member Functions

 YECall (TableEntry *entry)
 YECall (bytecodeistream &str)
 ~YECall ()
const SymbolEntryPtr entry () const
constTypePtr attachParameter (YCodePtr code, constTypePtr type)
virtual constTypePtr finalize ()
string toString () const
std::ostream & toStream (std::ostream &str) const
constTypePtr type () const
string qualifiedName () const

Static Public Member Functions

static YECallPtr readCall (bytecodeistream &str)

Protected Attributes

TableEntrym_entry
SymbolEntryPtr m_sentry
YCodePtr * m_parameters
constTypePtr * m_parameter_types
Y2Functionm_functioncall
uint m_next_param_id

Private Member Functions

 REP_BODY (YECall)

Constructor & Destructor Documentation

YECall::YECall TableEntry entry  ) 
 

YECall::YECall bytecodeistream str  ) 
 

YECall::~YECall  ) 
 


Member Function Documentation

constTypePtr YECall::attachParameter YCodePtr  code,
constTypePtr  type
 

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

const SymbolEntryPtr YECall::entry  )  const
 

constTypePtr YECall::finalize  )  [virtual]
 

'close' function, perform final parameter check if ok, return 0 if missing parameter, return its type if undefined, return Type::Error (wrong type was already reported in attachParameter()

Reimplemented in YEFunction.

string YECall::qualifiedName  )  const
 

YECallPtr YECall::readCall bytecodeistream str  )  [static]
 

A static method to read YEFunction for function pointers and convert it to YEFunctionPointer implementation. This is needed for backward compatibility with SLES9/9.1

Parameters:
str the input bytecode stream
Returns:
read YCode or 0 on errors

YECall::REP_BODY YECall   )  [private]
 

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

writes YCode to a stream see Bytecode for read

Implements YCode.

string YECall::toString  )  const [virtual]
 

Returns an ASCII representation of the YCode.

Reimplemented from YCode.

constTypePtr YECall::type  )  const [virtual]
 

return type (interesting mostly for function calls)

Reimplemented from YCode.


Member Data Documentation

TableEntry* YECall::m_entry [protected]
 

Y2Function* YECall::m_functioncall [protected]
 

uint YECall::m_next_param_id [protected]
 

constTypePtr* YECall::m_parameter_types [protected]
 

YCodePtr* YECall::m_parameters [protected]
 

SymbolEntryPtr YECall::m_sentry [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6