Skip to content
Snippets Groups Projects

Feature/itemvalue

2 files
+ 10
1
Compare changes
  • Side-by-side
  • Inline

Files

+ 9
0
@@ -60,6 +60,15 @@ class ItemToItemMatrix
return SubItemList<RowType>(m_connectivity_matrix.rowConst(source_id));
}
template <typename IndexType>
const auto operator[](const IndexType& source_id) const
{
static_assert(std::is_same<IndexType, SourceItemId>(),
"ItemToItemMatrix must be indexed using correct ItemId");
using RowType = decltype(m_connectivity_matrix.rowConst(source_id));
return SubItemList<RowType>(m_connectivity_matrix.rowConst(source_id));
}
ItemToItemMatrix(const ConnectivityMatrix& connectivity_matrix)
: m_connectivity_matrix{connectivity_matrix}
{
Loading