@@ -62,11 +62,9 @@ INET_API cModule *findModuleUnderContainingNode(const cModule *from);
6262 * Returns the pointer to a module of type T or throws an error if module not found
6363 * or type mismatch.
6464 */
65- template <typename T>
66- INET_API T *findModuleFromPar (cPar& par, const cModule *from, bool required = true );
6765
6866template <typename T>
69- T *findModuleFromPar (cPar& par, const cModule *from, bool required)
67+ T *findModuleFromPar (cPar& par, const cModule *from, bool required = true )
7068{
7169 const char *path = par;
7270 if (path && *path) {
@@ -91,11 +89,9 @@ T *findModuleFromPar(cPar& par, const cModule *from, bool required)
9189 * Returns the pointer to a module of type T or throws an error if module not found
9290 * or type mismatch.
9391 */
94- template <typename T>
95- INET_API T *getModuleFromPar (cPar& par, const cModule *from, bool required = true );
9692
9793template <typename T>
98- T *getModuleFromPar (cPar& par, const cModule *from, bool required)
94+ T *getModuleFromPar (cPar& par, const cModule *from, bool required = true )
9995{
10096 const char *path = par;
10197 cModule *mod = from->getModuleByPath (path);
@@ -128,7 +124,7 @@ INET_API InterfaceEntry *getContainingNicModule(const cModule *from);
128124 * Returns nullptr if no such module is found along the path.
129125 */
130126template <typename T>
131- INET_API cGate *findConnectedGate (cGate *gate, int direction = 0 )
127+ cGate *findConnectedGate (cGate *gate, int direction = 0 )
132128{
133129 if (!gate->isConnectedOutside ())
134130 return nullptr ;
@@ -155,7 +151,7 @@ INET_API cGate *findConnectedGate(cGate *gate, int direction = 0)
155151 * Throws an error if no such module is found along the path.
156152 */
157153template <typename T>
158- INET_API cGate *getConnectedGate (cGate *gate, int direction = 0 )
154+ cGate *getConnectedGate (cGate *gate, int direction = 0 )
159155{
160156 auto connectedGate = findConnectedGate<T>(gate, direction);
161157 if (connectedGate == nullptr )
@@ -168,7 +164,7 @@ INET_API cGate *getConnectedGate(cGate *gate, int direction = 0)
168164 * Returns nullptr if no such module is found along the path.
169165 */
170166template <typename T>
171- INET_API T *findConnectedModule (cGate *gate, int direction = 0 )
167+ T *findConnectedModule (cGate *gate, int direction = 0 )
172168{
173169 auto connectedGate = findConnectedGate<T>(gate, direction);
174170 return connectedGate != nullptr ? check_and_cast<T *>(connectedGate->getOwnerModule ()) : nullptr ;
@@ -179,7 +175,7 @@ INET_API T *findConnectedModule(cGate *gate, int direction = 0)
179175 * Throws an error if no such module is found along the path.
180176 */
181177template <typename T>
182- INET_API T *getConnectedModule (cGate *gate, int direction = 0 )
178+ T *getConnectedModule (cGate *gate, int direction = 0 )
183179{
184180 auto module = findConnectedModule<T>(gate, direction);
185181 if (module == nullptr )
0 commit comments