elem.make_active();
simgrid::surf::Action* action = static_cast<simgrid::surf::Action*>(elem.variable->id);
- if (keep_track && not action->is_linked())
+ if (keep_track && not action->isLinkedModifiedSet())
keep_track->push_back(*action);
}
}
XBT_PUBLIC_CLASS Action {
public:
boost::intrusive::list_member_hook<> modifiedSetHook_; /* Used by the lazy update to list the actions to track */
+ bool isLinkedModifiedSet() const { return modifiedSetHook_.is_linked(); }
+
+ typedef boost::intrusive::member_hook<Action, boost::intrusive::list_member_hook<>, &Action::modifiedSetHook_>
+ ActionLmmOptions;
+ typedef boost::intrusive::list<Action, ActionLmmOptions> ActionLmmList;
boost::intrusive::list_member_hook<> stateSetHook_;
typedef boost::intrusive::member_hook<Action, boost::intrusive::list_member_hook<>, &Action::stateSetHook_>
double getLastValue() const { return lastValue_; }
void setLastValue(double val) { lastValue_ = val; }
Action::Type getType() const { return type_; }
- bool is_linked() const { return modifiedSetHook_.is_linked(); }
protected:
Action::SuspendStates suspended_ = Action::SuspendStates::not_suspended;
};
typedef Action::ActionList ActionList;
-
-typedef boost::intrusive::member_hook<Action, boost::intrusive::list_member_hook<>, &Action::modifiedSetHook_>
- ActionLmmOptions;
-typedef boost::intrusive::list<Action, ActionLmmOptions> ActionLmmList;
-typedef ActionLmmList* ActionLmmListPtr;
+typedef Action::ActionLmmList ActionLmmList;
+typedef Action::ActionLmmList* ActionLmmListPtr;
/*********
* Model *