export new methods for language bindings
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed Jul 02 08:37:57 2008 -0700 (19 months ago)
changeset 336930750f23d51a
parent 3368 95bbf601167d
child 3370 2f8c7ecfe3ba
export new methods for language bindings
src/simulator/simulator.h
     1.1 --- a/src/simulator/simulator.h	Wed Jul 02 08:33:47 2008 -0700
     1.2 +++ b/src/simulator/simulator.h	Wed Jul 02 08:37:57 2008 -0700
     1.3 @@ -554,6 +554,31 @@
     1.4     * The returned value will always be bigger than or equal to Simulator::Now.
     1.5     */
     1.6    static Time GetMaximumSimulationTime (void);
     1.7 +  /**
     1.8 +   * \param time delay until the event expires
     1.9 +   * \param event the event to schedule
    1.10 +   * \returns a unique identifier for the newly-scheduled event.
    1.11 +   *
    1.12 +   * This method will be typically used by language bindings
    1.13 +   * to delegate events to their own subclass of the EventImpl base class.
    1.14 +   */
    1.15 +  static EventId Schedule (Time const &time, const Ptr<EventImpl> &event);  
    1.16 +  /**
    1.17 +   * \param event the event to schedule
    1.18 +   * \returns a unique identifier for the newly-scheduled event.
    1.19 +   *
    1.20 +   * This method will be typically used by language bindings
    1.21 +   * to delegate events to their own subclass of the EventImpl base class.
    1.22 +   */
    1.23 +  static EventId ScheduleDestroy (const Ptr<EventImpl> &event);
    1.24 +  /**
    1.25 +   * \param event the event to schedule
    1.26 +   * \returns a unique identifier for the newly-scheduled event.
    1.27 +   *
    1.28 +   * This method will be typically used by language bindings
    1.29 +   * to delegate events to their own subclass of the EventImpl base class.
    1.30 +   */
    1.31 +  static EventId ScheduleNow (const Ptr<EventImpl> &event);
    1.32  private:
    1.33    Simulator ();
    1.34    ~Simulator ();
    1.35 @@ -594,9 +619,6 @@
    1.36    static Ptr<EventImpl> MakeEvent (void (*f) (U1,U2,U3,U4,U5), T1 a1, T2 a2, T3 a3, T4 a4, T5 a5);
    1.37  
    1.38    static Ptr<SimulatorPrivate> GetPriv (void);
    1.39 -  static EventId Schedule (Time const &time, const Ptr<EventImpl> &event);
    1.40 -  static EventId ScheduleDestroy (const Ptr<EventImpl> &event);
    1.41 -  static EventId ScheduleNow (const Ptr<EventImpl> &event);
    1.42    static Ptr<SimulatorPrivate> m_priv;
    1.43  };
    1.44