X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec53f56800087e5f383314bf6955ffab3a0e5c35..d8232f0af88b82c158f0451e3b41ef9ec85ced02:/include/simgrid/jedule/jedule_events.hpp diff --git a/include/simgrid/jedule/jedule_events.hpp b/include/simgrid/jedule/jedule_events.hpp index a3d4326598..5af7f4e576 100644 --- a/include/simgrid/jedule/jedule_events.hpp +++ b/include/simgrid/jedule/jedule_events.hpp @@ -19,23 +19,23 @@ namespace jedule{ class XBT_PUBLIC Event { public: - Event(const std::string& name, double start_time, double end_time, const std::string& type); - Event(const Event&) = delete; - Event& operator=(const Event&) = delete; - ~Event(); + Event(const std::string& name, double start_time, double end_time, const std::string& type) + : name_(name), start_time_(start_time), end_time_(end_time), type_(type) + { + } void add_characteristic(char* characteristic); - void add_resources(std::vector* host_selection); + void add_resources(const std::vector& host_selection); void add_info(char* key, char* value); - void print(FILE* file); + void print(FILE* file) const; private: std::string name_; double start_time_; double end_time_; std::string type_; - std::vector* resource_subsets_; - std::vector characteristics_list_; /* just a list of names */ - std::unordered_map info_map_; /* key/value pairs */ + std::vector resource_subsets_; + std::vector characteristics_list_; /* just a list of names */ + std::unordered_map info_map_; /* key/value pairs */ }; } }