|
MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <string>
Include dependency graph for moosemodule.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | _Field |
| struct | _Id |
| struct | _ObjId |
| struct | module_state |
Macros | |
| #define | ElementField_Check(v) (Py_TYPE(v) == &moose_ElementField) |
| #define | ElementField_SubtypeCheck(v) (PyType_IsSubtype(Py_TYPE(v), &moose_ElementField)) |
| #define | GETSTATE(m) (&_state) |
| #define | Id_Check(v) (Py_TYPE(v) == &IdType) |
| #define | Id_SubtypeCheck(v) (PyType_IsSubtype(Py_TYPE(v),&IdType)) |
| #define | LookupField_Check(v) (Py_TYPE(v) == &moose_LookupField) |
| #define | maxArgs 10 |
| #define | minArgs 1 |
| #define | O32_HOST_ORDER (o32_host_order.value) |
| #define | ObjId_Check(v) (Py_TYPE(v) == &ObjIdType) |
| #define | ObjId_SubtypeCheck(v) (PyType_IsSubtype(Py_TYPE(v), &ObjIdType)) |
| #define | RAISE_INVALID_ID(ret, msg) |
| #define | RAISE_TYPE_ERROR(ret, type) |
| #define | SET_LOOKUP_VALUE(TYPE) |
| #define | SHELLPTR (reinterpret_cast<Shell*>(getShell(0, NULL).eref().data())) |
Enumerations | |
| enum | { O32_LITTLE_ENDIAN = 0x03020100ul, O32_BIG_ENDIAN = 0x00010203ul, O32_PDP_ENDIAN = 0x01000302ul } |
Functions | |
| template<class A > | |
| PyObject * | _set_vector_destFinfo (ObjId obj, string fieldName, PyObject *value, char vtypecode) |
| PyObject * | convert_and_set_tuple_entry (PyObject *tuple, unsigned int index, void *vptr, char typecode) |
| Id | create_Id_from_path (string path, unsigned int numData, unsigned int isGlobal, string type) |
| int | defineAllClasses (PyObject *module_dict) |
| int | defineClass (PyObject *module_dict, const Cinfo *cinfo) |
| int | defineDestFinfos (const Cinfo *cinfo) |
| int | defineElementFinfos (const Cinfo *cinfo) |
| int | defineLookupFinfos (const Cinfo *cinfo) |
| PyObject * | deleteObjId (ObjId obj) |
| const map< string, string > & | get_field_alias () |
| map< string, vector < PyGetSetDef > > & | get_getsetdefs () |
| map< string, PyTypeObject * > & | get_moose_classes () |
| int | get_npy_typenum (const type_info &ctype) |
| template<typename KeyType , typename ValueType > | |
| PyObject * | get_simple_lookupfield (ObjId oid, string fieldname, KeyType key, char vtypecode) |
| template<typename KeyType , typename ValueType > | |
| PyObject * | get_vec_lookupfield (ObjId oid, string fieldname, KeyType key, char vtypecode) |
| PyTypeObject * | getBaseClass (PyObject *self) |
| vector< string > | getFieldNames (string className, string finfoType) |
| string | getFieldType (string className, string fieldName) |
| const char ** | getFinfoTypes () |
| finalize() More... | |
| PyObject * | getLookupField (ObjId oid, char *fieldName, PyObject *key) |
| PyObject * | getObjIdAttr (_ObjId *oid, string attribute) |
| Id | getShell (int argc, char **argv) |
| setup_runtime_env() More... | |
| PyMODINIT_FUNC | init_moose () |
| char | innerType (char) |
| template<class KeyType > | |
| PyObject * | lookup_value (const ObjId &oid, string fname, char value_type_code, char key_type_code, PyObject *key) |
| PyObject * | moose_connect (PyObject *dummy, PyObject *args) |
| PyObject * | moose_copy (PyObject *dummy, PyObject *args, PyObject *kwargs) |
| PyObject * | moose_delete (PyObject *dummy, PyObject *args) |
| PyObject * | moose_element (PyObject *dummy, PyObject *args) |
| PyObject * | moose_ElementField_getattro (_Field *self, PyObject *attr) |
| PyObject * | moose_ElementField_getDataId (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getId (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getItem (_Field *self, Py_ssize_t index) |
| Py_ssize_t | moose_ElementField_getLen (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getName (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getNum (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getOwner (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getPath (_Field *self, void *closure) |
| PyObject * | moose_ElementField_getSlice (_Field *self, Py_ssize_t start, Py_ssize_t end) |
| int | moose_ElementField_init (_Field *self, PyObject *args, PyObject *kwargs) |
| int | moose_ElementField_setattro (_Field *self, PyObject *attr, PyObject *value) |
| int | moose_ElementField_setNum (_Field *self, PyObject *num, void *closure) |
| PyObject * | moose_exists (PyObject *dummy, PyObject *args) |
| void | moose_Field_dealloc (_Field *self) |
| long | moose_Field_hash (_Field *self) |
Return the hash of the string {objectpath}.{fieldName} More... | |
| int | moose_Field_init (_Field *self, PyObject *args, PyObject *kwds) |
| PyObject * | moose_Field_repr (_Field *self) |
String representation of fields is {objectpath}.{fieldName} More... | |
| PyObject * | moose_getCwe (PyObject *dummy, PyObject *args) |
| PyObject * | moose_getField (PyObject *dummy, PyObject *args) |
| PyObject * | moose_getFieldDict (PyObject *dummy, PyObject *args) |
| int | moose_Id_contains (_Id *self, PyObject *args) |
| PyObject * | moose_Id_delete (_Id *self) |
| PyObject * | moose_Id_getattro (_Id *self, PyObject *attr) |
| PyObject * | moose_Id_getItem (_Id *self, Py_ssize_t index) |
| Py_ssize_t | moose_Id_getLength (_Id *self) |
| PyObject * | moose_Id_getPath (_Id *self) |
| PyObject * | moose_Id_getShape (_Id *self) |
| PyObject * | moose_Id_getSlice (_Id *self, Py_ssize_t start, Py_ssize_t end) |
| PyObject * | moose_Id_getValue (_Id *self) |
| long | moose_Id_hash (_Id *self) |
| int | moose_Id_init (_Id *self, PyObject *args, PyObject *kwargs) |
| PyObject * | moose_Id_repr (_Id *self) |
| PyObject * | moose_Id_richCompare (_Id *self, PyObject *args, int op) |
| int | moose_Id_setattro (_Id *self, PyObject *attr, PyObject *value) |
| PyObject * | moose_Id_setField (_Id *self, PyObject *args) |
| PyObject * | moose_Id_str (_Id *self) |
| PyObject * | moose_Id_subscript (_Id *self, PyObject *op) |
| PyObject * | moose_isRunning (PyObject *dummy, PyObject *args) |
| PyObject * | moose_loadModel (PyObject *dummy, PyObject *args) |
| PyObject * | moose_LookupField_getItem (_Field *self, PyObject *key) |
| int | moose_LookupField_setItem (_Field *self, PyObject *key, PyObject *value) |
| PyObject * | moose_move (PyObject *dummy, PyObject *args) |
| PyObject * | moose_ObjId_connect (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_get_destField_attr (PyObject *self, void *closure) |
| PyObject * | moose_ObjId_get_elementField_attr (PyObject *self, void *closure) |
| PyObject * | moose_ObjId_get_lookupField_attr (PyObject *self, void *closure) |
| PyObject * | moose_ObjId_getattro (_ObjId *self, PyObject *attr) |
| PyObject * | moose_ObjId_getDataIndex (_ObjId *self) |
| PyObject * | moose_ObjId_getField (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_getFieldIndex (_ObjId *self) |
| PyObject * | moose_ObjId_getFieldNames (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_getFieldType (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_getId (_ObjId *self) |
| PyObject * | moose_ObjId_getItem (_ObjId *self, Py_ssize_t index) |
| Py_ssize_t | moose_ObjId_getLength (_ObjId *self) |
| PyObject * | moose_ObjId_getLookupField (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_getNeighbors (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_getSlice (_ObjId *self, Py_ssize_t start, Py_ssize_t end) |
| long | moose_ObjId_hash (_ObjId *self) |
| int | moose_ObjId_init (_ObjId *self, PyObject *args, PyObject *kwargs) |
| PyObject * | moose_ObjId_repr (_ObjId *self) |
| PyObject * | moose_ObjId_richcompare (_ObjId *self, PyObject *args, int op) |
| int | moose_ObjId_setattro (_ObjId *self, PyObject *attr, PyObject *value) |
| PyObject * | moose_ObjId_setDestField (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_setField (_ObjId *self, PyObject *args) |
| PyObject * | moose_ObjId_setLookupField (_ObjId *self, PyObject *args) |
| PyObject * | moose_quit (PyObject *dummy) |
| PyObject * | moose_reinit (PyObject *dummy, PyObject *args) |
| PyObject * | moose_seed (PyObject *dummy, PyObject *args) |
| PyObject * | moose_setClock (PyObject *dummy, PyObject *args) |
| PyObject * | moose_setCwe (PyObject *dummy, PyObject *args) |
| PyObject * | moose_start (PyObject *dummy, PyObject *args) |
| PyObject * | moose_stop (PyObject *dummy, PyObject *args) |
| PyObject * | moose_syncDataHandler (PyObject *dummy, PyObject *target) |
| PyObject * | moose_useClock (PyObject *dummy, PyObject *args) |
| PyObject * | moose_wildcardFind (PyObject *dummy, PyObject *args) |
| PyObject * | oid_to_element (ObjId oid) |
| int | parseFinfoType (string className, string finfoType, string fieldName, vector< string > &typeVec) |
| vector< int > | pysequence_to_dimvec (PyObject *dims) |
| template<typename T > | |
| vector< T > * | PySequenceToVector (PyObject *seq, char typecode) |
| template<typename T > | |
| vector< vector< T > > * | PySequenceToVectorOfVectors (PyObject *seq, char typecode) |
| template<class KeyType > | |
| int | set_lookup_value (const ObjId &oid, string fname, char value_type_code, char key_type_code, PyObject *key, PyObject *value_obj) |
| PyObject * | setDestFinfo (ObjId obj, string fieldName, PyObject *arg, string argType) |
| template<class A > | |
| PyObject * | setDestFinfo1 (ObjId obj, string fieldName, PyObject *arg1, char type1, A arg2) |
| PyObject * | setDestFinfo2 (ObjId obj, string fieldName, PyObject *arg1, char type1, PyObject *arg2, char type2) |
| int | setLookupField (ObjId oid, char *fieldName, PyObject *key, PyObject *value) |
| char | shortType (string) |
| void * | to_cpp (PyObject *object, char typecode) |
| PyObject * | to_py (void *obj, char typecode) |
| PyObject * | to_pytuple (void *obj, char typecode) |
Variables | |
| static struct module_state | _state |
| union { | |
| unsigned char bytes [4] | |
| uint32_t value | |
| } | o32_host_order = { { 0, 1, 2, 3 } } |
| #define ElementField_Check | ( | v | ) | (Py_TYPE(v) == &moose_ElementField) |
Definition at line 100 of file moosemodule.h.
| #define ElementField_SubtypeCheck | ( | v | ) | (PyType_IsSubtype(Py_TYPE(v), &moose_ElementField)) |
Definition at line 101 of file moosemodule.h.
Referenced by moose_element().
| #define GETSTATE | ( | m | ) | (&_state) |
Definition at line 67 of file moosemodule.h.
Referenced by MODINIT().
| #define Id_Check | ( | v | ) | (Py_TYPE(v) == &IdType) |
Definition at line 95 of file moosemodule.h.
Referenced by moose_ObjId_init_from_id().
| #define Id_SubtypeCheck | ( | v | ) | (PyType_IsSubtype(Py_TYPE(v),&IdType)) |
Definition at line 96 of file moosemodule.h.
Referenced by moose_connect(), and moose_Id_init().
| #define LookupField_Check | ( | v | ) | (Py_TYPE(v) == &moose_LookupField) |
Definition at line 99 of file moosemodule.h.
| #define maxArgs 10 |
Definition at line 88 of file moosemodule.h.
Referenced by moose_ObjId_setDestField(), and parseFinfoType().
| #define minArgs 1 |
Definition at line 84 of file moosemodule.h.
Referenced by moose_ObjId_setDestField().
| #define O32_HOST_ORDER (o32_host_order.value) |
Definition at line 45 of file moosemodule.h.
| #define ObjId_Check | ( | v | ) | (Py_TYPE(v) == &ObjIdType) |
Definition at line 97 of file moosemodule.h.
| #define ObjId_SubtypeCheck | ( | v | ) | (PyType_IsSubtype(Py_TYPE(v), &ObjIdType)) |
Definition at line 98 of file moosemodule.h.
Referenced by moose_connect(), moose_Id_contains(), and moose_Id_init().
| #define RAISE_INVALID_ID | ( | ret, | |
| msg | |||
| ) |
Definition at line 71 of file moosemodule.h.
Referenced by moose_connect(), moose_copy(), moose_delete(), moose_ElementField_getattro(), moose_ElementField_getDataId(), moose_ElementField_getId(), moose_ElementField_getItem(), moose_ElementField_getLen(), moose_ElementField_getNum(), moose_ElementField_getPath(), moose_ElementField_getSlice(), moose_ElementField_setattro(), moose_ElementField_setNum(), moose_Field_hash(), moose_Field_init(), moose_Field_repr(), moose_getField(), moose_Id_delete(), moose_Id_getattro(), moose_Id_getItem(), moose_Id_getLength(), moose_Id_getPath(), moose_Id_getShape(), moose_Id_getSlice(), moose_Id_repr(), moose_Id_setattro(), moose_Id_setField(), moose_Id_str(), moose_move(), moose_ObjId_connect(), moose_ObjId_get_destField_attr(), moose_ObjId_get_elementField_attr(), moose_ObjId_get_lookupField_attr(), moose_ObjId_getattro(), moose_ObjId_getDataIndex(), moose_ObjId_getField(), moose_ObjId_getFieldIndex(), moose_ObjId_getFieldNames(), moose_ObjId_getFieldType(), moose_ObjId_getId(), moose_ObjId_getLookupField(), moose_ObjId_getNeighbors(), moose_ObjId_hash(), moose_ObjId_init_from_id(), moose_ObjId_repr(), moose_ObjId_richcompare(), moose_ObjId_setattro(), moose_ObjId_setDestField(), moose_ObjId_str(), and moose_setCwe().
| #define RAISE_TYPE_ERROR | ( | ret, | |
| type | |||
| ) |
Definition at line 76 of file moosemodule.h.
| #define SET_LOOKUP_VALUE | ( | TYPE | ) |
Referenced by set_lookup_value().
Definition at line 105 of file moosemodule.h.
Referenced by create_Id_from_path(), deleteObjId(), finalize(), MODINIT(), moose_connect(), moose_copy(), moose_getCwe(), moose_isRunning(), moose_loadModel(), moose_move(), moose_ObjId_connect(), moose_reinit(), moose_setClock(), moose_setCwe(), moose_start(), moose_stop(), and moose_useClock().
| anonymous enum |
| Enumerator | |
|---|---|
| O32_LITTLE_ENDIAN | |
| O32_BIG_ENDIAN | |
| O32_PDP_ENDIAN | |
Definition at line 32 of file moosemodule.h.
| PyObject* _set_vector_destFinfo | ( | ObjId | obj, |
| string | fieldName, | ||
| PyObject * | value, | ||
| char | vtypecode | ||
| ) |
Definition at line 578 of file moosemodule.h.
References moose::error, and to_cpp().
Here is the call graph for this function:| PyObject* convert_and_set_tuple_entry | ( | PyObject * | tuple, |
| unsigned int | index, | ||
| void * | vptr, | ||
| char | typecode | ||
| ) |
Inner function to convert C++ object at vptr and set tuple entry ii to the created PyObject. typecode is passed to to_cpp for conversion. If error occurs while setting tuple antry, it decrements the refcount of the tuple and returns NULL. Returns the tuple on success.
Definition at line 491 of file moosemodule.cpp.
References to_py(), and verbosity.
Referenced by to_pytuple().
Here is the call graph for this function:
Here is the caller graph for this function:| Id create_Id_from_path | ( | string | path, |
| unsigned int | numData, | ||
| unsigned int | isGlobal, | ||
| string | type | ||
| ) |
| int defineAllClasses | ( | PyObject * | module_dict | ) |
Go through all elements under /classes and ask for defining a Python class for it.
Definition at line 2461 of file moosemodule.cpp.
References defineClass(), Cinfo::find(), and verbosity.
Referenced by MODINIT().
Here is the call graph for this function:
Here is the caller graph for this function:| int defineClass | ( | PyObject * | module_dict, |
| const Cinfo * | cinfo | ||
| ) |
Definition at line 2540 of file moosemodule.cpp.
References Cinfo::baseCinfo(), defineClass(), defineDestFinfos(), defineElementFinfos(), defineLookupFinfos(), get_getsetdefs(), get_moose_classes(), Cinfo::getBaseClass(), Cinfo::name(), ObjIdType, and verbosity.
Referenced by defineAllClasses(), and defineClass().
Here is the call graph for this function:
Here is the caller graph for this function:| int defineDestFinfos | ( | const Cinfo * | cinfo | ) |
Definition at line 2714 of file moosemodule.cpp.
References get_getsetdefs(), Cinfo::getNumDestFinfo(), moose_ObjId_get_destField_attr(), Finfo::name(), Cinfo::name(), name, and verbosity.
Referenced by defineClass().
Here is the call graph for this function:
Here is the caller graph for this function:| int defineElementFinfos | ( | const Cinfo * | cinfo | ) |
Definition at line 2863 of file moosemodule.cpp.
References get_getsetdefs(), Cinfo::getNumFieldElementFinfo(), moose_ObjId_get_elementField_attr(), Cinfo::name(), name, and verbosity.
Referenced by defineClass().
Here is the call graph for this function:
Here is the caller graph for this function:| int defineLookupFinfos | ( | const Cinfo * | cinfo | ) |
Definition at line 2503 of file moosemodule.cpp.
References get_getsetdefs(), Cinfo::getNumLookupFinfo(), moose_ObjId_get_lookupField_attr(), Cinfo::name(), name, and verbosity.
Referenced by defineClass().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* deleteObjId | ( | ObjId | obj | ) |
Definition at line 522 of file vec.cpp.
References SHELLPTR, and verbosity.
Referenced by moose_delete(), and moose_Id_delete().
Here is the caller graph for this function:| const map<string, string>& get_field_alias | ( | ) |
map of fields which are aliased in Python to avoid collision with Python keywords.
Definition at line 850 of file moosemodule.cpp.
Referenced by moose_ElementField_getattro(), moose_Id_getattro(), and moose_ObjId_getattro().
Here is the caller graph for this function:| map<string, vector <PyGetSetDef> >& get_getsetdefs | ( | ) |
Definition at line 840 of file moosemodule.cpp.
Referenced by defineClass(), defineDestFinfos(), defineElementFinfos(), defineLookupFinfos(), and finalize().
Here is the caller graph for this function:| map<string, PyTypeObject *>& get_moose_classes | ( | ) |
Definition at line 833 of file moosemodule.cpp.
Referenced by defineClass(), getBaseClass(), MODINIT(), moose_ObjId_init_from_path(), moose_ObjId_setattro(), and oid_to_element().
Here is the caller graph for this function:| int get_npy_typenum | ( | const type_info & | ctype | ) |
| PyObject* get_simple_lookupfield | ( | ObjId | oid, |
| string | fieldname, | ||
| KeyType | key, | ||
| char | vtypecode | ||
| ) |
Definition at line 378 of file moosemodule.h.
References LookupField< L, A >::get(), to_py(), and value.
Here is the call graph for this function:| PyObject* get_vec_lookupfield | ( | ObjId | oid, |
| string | fieldname, | ||
| KeyType | key, | ||
| char | vtypecode | ||
| ) |
Definition at line 371 of file moosemodule.h.
References innerType(), to_pytuple(), and value.
Here is the call graph for this function:| PyTypeObject* getBaseClass | ( | PyObject * | self | ) |
Utility function to traverse python class hierarchy to reach closest base class. Ideally we should go via mro
Definition at line 1294 of file moosemodule.cpp.
References get_moose_classes(), and ObjIdType.
Referenced by moose_ObjId_init_from_path(), and testCinfoFields().
Here is the call graph for this function:
Here is the caller graph for this function:| vector<string> getFieldNames | ( | string | className, |
| string | finfoType | ||
| ) |
| string getFieldType | ( | string | className, |
| string | fieldName | ||
| ) |
| const char** getFinfoTypes | ( | ) |
Return list of available Finfo types. Place holder for static const to avoid static initialization issues.
Definition at line 1064 of file moosemodule.cpp.
Referenced by moose_ObjId_getFieldNames().
Here is the caller graph for this function:| PyObject* getLookupField | ( | ObjId | target, |
| char * | fieldName, | ||
| PyObject * | key | ||
| ) |
Inner function for looking up value from LookupField on object with ObjId target.
args should be a tuple (lookupFieldName, key)
Definition at line 1295 of file melement.cpp.
References moose::error, Field< A >::get(), parseFinfoType(), and shortType().
Referenced by moose_LookupField_getItem(), and moose_ObjId_getLookupField().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* getObjIdAttr | ( | _ObjId * | oid, |
| string | attribute | ||
| ) |
| Id getShell | ( | int | argc, |
| char ** | argv | ||
| ) |
Create the shell instance unless already created. This calls basecode/main.cpp:init(argc, argv) to do the initialization.
Return the Id of the Shell object.
Definition at line 967 of file moosemodule.cpp.
References Eref::data(), doRegressionTests, Shell::doSetClock(), doUnitTests, Shell::doUseClock(), Id::eref(), init(), mooseBenchmarks(), mpiTests(), Shell::myNode(), nonMpiTests(), Shell::numNodes(), and processTests().
Referenced by finalize(), handle_keyboard_interrupts(), and MODINIT().
Here is the call graph for this function:
Here is the caller graph for this function:| PyMODINIT_FUNC init_moose | ( | ) |
| char innerType | ( | char | ) |
Definition at line 104 of file types.cpp.
Referenced by get_vec_lookupfield(), and to_py().
Here is the caller graph for this function:| PyObject* lookup_value | ( | const ObjId & | oid, |
| string | fname, | ||
| char | value_type_code, | ||
| char | key_type_code, | ||
| PyObject * | key | ||
| ) |
Definition at line 386 of file moosemodule.h.
References to_cpp().
Here is the call graph for this function:| PyObject* moose_connect | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1982 of file moosemodule.cpp.
References ObjId::bad(), ObjId::id, _Id::id_, Id_SubtypeCheck, Id::isValid(), ObjId_SubtypeCheck, _ObjId::oid_, oid_to_element(), RAISE_INVALID_ID, and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_copy | ( | PyObject * | dummy, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Definition at line 1391 of file moosemodule.cpp.
References ObjId::bad(), Field< A >::get(), _Id::id_, Id::id_, IdType, Id::isValid(), name, ObjIdType, RAISE_INVALID_ID, and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_delete | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1544 of file moosemodule.cpp.
References ObjId::bad(), BADINDEX, deleteObjId(), IdType, ObjIdType, and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_element | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 2931 of file moosemodule.cpp.
References ObjId::bad(), ElementField_SubtypeCheck, id, IdType, moose_ElementField_getId(), ObjIdType, oid_to_element(), and path.
Here is the call graph for this function:| PyObject* moose_ElementField_getattro | ( | _Field * | self, |
| PyObject * | attr | ||
| ) |
Definition at line 685 of file mfield.cpp.
References Field< A >::get(), get_field_alias(), getFieldType(), Field< A >::getVec(), RAISE_INVALID_ID, shortType(), and to_pytuple().
Here is the call graph for this function:| PyObject* moose_ElementField_getDataId | ( | _Field * | self, |
| void * | closure | ||
| ) |
| PyObject* moose_ElementField_getId | ( | _Field * | self, |
| void * | closure | ||
| ) |
Definition at line 581 of file mfield.cpp.
References IdType, and RAISE_INVALID_ID.
Referenced by moose_element().
Here is the caller graph for this function:| PyObject* moose_ElementField_getItem | ( | _Field * | self, |
| Py_ssize_t | index | ||
| ) |
Definition at line 611 of file mfield.cpp.
References Field< A >::get(), oid_to_element(), and RAISE_INVALID_ID.
Here is the call graph for this function:| Py_ssize_t moose_ElementField_getLen | ( | _Field * | self, |
| void * | closure | ||
| ) |
Definition at line 561 of file mfield.cpp.
References Field< A >::get(), and RAISE_INVALID_ID.
Referenced by moose_ElementField_setattro().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ElementField_getName | ( | _Field * | self, |
| void * | closure | ||
| ) |
Definition at line 593 of file mfield.cpp.
| PyObject* moose_ElementField_getNum | ( | _Field * | self, |
| void * | closure | ||
| ) |
Definition at line 528 of file mfield.cpp.
References Field< A >::get(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ElementField_getOwner | ( | _Field * | self, |
| void * | closure | ||
| ) |
Definition at line 597 of file mfield.cpp.
| PyObject* moose_ElementField_getPath | ( | _Field * | self, |
| void * | closure | ||
| ) |
Definition at line 571 of file mfield.cpp.
References Id::isValid(), path, and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ElementField_getSlice | ( | _Field * | self, |
| Py_ssize_t | start, | ||
| Py_ssize_t | end | ||
| ) |
Definition at line 644 of file mfield.cpp.
References Field< A >::get(), oid_to_element(), RAISE_INVALID_ID, and value.
Here is the call graph for this function:| int moose_ElementField_init | ( | _Field * | self, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Initialize field with ObjId and fieldName.
Definition at line 519 of file mfield.cpp.
References moose_Field_init().
Here is the call graph for this function:| int moose_ElementField_setattro | ( | _Field * | self, |
| PyObject * | attr, | ||
| PyObject * | value | ||
| ) |
Definition at line 826 of file mfield.cpp.
References Field< A >::get(), getFieldType(), Id::isValid(), moose_ElementField_getLen(), RAISE_INVALID_ID, Field< A >::setVec(), shortType(), and value.
Here is the call graph for this function:| int moose_ElementField_setNum | ( | _Field * | self, |
| PyObject * | num, | ||
| void * | closure | ||
| ) |
| PyObject* moose_exists | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1764 of file moosemodule.cpp.
References path.
| void moose_Field_dealloc | ( | _Field * | self | ) |
Definition at line 134 of file mfield.cpp.
| long moose_Field_hash | ( | _Field * | self | ) |
Return the hash of the string {objectpath}.{fieldName}
Definition at line 142 of file mfield.cpp.
References Id::isValid(), path, and RAISE_INVALID_ID.
Here is the call graph for this function:| int moose_Field_init | ( | _Field * | self, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Initialize field with ObjId and fieldName.
Definition at line 89 of file mfield.cpp.
References Id::isValid(), ObjIdType, owner, and RAISE_INVALID_ID.
Referenced by moose_ElementField_init().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_Field_repr | ( | _Field * | self | ) |
String representation of fields is {objectpath}.{fieldName}
Definition at line 156 of file mfield.cpp.
References Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_getCwe | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1921 of file moosemodule.cpp.
References oid_to_element(), and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_getField | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 2145 of file moosemodule.cpp.
References Field< A >::get(), ObjId::id, _Id::id_, IdType, Id::isValid(), ObjIdType, _ObjId::oid_, RAISE_INVALID_ID, and value.
Here is the call graph for this function:| PyObject* moose_getFieldDict | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 2081 of file moosemodule.cpp.
References getFieldDict(), and value.
Here is the call graph for this function:| int moose_Id_contains | ( | _Id * | self, |
| PyObject * | args | ||
| ) |
Definition at line 799 of file vec.cpp.
References ObjId_SubtypeCheck, and ObjIdType.
| PyObject* moose_Id_delete | ( | _Id * | self | ) |
Definition at line 534 of file vec.cpp.
References deleteObjId(), Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_Id_getattro | ( | _Id * | self, |
| PyObject * | attr | ||
| ) |
Definition at line 810 of file vec.cpp.
References Field< A >::get(), get_field_alias(), get_Id_attr(), getFieldType(), Field< A >::getVec(), Id::isValid(), RAISE_INVALID_ID, shortType(), and to_pytuple().
Here is the call graph for this function:| PyObject* moose_Id_getItem | ( | _Id * | self, |
| Py_ssize_t | index | ||
| ) |
Definition at line 649 of file vec.cpp.
References Id::isValid(), moose_Id_getLength(), oid_to_element(), and RAISE_INVALID_ID.
Referenced by moose_Id_subscript().
Here is the call graph for this function:
Here is the caller graph for this function:| Py_ssize_t moose_Id_getLength | ( | _Id * | self | ) |
Definition at line 607 of file vec.cpp.
References Id::isValid(), and RAISE_INVALID_ID.
Referenced by moose_Id_getItem(), moose_Id_getSlice(), moose_Id_setattro(), and moose_Id_subscript().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_Id_getPath | ( | _Id * | self | ) |
Not to be redone. 2011-03-23 14:42:48 (+0530)
Definition at line 588 of file vec.cpp.
References moose::endswith(), Id::isValid(), path, and RAISE_INVALID_ID.
Referenced by get_Id_attr().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_Id_getShape | ( | _Id * | self | ) |
Definition at line 623 of file vec.cpp.
References Id::isValid(), and RAISE_INVALID_ID.
Referenced by get_Id_attr().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_Id_getSlice | ( | _Id * | self, |
| Py_ssize_t | start, | ||
| Py_ssize_t | end | ||
| ) |
Definition at line 702 of file vec.cpp.
References Id::isValid(), moose_Id_fillSlice(), moose_Id_getLength(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_Id_getValue | ( | _Id * | self | ) |
Definition at line 578 of file vec.cpp.
Referenced by get_Id_attr().
Here is the caller graph for this function:| long moose_Id_hash | ( | _Id * | self | ) |
| int moose_Id_init | ( | _Id * | self, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Definition at line 416 of file vec.cpp.
References create_Id_from_path(), Id_SubtypeCheck, IdType, ObjId_SubtypeCheck, path, and moose::trim().
Here is the call graph for this function:| PyObject* moose_Id_repr | ( | _Id * | self | ) |
Definition at line 551 of file vec.cpp.
References Field< A >::get(), Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_Id_richCompare | ( | _Id * | self, |
| PyObject * | args, | ||
| int | op | ||
| ) |
Definition at line 755 of file vec.cpp.
References Id::id_, and IdType.
| int moose_Id_setattro | ( | _Id * | self, |
| PyObject * | attr, | ||
| PyObject * | value | ||
| ) |
Definition at line 977 of file vec.cpp.
References Field< A >::get(), getFieldType(), Id::isValid(), moose_Id_getLength(), RAISE_INVALID_ID, Field< A >::setVec(), shortType(), and value.
Referenced by moose_Id_setField().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_Id_setField | ( | _Id * | self, |
| PyObject * | args | ||
| ) |
Definition at line 958 of file vec.cpp.
References Id::isValid(), moose_Id_setattro(), RAISE_INVALID_ID, and value.
Here is the call graph for this function:| PyObject* moose_Id_str | ( | _Id * | self | ) |
Definition at line 566 of file vec.cpp.
References Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_Id_subscript | ( | _Id * | self, |
| PyObject * | op | ||
| ) |
Definition at line 730 of file vec.cpp.
References moose_Id_fillSlice(), moose_Id_getItem(), moose_Id_getLength(), SLICE_OBJ, and value.
Here is the call graph for this function:| PyObject* moose_isRunning | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
| PyObject* moose_loadModel | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1794 of file moosemodule.cpp.
References _Id::id_, IdType, and SHELLPTR.
| PyObject* moose_LookupField_getItem | ( | _Field * | self, |
| PyObject * | key | ||
| ) |
Definition at line 221 of file mfield.cpp.
References getLookupField().
Here is the call graph for this function:| int moose_LookupField_setItem | ( | _Field * | self, |
| PyObject * | key, | ||
| PyObject * | value | ||
| ) |
Definition at line 226 of file mfield.cpp.
References setLookupField().
Here is the call graph for this function:| PyObject* moose_move | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1468 of file moosemodule.cpp.
References ObjId::bad(), Id::id_, IdType, Id::isValid(), ObjIdType, RAISE_INVALID_ID, and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_ObjId_connect | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 2195 of file melement.cpp.
References ObjId::bad(), Id::isValid(), ObjIdType, _ObjId::oid_, RAISE_INVALID_ID, and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_ObjId_get_destField_attr | ( | PyObject * | self, |
| void * | closure | ||
| ) |
Definition at line 2677 of file moosemodule.cpp.
References ObjId::id, Id::isValid(), moose_DestField, name, ObjIdType, _ObjId::oid_, and RAISE_INVALID_ID.
Referenced by defineDestFinfos().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_get_elementField_attr | ( | PyObject * | self, |
| void * | closure | ||
| ) |
Definition at line 2822 of file moosemodule.cpp.
References ObjId::id, Id::isValid(), moose_ElementField, name, _ObjId::oid_, and RAISE_INVALID_ID.
Referenced by defineElementFinfos().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_get_lookupField_attr | ( | PyObject * | self, |
| void * | closure | ||
| ) |
Try to obtain a LookupField object for a specified lookupFinfo. The first item in closure must be the name of the LookupFinfo - {fieldname}. The LookupField is identified by {path}.{fieldname} where {path} is the unique path of the moose element self. We look for an already initialized LookupField object for this identifier and return if one is found. Otherwise, we create a new LookupField object and buffer it in a map before returning.
Definition at line 2781 of file moosemodule.cpp.
References ObjId::id, Id::isValid(), moose_LookupField, name, ObjIdType, _ObjId::oid_, and RAISE_INVALID_ID.
Referenced by defineLookupFinfos().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_getattro | ( | _ObjId * | self, |
| PyObject * | attr | ||
| ) |
2011-03-28 13:59:41 (+0530)
Get a specified field. Re-done on: 2011-03-23 14:42:03 (+0530)
I wonder how to cleanly do this. The Id - ObjId dichotomy is really ugly. When you don't pass an index, it is just treated as 0. Then what is the point of having Id separately? ObjId would been just fine!
Definition at line 484 of file melement.cpp.
References Field< A >::get(), get_field_alias(), get_ObjId_attr(), getFieldNames(), getFieldType(), RAISE_INVALID_ID, shortType(), to_py(), and value.
Referenced by moose_ObjId_getField().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_getDataIndex | ( | _ObjId * | self | ) |
Definition at line 2317 of file melement.cpp.
References Id::isValid(), and RAISE_INVALID_ID.
Referenced by get_ObjId_attr().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_getField | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 460 of file melement.cpp.
References Id::isValid(), moose_ObjId_getattro(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ObjId_getFieldIndex | ( | _ObjId * | self | ) |
Definition at line 2330 of file melement.cpp.
References Id::isValid(), and RAISE_INVALID_ID.
Referenced by get_ObjId_attr().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_getFieldNames | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 2047 of file melement.cpp.
References Field< A >::get(), getFieldNames(), getFinfoTypes(), Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ObjId_getFieldType | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 420 of file melement.cpp.
References getFieldType(), Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ObjId_getId | ( | _ObjId * | self | ) |
Definition at line 394 of file melement.cpp.
References _Id::id_, IdType, Id::isValid(), and RAISE_INVALID_ID.
Referenced by get_ObjId_attr().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_getItem | ( | _ObjId * | self, |
| Py_ssize_t | index | ||
| ) |
Definition at line 1210 of file melement.cpp.
References moose_ObjId_getLength(), ObjIdType, and _ObjId::oid_.
Here is the call graph for this function:| Py_ssize_t moose_ObjId_getLength | ( | _ObjId * | self | ) |
Definition at line 1276 of file melement.cpp.
References Element::hasFields(), and FieldElement::numData().
Referenced by moose_ObjId_getItem(), and moose_ObjId_getSlice().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_getLookupField | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 1465 of file melement.cpp.
References getLookupField(), Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ObjId_getNeighbors | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 2112 of file melement.cpp.
References _Id::id_, IdType, Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ObjId_getSlice | ( | _ObjId * | self, |
| Py_ssize_t | start, | ||
| Py_ssize_t | end | ||
| ) |
Definition at line 1240 of file melement.cpp.
References moose_ObjId_getLength(), ObjIdType, _ObjId::oid_, and value.
Here is the call graph for this function:| long moose_ObjId_hash | ( | _ObjId * | self | ) |
This function combines Id, DataId and fieldIndex to construct the hash of this object. Here we assume 16 most significant bits for Id, next 32 bits for dataIndex and the least significant 16 bits for fieldIndex. If these criteria are not met, the hash function will cause collissions. Note that the bitshift opeartions are byte order independent - so they should give the same result on both little- and big-endian systems.
Definition at line 333 of file melement.cpp.
References dataIndex, Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| int moose_ObjId_init | ( | _ObjId * | self, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Definition at line 296 of file melement.cpp.
References moose::error, moose_ObjId_init_from_id(), and moose_ObjId_init_from_path().
Here is the call graph for this function:| PyObject* moose_ObjId_repr | ( | _ObjId * | self | ) |
Definition at line 355 of file melement.cpp.
References Field< A >::get(), Id::isValid(), and RAISE_INVALID_ID.
Here is the call graph for this function:| PyObject* moose_ObjId_richcompare | ( | _ObjId * | self, |
| PyObject * | args, | ||
| int | op | ||
| ) |
Definition at line 2241 of file melement.cpp.
References moose::error, Id::isValid(), ObjIdType, and RAISE_INVALID_ID.
Here is the call graph for this function:| int moose_ObjId_setattro | ( | _ObjId * | self, |
| PyObject * | attr, | ||
| PyObject * | value | ||
| ) |
Set a specified field. Redone on 2011-03-23 14:41:45 (+0530)
Definition at line 809 of file melement.cpp.
References get_moose_classes(), getFieldType(), Id::id_, Id::isValid(), RAISE_INVALID_ID, Field< A >::set(), shortType(), to_cpp(), and value.
Referenced by moose_ObjId_setField().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_setDestField | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 1634 of file melement.cpp.
References moose::error, Id::isValid(), maxArgs, minArgs, parseFinfoType(), RAISE_INVALID_ID, SetGet0::set(), setDestFinfo(), setDestFinfo2(), and shortType().
Referenced by moose_DestField_call().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* moose_ObjId_setField | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 791 of file melement.cpp.
References moose_ObjId_setattro(), and value.
Here is the call graph for this function:| PyObject* moose_ObjId_setLookupField | ( | _ObjId * | self, |
| PyObject * | args | ||
| ) |
Definition at line 1600 of file melement.cpp.
References Id::isValid(), setLookupField(), and value.
Here is the call graph for this function:| PyObject* moose_quit | ( | PyObject * | dummy | ) |
This should not be required or accessible to the user. Put here for debugging threading issue.
Definition at line 2450 of file moosemodule.cpp.
References finalize().
Here is the call graph for this function:| PyObject* moose_reinit | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
| PyObject* moose_seed | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 2339 of file moosemodule.cpp.
References pymoose_mtseed_().
Here is the call graph for this function:| PyObject* moose_setClock | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
| PyObject* moose_setCwe | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1879 of file moosemodule.cpp.
References ObjId::bad(), IdType, ObjIdType, path, RAISE_INVALID_ID, and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_start | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 1703 of file moosemodule.cpp.
References handle_keyboard_interrupts(), and SHELLPTR.
Here is the call graph for this function:| PyObject* moose_stop | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
| PyObject* moose_syncDataHandler | ( | PyObject * | dummy, |
| PyObject * | target | ||
| ) |
| PyObject* moose_useClock | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
| PyObject* moose_wildcardFind | ( | PyObject * | dummy, |
| PyObject * | args | ||
| ) |
Definition at line 2412 of file moosemodule.cpp.
References oid_to_element(), and wildcardFind().
Here is the call graph for this function:| PyObject* oid_to_element | ( | ObjId | oid | ) |
Definition at line 2899 of file moosemodule.cpp.
References Field< A >::get(), get_moose_classes(), and _ObjId::oid_.
Referenced by moose_connect(), moose_element(), moose_ElementField_getItem(), moose_ElementField_getSlice(), moose_getCwe(), moose_Id_fillSlice(), moose_Id_getItem(), and moose_wildcardFind().
Here is the call graph for this function:
Here is the caller graph for this function:| int parseFinfoType | ( | string | className, |
| string | finfoType, | ||
| string | fieldName, | ||
| vector< string > & | typeVec | ||
| ) |
| vector<int> pysequence_to_dimvec | ( | PyObject * | dims | ) |
Utility function to convert an Python integer or a sequence object into a vector of dimensions
Definition at line 178 of file moosemodule.cpp.
| vector< T >* PySequenceToVector | ( | PyObject * | seq, |
| char | typecode | ||
| ) |
Convert a Python sequence into a C++ vector. This dynamically allocates the vector and it is the caller's responsibility to free it.
Definition at line 309 of file moosemodule.h.
References moose::error, to_cpp(), and value.
Here is the call graph for this function:| vector< vector < T > >* PySequenceToVectorOfVectors | ( | PyObject * | seq, |
| char | typecode | ||
| ) |
Definition at line 342 of file moosemodule.h.
References moose::error.
| int set_lookup_value | ( | const ObjId & | oid, |
| string | fname, | ||
| char | value_type_code, | ||
| char | key_type_code, | ||
| PyObject * | key, | ||
| PyObject * | value_obj | ||
| ) |
Definition at line 486 of file moosemodule.h.
References SET_LOOKUP_VALUE, and to_cpp().
Here is the call graph for this function:| PyObject* setDestFinfo | ( | ObjId | obj, |
| string | fieldName, | ||
| PyObject * | arg, | ||
| string | argType | ||
| ) |
| PyObject* setDestFinfo1 | ( | ObjId | obj, |
| string | fieldName, | ||
| PyObject * | arg1, | ||
| char | type1, | ||
| A | arg2 | ||
| ) |
Set destFinfo for 2 argument destination field functions.
Definition at line 607 of file moosemodule.h.
References moose::error, Id::id_, _ObjId::oid_, and SetGet2< A1, A2 >::set().
Here is the call graph for this function:| PyObject* setDestFinfo2 | ( | ObjId | obj, |
| string | fieldName, | ||
| PyObject * | arg1, | ||
| char | type1, | ||
| PyObject * | arg2, | ||
| char | type2 | ||
| ) |
| int setLookupField | ( | ObjId | oid, |
| char * | fieldName, | ||
| PyObject * | key, | ||
| PyObject * | value | ||
| ) |
Definition at line 1480 of file melement.cpp.
References moose::error, Field< A >::get(), parseFinfoType(), shortType(), and value.
Referenced by moose_LookupField_setItem(), and moose_ObjId_setLookupField().
Here is the call graph for this function:
Here is the caller graph for this function:| char shortType | ( | string | ) |
Referenced by getLookupField(), moose_ElementField_getattro(), moose_ElementField_setattro(), moose_Id_getattro(), moose_Id_setattro(), moose_ObjId_getattro(), moose_ObjId_setattro(), moose_ObjId_setDestField(), parseFinfoType(), setDestFinfo(), and setLookupField().
Here is the caller graph for this function:| void* to_cpp | ( | PyObject * | object, |
| char | typecode | ||
| ) |
Convert PyObject to C++ object. Returns a pointer to the converted object. Deallocation is caller responsibility
Convert Python object into C++ data structure. The data structure is allocated here and it is the responsibility of the caller to free that memory.
Definition at line 222 of file moosemodule.cpp.
References _Id::id_, _ObjId::oid_, and value.
Referenced by _set_vector_destFinfo(), lookup_value(), moose_ObjId_setattro(), PySequenceToVector(), and set_lookup_value().
Here is the caller graph for this function:| PyObject* to_py | ( | void * | obj, |
| char | typecode | ||
| ) |
Convert C++ object to Python.
Utility function to convert C++ object into Python object.
Definition at line 352 of file moosemodule.cpp.
References id, IdType, innerType(), ObjIdType, _ObjId::oid_, and to_pytuple().
Referenced by convert_and_set_tuple_entry(), get_simple_lookupfield(), moose_ObjId_getattro(), and test_to_py().
Here is the call graph for this function:
Here is the caller graph for this function:| PyObject* to_pytuple | ( | void * | obj, |
| char | typecode | ||
| ) |
Convert C++ vector to Python tuple
Convert a C++ vector to Python tuple
Definition at line 515 of file moosemodule.cpp.
References convert_and_set_tuple_entry().
Referenced by get_vec_lookupfield(), moose_ElementField_getattro(), moose_Id_getattro(), and to_py().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 66 of file moosemodule.h.
| unsigned char bytes[4] |
Definition at line 41 of file moosemodule.h.
| const { ... } o32_host_order |
| uint32_t value |
Definition at line 42 of file moosemodule.h.
Referenced by ReadCell::addCaConc(), ReadCell::addCanonicalChannel(), HSolve::addInject(), ReadCell::buildChannels(), get_simple_lookupfield(), get_vec_lookupfield(), Func::getDerivative(), Function::getDerivative(), Func::getValue(), Function::getValue(), Func::initCinfo(), Function::initCinfo(), PulseGen::input(), isNaN(), moose::mapToString(), moose_ElementField_getSlice(), moose_ElementField_setattro(), moose_getField(), moose_getFieldDict(), moose_Id_fillSlice(), moose_Id_setattro(), moose_Id_setField(), moose_Id_subscript(), moose_ObjId_getattro(), moose_ObjId_getSlice(), moose_ObjId_setattro(), moose_ObjId_setField(), moose_ObjId_setLookupField(), SparseMatrix< unsigned int >::pairFill(), PyRun::process(), PyRun::PyRun(), PySequenceToVector(), PyRun::run(), SparseMatrix< unsigned int >::set(), IzhikevichNrn::setA(), MarkovGslSolver::setAbsoluteAccuracy(), IzhikevichNrn::setAccommodating(), IzhikevichNrn::setAlpha(), IzhikevichNrn::setB(), IzhikevichNrn::setBeta(), IzhikevichNrn::setC(), Nernst::setCin(), HSolve::setCm(), moose::VClamp::setCommand(), SteadyState::setConvergenceCriterion(), Nernst::setCout(), IzhikevichNrn::setD(), moose::CompartmentBase::setDiameter(), Interpol2D::setDx(), Interpol2D::setDy(), HSolve::setEk(), HSolve::setEm(), moose::VClamp::setGain(), IzhikevichNrn::setGamma(), HSolve::setGk(), HSolve::setHHChannelGbar(), HSolve::setHHmodulation(), IzhikevichNrn::setInitU(), HSolve::setInitVm(), IzhikevichNrn::setInitVm(), IzhikevichNrn::setInject(), HSolve::setInject(), Adaptor::setInputOffset(), MarkovGslSolver::setInternalDt(), MMPump::setKd(), moose::CompartmentBase::setLength(), setLookupField(), SteadyState::setMaxIter(), Cell::setMethod(), SynChan::setNormalizeWeights(), Adaptor::setOutputOffset(), Dsolve::setPath(), HSolve::setRa(), MarkovGslSolver::setRelativeAccuracy(), HSolve::setRm(), IzhikevichNrn::setRmByTau(), Nernst::setScale(), Adaptor::setScale(), Cell::setSolverClock(), Cell::setSolverName(), SteadyState::setStoich(), Interpol2D::setSy(), HHGate2D::setTableA(), HHGate2D::setTableB(), Interpol2D::setTableVector(), moose::VClamp::setTau(), moose::VClamp::setTd(), Nernst::setTemperature(), moose::VClamp::setTi(), IzhikevichNrn::setU0(), HHChannelBase::setUseConcentration(), Nernst::setValence(), Func::setVar(), moose::VClamp::setVin(), HSolve::setVm(), IzhikevichNrn::setVm(), MMPump::setVmax(), IzhikevichNrn::setVmax(), moose::CompartmentBase::setX(), HSolve::setX(), moose::CompartmentBase::setX0(), Interpol2D::setXmax(), Interpol::setXmax(), Interpol2D::setXmin(), Interpol::setXmin(), moose::CompartmentBase::setY(), HSolve::setY(), moose::CompartmentBase::setY0(), Interpol2D::setYmax(), Interpol2D::setYmin(), moose::CompartmentBase::setZ(), HSolve::setZ(), moose::CompartmentBase::setZ0(), to_cpp(), PyRun::trigger(), HSolvePassive::updateMatrix(), HSolveActive::updateMatrix(), DifBuffer::vSetActivation(), DifBuffer::vSetBBound(), DifBuffer::vSetBFree(), DifBuffer::vSetBTot(), DifBuffer::vSetD(), DifBuffer::vSetKb(), DifBuffer::vSetKf(), and HHChannel::vSetUseConcentration().