mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3185 Use std::array instead of FixedArray
This commit is contained in:
@@ -20,8 +20,10 @@
|
||||
|
||||
#pragma once
|
||||
#include "RigLocalGrid.h"
|
||||
|
||||
#include "cvfStructGrid.h"
|
||||
#include "cafFixedArray.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace cvf
|
||||
{
|
||||
@@ -36,8 +38,9 @@ public:
|
||||
RigCell();
|
||||
~RigCell(); // Not virtual, to save space. Do not inherit from this class
|
||||
|
||||
caf::SizeTArray8& cornerIndices() { return m_cornerIndices;}
|
||||
const caf::SizeTArray8& cornerIndices() const { return m_cornerIndices;}
|
||||
std::array<size_t, 8>& cornerIndices() { return m_cornerIndices;}
|
||||
const std::array<size_t, 8>& cornerIndices() const { return m_cornerIndices;}
|
||||
|
||||
void faceIndices(cvf::StructGridInterface::FaceType face, caf::SizeTArray4 * faceIndices) const ;
|
||||
|
||||
bool isInvalid() const { return m_isInvalid; }
|
||||
@@ -71,7 +74,7 @@ public:
|
||||
bool isLongPyramidCell(double maxHeightFactor = 5, double nodeNearTolerance = 1e-3 ) const;
|
||||
bool isCollapsedCell( double nodeNearTolerance = 1e-3) const;
|
||||
private:
|
||||
caf::SizeTArray8 m_cornerIndices;
|
||||
std::array<size_t, 8> m_cornerIndices;
|
||||
|
||||
size_t m_gridLocalCellIndex; ///< This cells index in the grid it belongs to.
|
||||
RigGridBase* m_hostGrid;
|
||||
|
||||
Reference in New Issue
Block a user