sync with ns-3-dev

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-07-08 14:18:50 +01:00
commit fe73953148
66 files changed
+467 -199

No files matched your search

+12
View File
@@ -128,6 +128,18 @@ Node::GetNApplications (void) const
{
return m_applications.size ();
}
Ptr<Application>
Node::GetFirstApplication(TypeId tid)
{
for (std::vector<Ptr<Application> >::iterator i = m_applications.begin ();
i != m_applications.end (); i++) {
Ptr<Application> app = *i;
if (app->GetInstanceTypeId() == tid)
return app;
}
return 0;
}
void
Node::DoDispose()