Opm::GridPropertyAccess::ArrayPolicy::Constant< T > Class Template Reference

#include <CompressedPropertyAccess.hpp>

Public Types

typedef T value_type
 
typedef std::size_t size_type
 

Public Member Functions

 Constant (const T c)
 
value_type operator[] (const size_type i) const
 

Detailed Description

template<typename T>
class Opm::GridPropertyAccess::ArrayPolicy::Constant< T >

Data array policy that returns a single, constant user specified value for every global cell.

Provides read-only access to the underlying data.

Template Parameters
TArray element type.

Member Typedef Documentation

template<typename T >
typedef std::size_t Opm::GridPropertyAccess::ArrayPolicy::Constant< T >::size_type

Index type for accessing data array.

template<typename T >
typedef T Opm::GridPropertyAccess::ArrayPolicy::Constant< T >::value_type

Publicly accessible data array element type.

Constructor & Destructor Documentation

template<typename T >
Opm::GridPropertyAccess::ArrayPolicy::Constant< T >::Constant ( const T  c)
inline

Constructor

Parameters
[in]cConstant property value used for all global cells.

Member Function Documentation

template<typename T >
value_type Opm::GridPropertyAccess::ArrayPolicy::Constant< T >::operator[] ( const size_type  i) const
inline

Read-only data array access.

Parameters
[in]iArray index. Assumed to identify a global (uncompressed) cell. Unused.
Returns
User specified constant value for every (global) cell.

The documentation for this class was generated from the following file: