1 #ifndef OPM_VERTEQ_RUNLEN_HPP_INCLUDED
2 #define OPM_VERTEQ_RUNLEN_HPP_INCLUDED
8 struct UnstructuredGrid;
93 : num_of_cols (num_cols)
105 : num_of_cols (rhs.num_of_cols)
117 return &data [pos [col]];
136 return pos [col + 1] - pos [col];
150 return data [pos [col + 1] - 1];
163 template <
typename T>
180 :
RunLenView <T> (number, pos_ptr, new T [pos_ptr [number]]) {
T * operator[](int col) const
Definition: runlen.hpp:116
RunLenData(int number, int *pos_ptr)
Definition: runlen.hpp:175
int cols() const
Definition: runlen.hpp:125
rlw_int grid_cell_faces(const UnstructuredGrid &g)
Definition: opmfwd.hpp:15
int num_of_cols
Definition: runlen.hpp:69
T & last(int col) const
Definition: runlen.hpp:149
const RunLenView< double > rlw_double
Definition: runlen.hpp:191
RunLenView(int num_cols, int *pos_ptr, T *values)
Definition: runlen.hpp:91
T * data
Definition: runlen.hpp:76
int * pos
Definition: runlen.hpp:70
rlw_int grid_cell_facetag(const UnstructuredGrid &g)
Definition: runlen.hpp:164
RunLenView(const RunLenView &rhs)
Definition: runlen.hpp:103
const RunLenView< int > rlw_int
Definition: runlen.hpp:190
~RunLenData()
Definition: runlen.hpp:183
Definition: runlen.hpp:60
int size(int col) const
Definition: runlen.hpp:135