mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add some friends to protect direct access to internal cell storage
This commit is contained in:
@@ -34,7 +34,8 @@ public:
|
||||
size_t totalCellCount() const override;
|
||||
size_t totalActiveCellCount() const;
|
||||
|
||||
public: // only for use by file readers!
|
||||
protected: // only for use by file readers!
|
||||
friend class RifReaderOpmCommonActive;
|
||||
std::map<size_t, RigCell>& nativeCells();
|
||||
const std::map<size_t, RigCell>& nativeCells() const;
|
||||
void setTotalCellCount( size_t totalCellCount );
|
||||
|
@@ -113,7 +113,16 @@ public:
|
||||
bool isDualPorosity() const;
|
||||
void setDualPorosity( bool enable );
|
||||
|
||||
public: // only for use by file readers!
|
||||
protected: // only for use by file readers and internal services. TODO: replace with a better API
|
||||
friend class RigGridBase;
|
||||
friend class RigReservoirBuilder;
|
||||
friend class RifRoffFileTools;
|
||||
friend class RifEclipseOutputFileTools;
|
||||
friend class RifReaderEclipseOutput;
|
||||
friend class RifReaderOpmCommon;
|
||||
friend class RiaGrpcCaseService;
|
||||
friend class RiaActiveCellInfoStateHandler;
|
||||
friend class RicCreateTemporaryLgrFeature;
|
||||
std::vector<RigCell>& reservoirCells();
|
||||
const std::vector<RigCell>& reservoirCells() const;
|
||||
|
||||
|
Reference in New Issue
Block a user