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

Generated for HippoDraw Class Library by doxygen