ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ContextManager.hpp File Reference

ScriptInterface::ContextManager manages object creation with policies CreationPolicy. More...

#include "Context.hpp"
#include "Variant.hpp"
#include "core/MpiCallbacks.hpp"
#include <utils/Factory.hpp>
#include <cassert>
#include <memory>
#include <stdexcept>
#include <string>
+ Include dependency graph for ContextManager.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScriptInterface::ContextManager
 Manage object contexts. More...
 

Namespaces

namespace  ScriptInterface
 

Detailed Description

ScriptInterface::ContextManager manages object creation with policies CreationPolicy.

Object creation is delegated to ScriptInterface::GlobalContext and ScriptInterface::LocalContext. ScriptInterface::ContextManager serves as their public interface. If there is only 1 MPI rank, no communication takes place and all objects are created locally via ScriptInterface::LocalContext, including those with policy GLOBAL.

Implementation in ContextManager.cpp.

Definition in file ContextManager.hpp.