std::vector<sg4::Host*> hosts_;
public:
- explicit Sender(const std::vector<sg4::Host*> hosts) : hosts_{hosts} {}
+ explicit Sender(const std::vector<sg4::Host*>& hosts) : hosts_{hosts} {}
void operator()() const
{
/* Vector in which we store all ongoing communications */
private:
/** @brief Auxiliary function to get list of LinkImpl */
- static std::vector<kernel::resource::LinkImpl*> get_link_list_impl(const std::vector<Link*> link_list);
+ static std::vector<kernel::resource::LinkImpl*> get_link_list_impl(const std::vector<Link*>& link_list);
};
// External constructors so that the types (and the types of their content) remain hidden
class EvtSetTools {
public:
static bool contains(const EventSet& events, const UnfoldingEvent* e);
- static UnfoldingEvent* find(const EventSet events, const UnfoldingEvent* e);
+ static UnfoldingEvent* find(const EventSet& events, const UnfoldingEvent* e);
static void subtract(EventSet& events, EventSet const& otherSet);
- static bool depends(EventSet const& events, EventSet const& otherSet);
+ static bool depends(const EventSet& events, const EventSet& otherSet);
static bool isEmptyIntersection(EventSet evtS1, EventSet evtS2);
static EventSet makeUnion(const EventSet& s1, const EventSet& s2);
static void pushBack(EventSet& events, UnfoldingEvent* e);
return pimpl_->add_component(elm);
}
-std::vector<kernel::resource::LinkImpl*> NetZone::get_link_list_impl(const std::vector<Link*> link_list)
+std::vector<kernel::resource::LinkImpl*> NetZone::get_link_list_impl(const std::vector<Link*>& link_list)
{
std::vector<kernel::resource::LinkImpl*> links;
for (const auto& link : link_list) {