}
}
-static simgrid::s4u::File* get_file_descriptor(std::string file_name)
+static simgrid::s4u::File* get_file_descriptor(const std::string& file_name)
{
std::string full_name = simgrid::s4u::this_actor::get_name() + ":" + file_name;
trivaNodeTypes.insert(type_->get_name());
}
-Container::Container(std::string name, std::string type_name, Container* father)
+Container::Container(std::string name, const std::string& type_name, Container* father)
: name_(std::move(name)), father_(father)
{
static long long int container_id = 0;
allContainers.erase(name_);
}
-void Container::create_child(std::string name, std::string type_name)
+void Container::create_child(std::string name, const std::string& type_name)
{
- new Container(std::move(name), std::move(type_name), this);
+ new Container(std::move(name), type_name, this);
}
Container* Container::by_name_or_null(const std::string& name)
long long int id_;
std::string name_; /* Unique name of this container */
public:
- Container(std::string name, std::string type_name, Container* father);
+ Container(std::string name, const std::string& type_name, Container* father);
virtual ~Container();
Type* type_; /* Type of this container */
StateType* get_state(const std::string& name);
LinkType* get_link(const std::string& name);
VariableType* get_variable(const std::string& name);
- void create_child(std::string name, std::string type_name);
+ void create_child(std::string name, const std::string& type_name);
static Container* get_root();
};
: PajeEvent(container, type, SIMIX_get_clock(), event_type)
, endpoint_(sourceContainer)
, value_(std::move(value))
- , key_(key)
+ , key_(std::move(key))
, size_(size)
{
}