yast2-core
|
#include <Y2SystemNamespace.h>
Public Member Functions | |
Y2SystemNamespace (Y2Namespace *local_ns) | |
virtual | ~Y2SystemNamespace () |
virtual const string | name () const |
what namespace do we implement More... | |
virtual const string | filename () const |
used for error reporting More... | |
virtual YCPValue | evaluate (bool) |
called when evaluating the import statement More... | |
virtual Y2Function * | createFunctionCall (const string name, constFunctionTypePtr type) |
void | useRemote (Y2ProgramComponent *sender) |
void | useLocal () |
![]() | |
Y2Namespace () | |
virtual | ~Y2Namespace () |
void | finish () |
virtual unsigned int | symbolCount () const |
gives the number of symbol declarations More... | |
virtual SymbolEntryPtr | symbolEntry (unsigned int position) const |
access to definitions of this namespace More... | |
virtual string | toString () const |
unparse. useful for debugging More... | |
string | symbolsToString () const |
virtual SymbolTable * | table () const |
get our whole symbol table? More... | |
void | createTable () |
void | pushToStack () |
void | popFromStack () |
virtual void | initialize () |
Private Member Functions | |
void | unregisterFunction (Y2SystemFunction *f) |
Private Attributes | |
Y2Namespace * | m_local_ns |
Y2ProgramComponent * | m_remote_sender |
bool | m_use_remote |
vector< Y2SystemFunction * > | m_functions |
string | m_name |
Friends | |
class | Y2SystemFunction |
Additional Inherited Members | |
![]() | |
typedef vector< SymbolEntryPtr > | symbols_t |
![]() | |
unsigned int | addSymbol (SymbolEntryPtr sentry) |
void | enterSymbol (SymbolEntryPtr sentry, Point *point=0) |
SymbolEntryPtr | lookupSymbol (const char *name) const |
void | releaseSymbol (unsigned int position) |
![]() | |
SymbolTable * | m_table |
unsigned int | m_symbolcount |
symbols_t | m_symbols |
bool | m_initialized |
Y2SystemNamespace::Y2SystemNamespace | ( | Y2Namespace * | local_ns | ) |
|
virtual |
References Y2Namespace::m_table.
|
virtual |
Creates a function call instance, which can be used to call a function from this namespace. The object is NOT owned anymore by this instance, the caller can (and should) delete it.
name | name of the required function |
type | the type of the function (needed for overloading) |
Implements Y2Namespace.
References SymbolEntry::c_function, Y2Namespace::createFunctionCall(), SymbolTable::find(), m_functions, m_local_ns, m_name, m_remote_sender, m_use_remote, name(), Y2Namespace::name(), TableEntry::sentry(), Y2Namespace::table(), y2debug, and Y2SystemFunction.
|
virtual |
called when evaluating the import statement
Implements Y2Namespace.
References Y2Namespace::evaluate(), and m_local_ns.
|
virtual |
used for error reporting
Implements Y2Namespace.
|
virtual |
what namespace do we implement
Reimplemented from Y2Namespace.
References m_name.
Referenced by createFunctionCall(), and Y2WFMComponent::import().
|
private |
References m_functions.
Referenced by Y2SystemFunction::~Y2SystemFunction().
void Y2SystemNamespace::useLocal | ( | ) |
References m_functions, m_use_remote, and y2milestone.
void Y2SystemNamespace::useRemote | ( | Y2ProgramComponent * | sender | ) |
References m_functions, m_local_ns, m_name, m_remote_sender, m_use_remote, Y2Namespace::name(), Y2ProgramComponent::name(), and y2debug.
|
friend |
Referenced by createFunctionCall().
|
private |
Referenced by createFunctionCall(), unregisterFunction(), useLocal(), useRemote(), and Y2SystemNamespace().
|
private |
Referenced by createFunctionCall(), evaluate(), and useRemote().
|
private |
Referenced by createFunctionCall(), name(), useRemote(), and Y2SystemNamespace().
|
private |
Referenced by createFunctionCall(), and useRemote().
|
private |
Referenced by createFunctionCall(), useLocal(), and useRemote().