Provide compressed (active cell) read-only access to globally defined data array.
More...
#include <CompressedPropertyAccess.hpp>
|
typedef DataArray::value_type | value_type |
| Property value type.
|
|
template<class DataArray, class PropertyTag = Tag::Any>
class Opm::GridPropertyAccess::Compressed< DataArray, PropertyTag >
Provide compressed (active cell) read-only access to globally defined data array.
- Template Parameters
-
DataArray | Type representing an array of data values, one value for each global (uncompressed) cell in a model. Must implement value semantics. Typically one of the array policies of name space ArrayPolicy . Must provide public type value_type to infer the data element type and to access the property value of the i'th global cell. |
PropertyTag | Type tag that can be used to restrict applicability of the resulting Compressed array, e.g., to enforce net-to-gross ratios only. Default: No restriction. |
◆ Compressed()
template<class DataArray , class PropertyTag = Tag::Any>
Constructor.
- Parameters
-
[in] | x | Preconfigured global property value array. The Compressed array creates a private copy of this object. |
[in] | gc | Compressed-to-global cell map. Typically the global_cell field of an UnstructuredGrid or something very similar. If null, interpreted as identity mapping, i.e., as if all cells are active. |
◆ operator[]()
template<class DataArray , class PropertyTag = Tag::Any>
Read-only data array access.
- Parameters
-
- Returns
- Property value in active cell
c
.
The documentation for this class was generated from the following file: