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:
Magne Sjaastad committed 2026-10-05 08:39:07 +02:00
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: