test 1 arg version for member ptrs
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun, 03 Sep 2006 12:43:09 +0200
changeset 28 fd4ad927cbd7
parent 27 77c7b2337cba
child 29 8f48d3fc5ed4
test 1 arg version for member ptrs
samples/main-simulator.cc
--- a/samples/main-simulator.cc	Sun Sep 03 12:43:00 2006 +0200
+++ b/samples/main-simulator.cc	Sun Sep 03 12:43:09 2006 +0200
@@ -9,7 +9,7 @@
 public:
 	void start (void);
 private:
-	void deal_with_event (void);
+	void deal_with_event (double event_value);
 };
 
 void 
@@ -17,12 +17,12 @@
 {
 	Simulator::schedule (RelTimeS (10.0), 
 			     &MyModel::deal_with_event, 
-			     this);
+			     this, Simulator::now ().s ());
 }
 void
-MyModel::deal_with_event (void)
+MyModel::deal_with_event (double value)
 {
-	std::cout << "Member method received event at " << Simulator::now ().s () << " started at " << std::endl;
+	std::cout << "Member method received event at " << Simulator::now ().s () << " started at " << value << std::endl;
 }
 
 static void