Provide mapping from Region IDs to user-specified collection of per-region attributes.
More...
|
template<class RMap > |
| RegionAttributes (const RMap &rmap, const Attributes &attr) |
| Constructor.
|
|
int | cell (const RegionID reg) const |
| Retrieve representative cell in region.
|
|
bool | has (const RegionID reg) const |
|
void | insert (const RegionID r, const Attributes &attr) |
|
const AttributeMap & | attributes () const |
| Request read-only access to region's attributes.
|
|
const Attributes & | attributes (const RegionID reg) const |
| Request read-only access to region's attributes.
|
|
Attributes & | attributes (const RegionID reg) |
| Request modifiable access to region's attributes.
|
|
template<typename RegionId, class Attributes>
class Opm::RegionAttributeHelpers::RegionAttributes< RegionId, Attributes >
Provide mapping from Region IDs to user-specified collection of per-region attributes.
- Template Parameters
-
RegionId | Region identifier type. Must be hashable by . Typically a built-in integer type–e.g., int . |
Attributes | User-defined type that represents collection of attributes that have meaning in a per-region aggregate sense. Must be copy-constructible. |