19 # pragma warning(disable:4231)
22 # pragma warning(disable:4251)
25 # pragma warning(disable:4275)
28 # pragma warning(disable:4800)
32 #include <boost/python.hpp>
34 #define PY_ARRAY_UNIQUE_SYMBOL HippoPyArrayHandle
40 using namespace boost::python;
51 numeric::array::set_module_and_type
56 numeric::array::set_module_and_type
60 numeric::array::set_module_and_type ();
64 class_ < NumArrayTuple, bases < DataSource > > (
"NumArrayTuple",
65 "Interface to numarray Python extension module.",
66 init< > (
"Creates an empty NumArrayTuple" ) )
70 .def (
"setLabels", &NumArrayTuple::setLabels,
71 args (
"[label, ...]" ),
72 "Sets the labels of the columns." )
74 .def (
"getLabel", &NumArrayTuple::getLabelAt,
75 return_value_policy < copy_const_reference > () )
81 &NumArrayTuple::addColumn,
82 "Adds the array as a new column with label" )
84 .def (
"replaceColumn",
86 (
unsigned int, numeric::array ) )
87 &NumArrayTuple::replaceColumn,
88 "Replaces existing column with new array\n"
93 .def (
"replaceColumn",
95 (
const std::string &, numeric::array ) )
96 &NumArrayTuple::replaceColumn,
97 "Replaces existing column with new array\n"
102 .def (
"notifyObservers",
103 &NumArrayTuple::notifyObservers,
104 "Sends update message to all observers." )