Go to the source code of this file.
|
#define | ARRAY_TYPES BOOST_PP_TUPLE_TO_LIST(2, (std::vector<int>, std::vector<double>)) |
|
#define | BUILTIN_TYPES BOOST_PP_TUPLE_TO_LIST(8, (double, std::string, int, size_t, uint32_t, int64_t, float, uint64_t)) |
| Boost macro for "looping" over builtin types. More...
|
|
#define | GET_ARRAY(R, _, T) |
|
#define | GET_BUILTIN(R, _, T) |
|
#define | GET_USER(R, _, T) |
|
#define | IS_ARRAY_INTEGER(obj) (PyLong_Check(obj) || PyArray_IsScalar((obj), Integer)) |
|
#define | NO_IMPORT_ARRAY |
|
#define | PY_ARRAY_UNIQUE_SYMBOL API_ARRAY_API |
|
#define | SET_CELL(R, _, T) |
|
#define | SET_VECTOR_CELL(R, _, T) |
|
#define | STR_CHECK PyUnicode_Check |
|
#define | TO_LONG PyLong_AsLong |
|
#define | USER_TYPES BOOST_PP_TUPLE_TO_LIST(1, (Mantid::Kernel::V3D)) |
|
◆ ARRAY_TYPES
#define ARRAY_TYPES BOOST_PP_TUPLE_TO_LIST(2, (std::vector<int>, std::vector<double>)) |
◆ BUILTIN_TYPES
#define BUILTIN_TYPES BOOST_PP_TUPLE_TO_LIST(8, (double, std::string, int, size_t, uint32_t, int64_t, float, uint64_t)) |
◆ GET_ARRAY
#define GET_ARRAY |
( |
|
R, |
|
|
|
_, |
|
|
|
T |
|
) |
| |
Value: else if (typeID.hash_code() == typeid(T).hash_code()) { \
result = Converters::Clone::apply<T::value_type>::create1D(column->cell<T>(row)); \
}
◆ GET_BUILTIN
#define GET_BUILTIN |
( |
|
R, |
|
|
|
_, |
|
|
|
T |
|
) |
| |
Value: else if (typeID.hash_code() == typeid(T).hash_code()) { \
result = to_python_value<const T &>()(column->cell<T>(row)); \
}
◆ GET_USER
#define GET_USER |
( |
|
R, |
|
|
|
_, |
|
|
|
T |
|
) |
| |
Value: else if (typeID.hash_code() == typeid(T).hash_code()) { \
const converter::registration *entry = converter::registry::query(typeid(T)); \
if (!entry) \
throw std::invalid_argument("Cannot find converter from C++ type."); \
result = entry->to_python((const void *)&column->cell<T>(row)); \
}
◆ IS_ARRAY_INTEGER
#define IS_ARRAY_INTEGER |
( |
|
obj | ) |
(PyLong_Check(obj) || PyArray_IsScalar((obj), Integer)) |
◆ NO_IMPORT_ARRAY
◆ PY_ARRAY_UNIQUE_SYMBOL
#define PY_ARRAY_UNIQUE_SYMBOL API_ARRAY_API |
◆ SET_CELL
#define SET_CELL |
( |
|
R, |
|
|
|
_, |
|
|
|
T |
|
) |
| |
Value: else if (typeID.hash_code() == typeid(T).hash_code()) { \
column->cell<T>(row) = extract<T>(
value)(); \
}
double value
The value of the point.
◆ SET_VECTOR_CELL
#define SET_VECTOR_CELL |
( |
|
R, |
|
|
|
_, |
|
|
|
T |
|
) |
| |
Value: else if (typeID.hash_code() == typeid(T).hash_code()) { \
} else { \
} \
}
static bool check(const boost::python::object &obj)
Check if a python object points to an array type object.
Converter taking an input numpy array and converting it to a std::vector.
Converts a Python sequence type to a C++ std::vector, where the element type is defined by the templa...
◆ STR_CHECK
#define STR_CHECK PyUnicode_Check |
◆ TO_LONG
#define TO_LONG PyLong_AsLong |
◆ USER_TYPES
◆ export_ITableWorkspace()
void export_ITableWorkspace |
( |
| ) |
|
◆ toDict()