InputTraits struct
#include <gtopt/input_traits.hpp>
Input data access traits.
Inherits from UidTraits and adds input-specific functionality
Base classes
- struct UidTraits
- Traits for UID-based data access patterns.
Derived classes
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename... Uid>class Schedule
-
template<typename Type, typename Map, typename FSched, typename... Uid>struct ArrayIndexTraits
- class InputContext
-
template<typename Type, typename... Uid>class OptSchedule
-
template<typename Type, typename... Uid>class Schedule
Public types
-
template<typename... Uid>using array_table_vector_uid_idx_t = std::tuple<array_
uid_ idx_ map_ t<Uid...>, table_ uid_ idx_ map_ t<Uid...>, vector_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using array_uid_idx_map_t = base_
map_ t<CFNameUid, arrow_ array_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using array_vector_uid_idx_v = std::variant<arrow_
array_ uid_ idx_ t<Uid...>, vector_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using arrow_array_uid_idx_t = std::tuple<ArrowChunkedArray, ArrowUidIdx<Uid...>, PresentMask>
-
template<typename... Uid>using arrow_table_uid_idx_t = std::tuple<ArrowTable, ArrowUidIdx<Uid...>, PresentMask>
-
template<typename... Uid>using ArrowUidIdx = UidToArrowIdx<Uid...>::
UidIdx -
template<typename Key, typename Value>using base_map_t = gtopt::
flat_map<Key, Value> - using CFName = std::tuple<ClassNameType, FieldNameType>
- using CFNameUid = std::tuple<ClassNameType, FieldNameType, Uid>
- using ClassNameType = std::string_view
- using FieldNameType = std::string_view
-
template<typename... Uid>using idx_key_t = UidToVectorIdx<Uid...>::
IndexKey -
template<typename value_type, typename... Uid>using idx_vector_t = mvector_
traits<value_type, idx_ key_ t<Uid...>>:: vector_type - using PresentMask = ArrowPresentMask
-
template<typename... Uid>using table_uid_idx_map_t = base_
map_ t<CFName, arrow_ table_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using vector_uid_idx_t = VectorUidIdx<Uid...>
-
template<typename... Uid>using VectorUidIdx = UidToVectorIdx<Uid...>::
UidIdx
Public static functions
-
template<typename Type, typename RType = Type, typename FSched, typename UidIdx UidIdx, typename AccessOper, typename... Uid>static auto access_sched(const FSched& sched, const UidIdx& uid_idx, AccessOper access_oper, Uid... uid) -> RType
-
template<typename Type, typename FSched, typename UidIdx UidIdx, typename... Uid>static auto at_sched(const FSched& sched, const UidIdx& uid_idx, Uid... uid) -> Type
-
template<typename Type, typename FSched, typename UidIdx UidIdx, typename... Uid>static auto optval_sched(const FSched& sched, const UidIdx& uid_idx, Uid... uid) -> std::optional<Type>
-
template<typename Tuple>static auto project_key(const Tuple& key, PresentMask mask) -> Tuple noexcept
-
template<typename Tuple, std::size_t... I>static auto project_key_impl(const Tuple& key, PresentMask mask, std::index_sequence<I...>) -> Tuple noexcept
Typedef documentation
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: array_table_vector_uid_idx_t = std::tuple<array_ uid_ idx_ map_ t<Uid...>, table_ uid_ idx_ map_ t<Uid...>, vector_ uid_ idx_ t<Uid...>>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: array_uid_idx_map_t = base_ map_ t<CFNameUid, arrow_ array_ uid_ idx_ t<Uid...>>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: array_vector_uid_idx_v = std::variant<arrow_ array_ uid_ idx_ t<Uid...>, vector_ uid_ idx_ t<Uid...>>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: arrow_array_uid_idx_t = std::tuple<ArrowChunkedArray, ArrowUidIdx<Uid...>, PresentMask>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: arrow_table_uid_idx_t = std::tuple<ArrowTable, ArrowUidIdx<Uid...>, PresentMask>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: ArrowUidIdx = UidToArrowIdx<Uid...>:: UidIdx
#include <gtopt/uid_traits.hpp>
template<typename Key, typename Value>
using gtopt:: InputTraits:: base_map_t = gtopt:: flat_map<Key, Value>
using gtopt:: InputTraits:: CFName = std::tuple<ClassNameType, FieldNameType>
#include <gtopt/uid_traits.hpp>
using gtopt:: InputTraits:: CFNameUid = std::tuple<ClassNameType, FieldNameType, Uid>
#include <gtopt/uid_traits.hpp>
using gtopt:: InputTraits:: ClassNameType = std::string_view
#include <gtopt/uid_traits.hpp>
using gtopt:: InputTraits:: FieldNameType = std::string_view
#include <gtopt/uid_traits.hpp>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: idx_key_t = UidToVectorIdx<Uid...>:: IndexKey
#include <gtopt/uid_traits.hpp>
template<typename value_type, typename... Uid>
using gtopt:: InputTraits:: idx_vector_t = mvector_ traits<value_type, idx_ key_ t<Uid...>>:: vector_type
using gtopt:: InputTraits:: PresentMask = ArrowPresentMask
#include <gtopt/uid_traits.hpp>
Bitmask describing which UID dimensions are present in an input table. Bit i corresponds to the i-th UID in the parameter pack. When a bit is 0, the underlying column was absent from the table and the loader has built / will look up the index with a default-constructed UID in that slot — i.e. the value is broadcast across that dimension. See UidToArrowIdx<...>::make_arrow_uids_idx.
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: table_uid_idx_map_t = base_ map_ t<CFName, arrow_ table_ uid_ idx_ t<Uid...>>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: vector_uid_idx_t = VectorUidIdx<Uid...>
#include <gtopt/uid_traits.hpp>
template<typename... Uid>
using gtopt:: InputTraits:: VectorUidIdx = UidToVectorIdx<Uid...>:: UidIdx
Function documentation
template<typename Tuple, std::size_t... I>
static Tuple gtopt:: InputTraits:: project_key_impl(const Tuple& key,
PresentMask mask,
std::index_sequence<I...>) noexcept
Project a UID tuple onto the dimensions present in mask. Slots whose corresponding bit is zero are replaced by a default-constructed UID — this is the same sentinel that the loader stored in the row index when the column was absent, so the projected key always finds the row that the file intends to broadcast.