mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 09:00:20 -05:00
NNC: Remove RigConnectionContainer, use std::vector<RigConnection> directly
RigConnectionContainer was a thin wrapper around std::vector<RigConnection> with no added value beyond push_back/reserve/remove_duplicates. Replace it everywhere with std::vector<RigConnection> and inline the remaining container-merge and deduplication logic at their single call sites.
This commit is contained in:
1 parent
fc829069e8
commit
c8ad00a904
19 files changed
+76
-175
No files matched your search
@@ -129,7 +129,7 @@ cvf::ref<cvf::DrawableGeo> RivFaultGeometryGenerator::createOutlineMeshDrawable(
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RivFaultGeometryGenerator::hasConnection( size_t cellIdx,
|
||||
cvf::StructGridInterface::FaceType face,
|
||||
const RigConnectionContainer& conns,
|
||||
const std::vector<RigConnection>& conns,
|
||||
const std::vector<size_t>& nncConnectionIndices )
|
||||
{
|
||||
cvf::StructGridInterface::FaceType oppositeFace = cvf::StructGridInterface::oppositeFace( face );
|
||||
|
||||
@@ -33,7 +33,7 @@ class Part;
|
||||
} // namespace cvf
|
||||
|
||||
class RigNNCData;
|
||||
class RigConnectionContainer;
|
||||
class RigConnection;
|
||||
class RigFault;
|
||||
|
||||
//==================================================================================================
|
||||
@@ -64,7 +64,7 @@ private:
|
||||
|
||||
bool hasConnection( size_t cellIdx,
|
||||
cvf::StructGridInterface::FaceType face,
|
||||
const RigConnectionContainer& conns,
|
||||
const std::vector<RigConnection>& conns,
|
||||
const std::vector<size_t>& nncConnectionIndices );
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user