37 std::string str()
const;
40 std::vector<PbType> T;
41 std::string str()
const;
47 PbClass(FluidSolver* parent,
const std::string& name=
"", PyObject* obj=NULL);
48 PbClass(
const PbClass& a);
52 void setName(
const std::string& name) { mName = name; }
53 std::string getName()
const {
return mName; }
54 PyObject* getPyObject()
const {
return mPyObject; }
55 void registerObject(PyObject* obj, PbArgs* args);
56 FluidSolver* getParent()
const {
return mParent; }
57 void setParent(FluidSolver* v) { mParent = v; }
61 inline bool isHidden() {
return mHidden; }
62 inline void setHidden(
bool v) { mHidden = v; }
69 static int getNumInstances();
70 static PbClass* getInstance(
int index);
71 static void renameObjects();
74 static bool isNullRef(PyObject* o);
75 static PbClass* createPyObject(
const std::string& classname,
const std::string& name, PbArgs& args, PbClass *parent);
76 inline bool canConvertTo(
const std::string& classname) {
return Pb::canConvert(mPyObject, classname); }
85 static std::vector<PbClass*> mInstances;
90 void pbFinalizePlugin(FluidSolver* parent,
const std::string& name,
bool doTime=
true);
91 void pbPreparePlugin(FluidSolver* parent,
const std::string& name,
bool doTime=
true);
92 void pbSetError(
const std::string& fn,
const std::string& ex);
Definition: commonkernels.h:22
Definition: pclass.cpp:24