DataColumn.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 
14 #ifndef DataColumn_H
15 #define DataColumn_H
16 
17 #include "pattern/libhippo.h"
18 
19 #include <vector>
20 
21 #ifndef _MSC_VER
22 #include <inttypes.h>
23 #endif
24 
25 namespace hippodraw {
26 
32 {
33 public:
34 
35  enum Type {
38  Int,
39  UInt,
41  };
42 
43 private:
44 
48  std::vector < double > m_double_data;
49 
53  std::vector < intptr_t > m_shape;
54 
58 
59 private:
60 
63  DataColumn ( const DataColumn & );
64 
65 public:
66 
69  DataColumn ();
70 
73  ~DataColumn();
74 
77  std::vector < double > & getData ();
78 
81  const std::vector < double > & getData () const;
82 
89  unsigned int getRank () const;
90 
94  const std::vector < intptr_t > & getShape ();
95 
99  void setShape ( const std::vector < intptr_t > & shape );
100 
101 
107  std::size_t size () const;
108 
111  void clear ();
112 
115  double * doubleArrayAt ( unsigned int row );
116 
117 };
118 
119 } // namespace hippodraw
120 
121 #endif // DataColumn_H
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int type.
Definition: DataColumn.h:39
std::vector< intptr_t > shape(numeric::array arr)
Definition: num_util.cpp:317
std::vector< double > m_double_data
The data.
Definition: DataColumn.h:48
intp size(numeric::array arr)
Definition: num_util.cpp:296
Type m_type
The type for this column.
Definition: DataColumn.h:57
unsigned 64 bit long.
Definition: RootDataType.h:31
A class to hold data and its attributes.
Definition: DataColumn.h:31
std::vector< intptr_t > m_shape
In case the data quantity we are dealing with is a vector/matrix store its dimensions of each axis in...
Definition: DataColumn.h:53

Generated for HippoDraw Class Library by doxygen