Opm::RunLenData< T > Struct Template Reference
Inheritance diagram for Opm::RunLenData< T >:
Detailed Descriptiontemplate<typename T> struct Opm::RunLenData< T > Allocate a new vector of data for each element, accessible as a zig-zag matrix. Use this kind of matrix when you want to enhance the grid structure with some information per element, using the existing format.
Constructor & Destructor Documentation◆ RunLenData()
template<typename T >
Allocate a matrix based on sizes specified elsewhere. This is useful if you want to supply with your own data.
◆ ~RunLenData()
template<typename T >
Member Function Documentation◆ cols()
template<typename T >
Number of columns that are stored in the entire matrix.
References Opm::RunLenView< T >::num_of_cols. ◆ last()
template<typename T >
Quick accessor to get the last element. When we store accumulated data in the array, this will quickly give us the total. Note that this is NOT the end iterator for the column.
References Opm::RunLenView< T >::data, and Opm::RunLenView< T >::pos. ◆ operator[]()
template<typename T >
Access a column directly.
References Opm::RunLenView< T >::data, and Opm::RunLenView< T >::pos. ◆ size()
template<typename T >
Number of elements that are stored in one particular column.
References Opm::RunLenView< T >::pos. Member Data Documentation◆ data
template<typename T >
Data for each of the individual elements, stored consecutively for each column located together, followed by the next column. Referenced by Opm::RunLenView< T >::last(), and Opm::RunLenView< T >::operator[](). ◆ num_of_cols
template<typename T >
Size information. pos has num_of_cols+1 items, pos[i] contains the starting index of the data values for column i. (Since there is one more element than there are columns, the last one is the total number of elements). The number 0 is explicitly stored in the first column to avoid special processing. Referenced by Opm::RunLenView< T >::cols(). ◆ pos
template<typename T >
The documentation for this struct was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||