23 #ifndef PYTHONWORKSPACE_H 24 #define PYTHONWORKSPACE_H 27 #define PY_ARRAY_UNIQUE_SYMBOL itom_ARRAY_API //see numpy help ::array api :: Miscellaneous :: Importing the api (this line must bebefore include global.h) 28 #define NO_IMPORT_ARRAY 30 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 34 #if (defined _DEBUG) && (defined WIN32) 36 #if (defined linux) | (defined CMAKE) 38 #include "numpy/arrayobject.h" 39 #elif (defined __APPLE__) | (defined CMAKE) 41 #include "numpy/arrayobject.h" 44 #include "../Lib/site-packages/numpy/core/include/numpy/arrayobject.h" 50 #include "numpy/arrayobject.h" 51 #elif (defined __APPLE__) 53 #include "numpy/arrayobject.h" 56 #include "../Lib/site-packages/numpy/core/include/numpy/arrayobject.h" 61 #include "../global.h" 68 #include <qstringlist.h> 70 #define PY_LIST_TUPLE 'l' 71 #define PY_MAPPING 'm' 80 class PyWorkspaceItem;
106 QString m_extendedValue;
111 QHash<QString, PyWorkspaceItem*> m_childs;
124 void loadDictionary(PyObject *obj,
const QString &fullNameParentItem =
"");
126 inline bool isGlobalWorkspace()
const {
return m_globalNotLocal; }
127 inline bool isRoot(
PyWorkspaceItem *item)
const {
return item == &m_rootItem; }
128 inline void emitGetChildNodes(
PyWorkspaceContainer *container, QString fullNameParentItem) { emit getChildNodes(container,fullNameParentItem); }
132 QMutex m_accessMutex;
133 QSet<QString> m_expandedFullNames;
139 void loadDictionaryRec(PyObject *obj,
const QString &fullNameParentItem,
PyWorkspaceItem *parentItem, QStringList &deletedKeys);
142 QSet<QByteArray> m_blackListType;
143 bool m_globalNotLocal;
145 PyObject *dictUnicode;
148 void updateAvailable(
PyWorkspaceItem *rootItem, QString fullNameRoot, QStringList recentlyDeletedFullNames);
Definition: pythonWorkspace.h:99
QString m_name
Definition: pythonWorkspace.h:102
QString m_key
Definition: pythonWorkspace.h:103
int m_compatibleParamBaseType
Definition: pythonWorkspace.h:107
Definition: pythonWorkspace.h:98
Definition: apiFunctionsGraph.cpp:39
QString m_type
Definition: pythonWorkspace.h:104
bool m_isarrayelement
Definition: pythonWorkspace.h:109
static QChar delimiter
Definition: pythonWorkspace.h:136
every item in the workspace is represented by one PyWorkspaceItem
Definition: pythonWorkspace.h:87
ChildState m_childState
Definition: pythonWorkspace.h:110
Definition: pythonWorkspace.h:115
ChildState
Definition: pythonWorkspace.h:96