47 std::vector < boost::python::list >
m_data;
53 mutable std::vector < double >
m_row;
74 unsigned int static getSize (
const boost::python::list & sequence );
84 virtual void notifyObservers ( )
const;
88 virtual unsigned int rows ()
const;
92 virtual bool empty ()
const;
94 virtual double valueAt (
unsigned int row,
unsigned int column )
const;
104 int addColumn (
const std::string & label,
105 boost::python::list seq );
112 void replaceColumn (
unsigned int index,
113 boost::python::list array );
120 void replaceColumn (
const std::string & label,
121 boost::python::list array );
125 virtual const std::vector < double > & getRow (
unsigned int index )
const;
133 virtual void setShape ( std::vector < unsigned int > &
shape );
137 const std::vector < unsigned int > & getShape ()
const;
142 virtual void clear ();
147 virtual void reserve (
unsigned int count );
152 operator [] ( std::vector < unsigned int > & indices )
const;
159 bool isAcceptable (
const boost::python::list & seq );
165 #endif // ListTuple_H std::vector< double > m_row
A temporary array of data from one row of each column.
Base class for DataSource.
std::vector< boost::python::list > m_data
The numarray objects that contains the data.
hippodraw::DataSource class interface.
A DataSource class implemented with a Python list to store the column data.
column
The column indices for 2 dimension data point tuple.
std::vector< intptr_t > shape(numeric::array arr)