-/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2020. 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. */
return cont == children_.end() ? new T(name, this) : static_cast<T*>(cont->second.get());
}
- void set_calling_container(Container* container) { issuer_ = container; }
+ Type* set_calling_container(Container* container)
+ {
+ issuer_ = container;
+ return this;
+ }
void log_definition(e_event_type event_type);
void log_definition(Type* source, Type* dest);