Ad hoc implementation of fixed-width span/view of an underlying contiguous range of elements.
More...
#include <PAvgDynamicSourceData.hpp>
|
enum class | Item { Pressure
, MixtureDensity
, PoreVol
, Last_Do_Not_Use
} |
| Supported items of dynamic data per source location.
|
|
using | ElmT = std::remove_cv_t< T > |
|
|
constexpr ElmT | operator[] (const Item i) const |
| Read-only access to numerical value of specified item.
|
|
template<typename Ret = SourceDataSpan&> |
constexpr std::enable_if_t<! std::is_const_v< T >, Ret > | set (const Item i, const ElmT value) |
| Assign specified item.
|
|
template<typename U , typename Ret = SourceDataSpan&> |
constexpr std::enable_if_t<! std::is_const_v< T >, Ret > | operator= (const SourceDataSpan< U > src) |
| Assign all items.
|
|
|
class | PAvgDynamicSourceData |
|
template<typename T>
class Opm::PAvgDynamicSourceData::SourceDataSpan< T >
Ad hoc implementation of fixed-width span/view of an underlying contiguous range of elements.
- Template Parameters
-
T | Element type. Const or non-const as needed. Typically double or . |
◆ operator=()
template<typename T >
template<typename U , typename Ret = SourceDataSpan&>
Assign all items.
Availble only if underlying range is non-const.
- Parameters
-
[in] | i | Item of dynamic source data. |
[in] | value | Numerical value of specified item. |
- Returns
- to enable chaining.
◆ operator[]()
Read-only access to numerical value of specified item.
- Parameters
-
[in] | i | Item of dynamic source data. |
- Returns
- Numerical value of specified item.
◆ set()
template<typename T >
template<typename Ret = SourceDataSpan&>
Assign specified item.
Availble only if underlying range is non-const.
- Parameters
-
[in] | i | Item of dynamic source data. |
[in] | value | Numerical value of specified item. |
- Returns
- to enable chaining.
The documentation for this class was generated from the following file: