Struct InterpreterSession¶
Defined in File deploy.h
Struct Documentation¶
-
struct InterpreterSession¶
Public Functions
-
inline explicit InterpreterSession(InterpreterSessionImpl *impl) noexcept¶
-
inline InterpreterSession(InterpreterSessionImpl *impl, InterpreterManager *manager) noexcept¶
-
inline bool isOwner(Obj obj)¶
Returns true if
obj
belongs to thisInterpreterSession
-
InterpreterSession(InterpreterSession&&) noexcept = default¶
-
~InterpreterSession()¶
-
inline Obj global(const char *module, const char *name)¶
global
imports a python object from the specified module.Specifically
global
is analogous to “from `module` import `name`” in python.
-
ReplicatedObj createMovable(Obj obj)¶
Use `ReplicatedObj InterpreterManager::createMovable(Obj obj, InterpreterSession* I)’ instead.
We will have no backwards compatibility guarentees for this function.
-
Obj fromMovable(const ReplicatedObj &obj)¶
Converts a
ReplicatedObj
to anObj
on this InterpreterSession.
Protected Functions
-
bool attachDeconstructorCallback(std::function<void()> func)¶
Friends
- friend struct LoadBalancer
-
inline explicit InterpreterSession(InterpreterSessionImpl *impl) noexcept¶