INET Framework for OMNeT++/OMNEST
ModuleAccess.h File Reference

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 

Functions

bool inet::isNetworkNode (const cModule *mod)
 Returns true if the given module is a network node, i.e. More...
 
INET_API cModule * inet::findModuleSomewhereUp (const char *name, const cModule *from)
 Find a module with given name, and "closest" to module "from". More...
 
cModule * inet::findContainingNode (const cModule *from)
 Find the node containing the given module. More...
 
cModule * inet::getContainingNode (const cModule *from)
 Find the node containing the given module. More...
 
cModule * inet::findModuleUnderContainingNode (const cModule *from)
 Find the ancestor module under the node containing the given module. More...
 
template<typename T >
T * inet::findModuleFromPar (cPar &par, const cModule *from)
 Finds a module in the module tree, given by its absolute or relative path defined by 'par' parameter. More...
 
template<typename T >
T * inet::getModuleFromPar (cPar &par, const cModule *from)
 Gets a module in the module tree, given by its absolute or relative path defined by 'par' parameter. More...
 
template<typename T >
cGate * inet::findConnectedGate (cGate *gate, int direction=0)
 Returns a gate of a module with type T that is on the path starting at the given gate. More...
 
template<typename T >
cGate * inet::getConnectedGate (cGate *gate, int direction=0)
 Returns a gate of a module with type T that is on the path starting at the given gate. More...
 
template<typename T >
T * inet::findConnectedModule (cGate *gate, int direction=0)
 Returns a module of type T that is on the path starting at the given gate. More...
 
template<typename T >
T * inet::getConnectedModule (cGate *gate, int direction=0)
 Returns a module of type T that is on the path starting at the given gate. More...