<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Public Methode aufrufen]]></title><description><![CDATA[<p>Hi!<br />
Ich arbeite zur Zeit mit OMNeT++ (dies ist ein Framework zum erstellen von Netzwerk-Simulationen). Ich habe hier eine Klasse, die ein AnalogModel darstellt:</p>
<p>class MeinAnalogModel;</p>
<p>class MeinAnalogModelMapping: public SimpleConstMapping {<br />
protected:<br />
const double distFactor;<br />
MeinAnalogModel* model;</p>
<p>public:<br />
MeinAnalogModelMapping(const DimensionSet&amp; dimensions,<br />
MeinAnalogModel* model, const double distFactor);</p>
<p>virtual double getValue(const Argument&amp; pos) const;</p>
<p>ConstMapping* constClone() const {<br />
return new MeinAnalogModelMapping(*this);<br />
}<br />
};</p>
<p>Hier befindet sich die Methode getValue(), welche ich nun in einer anderen Klasse benötige. Beim Aufruf von MeinAnalogModul::getValue() in einer anderen Klasse, in der ich die Header Datei der MeinAnalogModel Klasse included habe, sagt mir das MeinAnalogModel keine Methode getValue() kennt. Wieso ??</p>
<p>mfg,<br />
Memph</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/285186/public-methode-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 10:27:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/285186.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Apr 2011 18:38:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Public Methode aufrufen on Fri, 15 Apr 2011 18:38:07 GMT]]></title><description><![CDATA[<p>Hi!<br />
Ich arbeite zur Zeit mit OMNeT++ (dies ist ein Framework zum erstellen von Netzwerk-Simulationen). Ich habe hier eine Klasse, die ein AnalogModel darstellt:</p>
<p>class MeinAnalogModel;</p>
<p>class MeinAnalogModelMapping: public SimpleConstMapping {<br />
protected:<br />
const double distFactor;<br />
MeinAnalogModel* model;</p>
<p>public:<br />
MeinAnalogModelMapping(const DimensionSet&amp; dimensions,<br />
MeinAnalogModel* model, const double distFactor);</p>
<p>virtual double getValue(const Argument&amp; pos) const;</p>
<p>ConstMapping* constClone() const {<br />
return new MeinAnalogModelMapping(*this);<br />
}<br />
};</p>
<p>Hier befindet sich die Methode getValue(), welche ich nun in einer anderen Klasse benötige. Beim Aufruf von MeinAnalogModul::getValue() in einer anderen Klasse, in der ich die Header Datei der MeinAnalogModel Klasse included habe, sagt mir das MeinAnalogModel keine Methode getValue() kennt. Wieso ??</p>
<p>mfg,<br />
Memph</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2049984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2049984</guid><dc:creator><![CDATA[TheBigMemph]]></dc:creator><pubDate>Fri, 15 Apr 2011 18:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to Public Methode aufrufen on Fri, 15 Apr 2011 18:44:33 GMT]]></title><description><![CDATA[<p>Wie sieht denn die Klasse &quot;MeinAnalogModel&quot; aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2049986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2049986</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 15 Apr 2011 18:44:33 GMT</pubDate></item><item><title><![CDATA[Reply to Public Methode aufrufen on Sun, 17 Apr 2011 14:59:59 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u1819" rel="nofollow">rüdiger</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (auch C++0x)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2050601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2050601</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 17 Apr 2011 14:59:59 GMT</pubDate></item></channel></rss>