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

@@ -90,8 +90,8 @@ rips::Vec3i* createConnectionVec3i( const RigCell& cell )
//--------------------------------------------------------------------------------------------------
grpc::Status RiaNNCConnectionsStateHandler::assignReply( rips::NNCConnections* reply )
{
RigMainGrid* mainGrid = m_eclipseCase->eclipseCaseData()->mainGrid();
const RigConnectionContainer& connections = mainGrid->nncData()->allConnections();
RigMainGrid* mainGrid = m_eclipseCase->eclipseCaseData()->mainGrid();
const std::vector<RigConnection>& connections = mainGrid->nncData()->allConnections();
size_t connectionCount = connections.size();
const size_t packageSize = RiaGrpcHelper::numberOfDataUnitsInPackage( sizeof( rips::NNCConnection ) );