14 # pragma warning(disable:4231)
17 # pragma warning(disable:4251)
20 # pragma warning(disable:4275)
23 # pragma warning(disable:4800)
27 #include <boost/python.hpp>
31 using namespace boost::python;
39 class_ < ListTuple, bases < DataSource > >
41 "A derived class from DataSource containing columns as references to\n"
42 "Python list objects. This allows the data to be used without making\n"
43 "a copy of it. However, access to the data is slower than for most\n"
44 "of the other classes derived from DataSource",
46 (
"ListTuple ( None ) -> ListTuple\n"
48 "Creates an empty ListTuple" ) )
52 .def (
"setLabels", &ListTuple::setLabels,
53 "setLabels ( list or tuple ) -> None\n"
55 "Sets the labels of the columns from list of string objects.\n"
56 "For an empty ListTuple object, implicitly sets the number of\n"
59 .def (
"getLabel", &ListTuple::getLabelAt,
60 return_value_policy < copy_const_reference > (),
61 "getLabel ( index ) -> string\n"
63 "Returns label of column." )
69 &ListTuple::addColumn,
70 with_custodian_and_ward < 1, 2 > (),
71 "addColumn ( string, list ) -> value\n"
73 "Adds the array as a new column with label from the string.\n"
74 "Returns the index of the new column." )
76 .def (
"replaceColumn",
79 &ListTuple::replaceColumn,
80 with_custodian_and_ward < 1, 2 > (),
81 "replaceColumn ( index, list ) -> None\n"
83 "Replaces existing column with list\n" )
85 .def (
"replaceColumn",
88 &ListTuple::replaceColumn,
89 with_custodian_and_ward < 1, 2 > (),
90 "replaceColumn ( string, list ) -> None\n"
92 "Replaces existing column with new array\n" )
94 .def (
"notifyObservers",
95 &ListTuple::notifyObservers,
96 "notifyObservers ( None ) -> None\n"
98 "Sends update message to all observers. Use this member if the\n"
99 "contents of the reference Python list has changed and Display\n"
100 "objects bound to it require updating." )
void export_ListTuple()
Exports the ListTuple class to Python.
hippodraw::ListTuple class interface.
A wrapper class for Python list objects.
A DataSource class implemented with a Python list to store the column data.