NEDSymbolTable Class Reference
[Controlling the compilation process]

#include <nedcompiler.h>

List of all members.


Detailed Description

For fast lookup of module, channel, etc names.

To be used with NEDCompiler. Typically a new instance is needed for each NEDCompiler invocation.


Public Member Functions

 NEDSymbolTable ()
 ~NEDSymbolTable ()
void add (NEDElement *node)
Look up and return a component identified with its name
NEDElementgetChannelDeclaration (const char *name)
NEDElementgetModuleDeclaration (const char *name)
NEDElementgetNetworkDeclaration (const char *name)
NEDElementgetEnumDeclaration (const char *name)
NEDElementgetClassDeclaration (const char *name)

Protected Attributes

NEDMap channels
NEDMap modules
NEDMap networks
NEDMap enums
NEDMap classes


Constructor & Destructor Documentation

NEDSymbolTable::NEDSymbolTable  ) 
 

Constructor.

NEDSymbolTable::~NEDSymbolTable  ) 
 

Destructor.


Member Function Documentation

void NEDSymbolTable::add NEDElement node  ) 
 

Add to the symbol table the given node (channel, simple module, compound module, network enum, struct, class, message) or all such nodes in the subtree.

NEDElement* NEDSymbolTable::getChannelDeclaration const char *  name  ) 
 

Look up a channel declaration.

NEDElement* NEDSymbolTable::getClassDeclaration const char *  name  ) 
 

Look up a class declaration.

NEDElement* NEDSymbolTable::getEnumDeclaration const char *  name  ) 
 

Look up an enum declaration.

NEDElement* NEDSymbolTable::getModuleDeclaration const char *  name  ) 
 

Look up a module declaration.

NEDElement* NEDSymbolTable::getNetworkDeclaration const char *  name  ) 
 

Look up a network declaration.


Member Data Documentation

NEDMap NEDSymbolTable::channels [protected]
 

NEDMap NEDSymbolTable::classes [protected]
 

NEDMap NEDSymbolTable::enums [protected]
 

NEDMap NEDSymbolTable::modules [protected]
 

NEDMap NEDSymbolTable::networks [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Oct 21 17:48:00 2006 for OMNeT++/OMNEST NEDXML by  doxygen 1.4.6