test 1 arg version for member ptrs
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun Sep 03 12:43:09 2006 +0200 (2006-09-03)
changeset 28fd4ad927cbd7
parent 27 77c7b2337cba
child 29 8f48d3fc5ed4
test 1 arg version for member ptrs
samples/main-simulator.cc
     1.1 --- a/samples/main-simulator.cc	Sun Sep 03 12:43:00 2006 +0200
     1.2 +++ b/samples/main-simulator.cc	Sun Sep 03 12:43:09 2006 +0200
     1.3 @@ -9,7 +9,7 @@
     1.4  public:
     1.5  	void start (void);
     1.6  private:
     1.7 -	void deal_with_event (void);
     1.8 +	void deal_with_event (double event_value);
     1.9  };
    1.10  
    1.11  void 
    1.12 @@ -17,12 +17,12 @@
    1.13  {
    1.14  	Simulator::schedule (RelTimeS (10.0), 
    1.15  			     &MyModel::deal_with_event, 
    1.16 -			     this);
    1.17 +			     this, Simulator::now ().s ());
    1.18  }
    1.19  void
    1.20 -MyModel::deal_with_event (void)
    1.21 +MyModel::deal_with_event (double value)
    1.22  {
    1.23 -	std::cout << "Member method received event at " << Simulator::now ().s () << " started at " << std::endl;
    1.24 +	std::cout << "Member method received event at " << Simulator::now ().s () << " started at " << value << std::endl;
    1.25  }
    1.26  
    1.27  static void