Changeset View
Changeset View
Standalone View
Standalone View
extern/mantaflow/helper/pwrapper/registry.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| namespace Manta { | namespace Manta { | ||||
| template<class T> struct Namify { | template<class T> struct Namify { | ||||
| static const char *S; | static const char *S; | ||||
| }; | }; | ||||
| } // namespace Manta | } // namespace Manta | ||||
| namespace Pb { | namespace Pb { | ||||
| // internal registry access | // internal registry access | ||||
| void setup(const std::string &filename, const std::vector<std::string> &args); | void setup(const std::string &filename, const std::vector<std::string> &args, PyObject *name_space); | ||||
| void finalize(); | void finalize(); | ||||
| bool canConvert(PyObject *obj, const std::string &to); | bool canConvert(PyObject *obj, const std::string &to); | ||||
| Manta::PbClass *objFromPy(PyObject *obj); | Manta::PbClass *objFromPy(PyObject *obj); | ||||
| Manta::PbClass *createPy(const std::string &classname, | Manta::PbClass *createPy(const std::string &classname, | ||||
| const std::string &name, | const std::string &name, | ||||
| Manta::PbArgs &args, | Manta::PbArgs &args, | ||||
| Manta::PbClass *parent); | Manta::PbClass *parent); | ||||
| void setReference(Manta::PbClass *cls, PyObject *obj); | void setReference(Manta::PbClass *cls, PyObject *obj); | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||