Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Framework/Core/include/Framework/ASoA.h
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,30 @@ struct FilteredIndexPolicy : IndexPolicyBase {
template <typename... C>
class Table;

template <typename... Cs>
constexpr auto select_persistent(framework::pack<Cs...>)
{
return framework::selected_pack<is_persistent_t, Cs...>{};
}

template <typename... Cs>
constexpr auto select_external_index(framework::pack<Cs...>)
{
return framework::selected_pack<is_external_index_t, Cs...>{};
}

template <typename... Cs>
constexpr auto select_internal_index(framework::pack<Cs...>)
{
return framework::selected_pack<is_self_index_t, Cs...>{};
}

template <typename... Cs>
constexpr auto select_dynamic(framework::pack<Cs...>)
{
return framework::selected_pack<is_dynamic_t, Cs...>{};
}

/// Similar to a pair but not a pair, to avoid
/// exposing the second type everywhere.
template <typename C>
Expand Down