-/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static xbt::signal<void(Container const&)> on_creation;
static xbt::signal<void(Container const&)> on_destruction;
- explicit Container(const std::string& name, const std::string& type_name, Container* father);
+ explicit Container(const std::string& name, const std::string& type_name, Container* parent);
Container(const Container&) = delete;
Container& operator=(const Container&) = delete;
virtual ~Container();
Type* type_; /* Type of this container */
- Container* father_;
+ Container* parent_;
std::map<std::string, Container*, std::less<>> children_;
static Container* by_name_or_null(const std::string& name);
class NetZoneContainer : public Container {
public:
- NetZoneContainer(const std::string& name, unsigned int level, NetZoneContainer* father);
+ NetZoneContainer(const std::string& name, unsigned int level, NetZoneContainer* parent);
};
class RouterContainer : public Container {
public:
- RouterContainer(const std::string& name, Container* father);
+ RouterContainer(const std::string& name, Container* parent);
};
class HostContainer : public Container {
public:
- HostContainer(s4u::Host const& host, NetZoneContainer* father);
+ HostContainer(s4u::Host const& host, NetZoneContainer* parent);
};
} // namespace instr
} // namespace simgrid