Skip to content

Commit

Permalink
Update DataTable
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Jul 17, 2024
1 parent fb9eb92 commit 8266ac1
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions include/momo/DataTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -825,15 +825,15 @@ class DataTable
return pvFindByUniqueHash(uniqueHashIndex, row);
}

template<typename Item, typename... Items>
ConstRowHashPointer FindByUniqueHash(Equalities<Item, Items...> equals,
template<typename... Items>
ConstRowHashPointer FindByUniqueHash(Equalities<Items...> equals,
UniqueHashIndex uniqueHashIndex = UniqueHashIndex::empty) const
{
return pvFindByHash<RowHashPointerProxy>(equals, uniqueHashIndex);
}

template<typename Item, typename... Items>
RowHashPointer FindByUniqueHash(Equalities<Item, Items...> equals,
template<typename... Items>
RowHashPointer FindByUniqueHash(Equalities<Items...> equals,
UniqueHashIndex uniqueHashIndex = UniqueHashIndex::empty)
{
return pvFindByHash<RowHashPointerProxy>(equals, uniqueHashIndex);
Expand All @@ -853,15 +853,15 @@ class DataTable
return pvFindByHash<RowHashPointerProxy>(uniqueHashIndex, equal, equals...);
}

template<typename Item, typename... Items>
ConstRowHashBounds FindByMultiHash(Equalities<Item, Items...> equals,
template<typename... Items>
ConstRowHashBounds FindByMultiHash(Equalities<Items...> equals,
MultiHashIndex multiHashIndex = MultiHashIndex::empty) const
{
return pvFindByHash<RowHashBoundsProxy>(equals, multiHashIndex);
}

template<typename Item, typename... Items>
RowHashBounds FindByMultiHash(Equalities<Item, Items...> equals,
template<typename... Items>
RowHashBounds FindByMultiHash(Equalities<Items...> equals,
MultiHashIndex multiHashIndex = MultiHashIndex::empty)
{
return pvFindByHash<RowHashBoundsProxy>(equals, multiHashIndex);
Expand Down Expand Up @@ -1541,6 +1541,7 @@ class DataTable
template<typename RowBoundsProxy, typename... Items, typename Index>
RowBoundsProxy pvFindByHash(const Equalities<Items...>& equals, Index index) const
{
MOMO_STATIC_ASSERT(sizeof...(Items) > 0);
return pvFindByHash<RowBoundsProxy>(equals, index,
typename internal::SequenceMaker<sizeof...(Items)>::Sequence());
}
Expand All @@ -1549,7 +1550,8 @@ class DataTable
RowBoundsProxy pvFindByHash(const Equalities<Items...>& equals, Index index,
internal::Sequence<sequence...>) const
{
return pvFindByHash<RowBoundsProxy>(index, equals.template Get<sequence>()...);
return pvFindByHash<RowBoundsProxy>(index, internal::Sequence<sequence...>(),
equals.template Get<sequence>()...);
}

template<typename RowBoundsProxy, typename Index, typename... Items,
Expand Down

0 comments on commit 8266ac1

Please sign in to comment.