YSymbolEntry Class Reference

#include <YSymbolEntry.h>

Inheritance diagram for YSymbolEntry:
SymbolEntry Rep

List of all members.

Classes

union  payload

Public Member Functions

 YSymbolEntry (const Y2Namespace *name_space, unsigned int position, const char *name, category_t cat, constTypePtr type, YCodePtr payload=0)
 YSymbolEntry (const char *name, constTypePtr type, declaration_t *payload, const Y2Namespace *name_space=0)
 YSymbolEntry (const char *name, constTypePtr type, SymbolTable *payload)
 YSymbolEntry (const char *filename)
 YSymbolEntry (bytecodeistream &str, const Y2Namespace *name_space=0)
void setCode (YCodePtr code)
YCodePtr code () const
virtual bool onlyDeclared () const
void setDeclaration (declaration_t *decl)
declaration_tdeclaration () const
void setTable (SymbolTable *table)
SymbolTabletable () const
Y2NamespacepayloadNamespace () const
void setPayloadNamespace (Y2Namespace *name_space)
virtual string toString (bool with_type=true) const
std::ostream & toStream (std::ostream &str) const
std::ostream & toXml (std::ostream &str, int indent) const

Private Member Functions

 REP_BODY (YSymbolEntry)

Private Attributes

union YSymbolEntry::payload m_payload
YCodePtr m_code

Constructor & Destructor Documentation

YSymbolEntry::YSymbolEntry ( const Y2Namespace name_space,
unsigned int  position,
const char *  name,
category_t  cat,
constTypePtr  type,
YCodePtr  payload = 0 
)
YSymbolEntry::YSymbolEntry ( const char *  name,
constTypePtr  type,
declaration_t payload,
const Y2Namespace name_space = 0 
)
YSymbolEntry::YSymbolEntry ( const char *  name,
constTypePtr  type,
SymbolTable payload 
)
YSymbolEntry::YSymbolEntry ( const char *  filename  ) 
YSymbolEntry::YSymbolEntry ( bytecodeistream str,
const Y2Namespace name_space = 0 
)

Member Function Documentation

YCodePtr YSymbolEntry::code (  )  const
declaration_t * YSymbolEntry::declaration (  )  const
bool YSymbolEntry::onlyDeclared (  )  const [virtual]

Reimplemented from SymbolEntry.

References SymbolEntry::c_function, SymbolEntry::m_category, and m_code.

Y2Namespace * YSymbolEntry::payloadNamespace (  )  const
YSymbolEntry::REP_BODY ( YSymbolEntry   )  [private]
void YSymbolEntry::setCode ( YCodePtr  code  ) 
void YSymbolEntry::setDeclaration ( declaration_t decl  ) 
void YSymbolEntry::setPayloadNamespace ( Y2Namespace name_space  ) 
void YSymbolEntry::setTable ( SymbolTable table  ) 
SymbolTable * YSymbolEntry::table (  )  const
std::ostream & YSymbolEntry::toStream ( std::ostream &  str  )  const
string YSymbolEntry::toString ( bool  with_type = true  )  const [virtual]
std::ostream & YSymbolEntry::toXml ( std::ostream &  str,
int  indent 
) const

Member Data Documentation

YCodePtr YSymbolEntry::m_code [private]

the default (initial) value ('payload') of the entry -> set by YSVariable and YSFunction

It is grossly overloaded: c_builtin: declaration_t* c_module: Y2Namespace* c_namespace: SymbolTable * c_self n/a (just uses m_name) c_predefined n/a (just uses m_name) c_filename n/a (just uses m_name)

Referenced by declaration(), payloadNamespace(), setDeclaration(), setPayloadNamespace(), setTable(), table(), toStream(), toString(), and YSymbolEntry().


The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.6.3