namespace simgrid {
namespace s4u {
- As::As(const char *name)
- : name_(xbt_strdup(name))
- {
+ As::As(As* father, const char* name) : father_(father), name_(xbt_strdup(name))
+ {
}
void As::seal()
{
int As::addComponent(kernel::routing::NetCard *elm) {
vertices_.push_back(elm);
- return vertices_.size()-1; //FIXME -1 ?
+ return vertices_.size()-1; // The rank of the newly created object
}
void As::addRoute(sg_platf_route_cbarg_t /*route*/){