Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(425)

Unified Diff: src/helper/node-container.cc

Issue 109068: Ns-3 MPI Distributed Simulation (Closed)
Patch Set: Fix valgrind and merged Created 14 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/helper/node-container.h ('k') | src/helper/point-to-point-helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/helper/node-container.cc
===================================================================
--- a/src/helper/node-container.cc
+++ b/src/helper/node-container.cc
@@ -97,6 +97,14 @@
}
}
void
+NodeContainer::Create (uint32_t n, uint32_t systemId)
+{
+ for (uint32_t i = 0; i < n; i++)
+ {
+ m_nodes.push_back (CreateObject<Node> (systemId));
+ }
+}
+void
NodeContainer::Add (NodeContainer other)
{
for (Iterator i = other.Begin (); i != other.End (); i++)
« no previous file with comments | « src/helper/node-container.h ('k') | src/helper/point-to-point-helper.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b