ATLAS Offline Software
Loading...
Searching...
No Matches
LinkColumn.h File Reference
#include <AthLinks/ElementLink.h>
#include <ColumnarCore/ColumnAccessor.h>
#include <ColumnarCore/ColumnInfoHelpers.h>
#include <ColumnarCore/ContainerId.h>
#include <ColumnarCore/OptObjectId.h>
#include <ColumnarCore/VectorConvertView.h>
#include <SGCore/sgkey_t.h>
#include <algorithm>
#include <ranges>
#include <string>
#include <type_traits>
#include <vector>

Go to the source code of this file.

Classes

struct  columnar::detail::LinkClidTypeImp< CI >
 the type of the container a link column targets, for the purpose of counting the keys a link accepts, or void if the container id does not provide a CLID (see linkTargetClid) More...
struct  columnar::detail::LinkClidTypeImp< CI >
struct  columnar::detail::LinkDistinctTypeCount< Types >
 the number of distinct types in a list of types, ignoring void More...
struct  columnar::detail::LinkDistinctTypeCount< T, Rest... >
struct  columnar::LinkCastColumn< LT, ELT, ExtraELT >
 a special column type that behaves like an OptObjectId, but applies an internal cast in xAOD mode More...
class  columnar::detail::MemoryAccessor< OptObjectId< LT, CM >, CM >
class  columnar::detail::MemoryAccessor< LinkCastColumn< LT, ELT, ExtraELT... >, ColumnarModeXAOD >
class  columnar::detail::ContainerFreeAccessor< LinkCastColumn< LT, ELT, ExtraELT... >, ColumnAccessMode::input, CM >
class  columnar::detail::ContainerFreeAccessor< OptObjectId< LT, CM >, ColumnAccessMode::input, CM >
class  columnar::detail::MemoryAccessor< LinkCastColumn< LT, ELT, ExtraELT... >, ColumnarModeXAODArray >

Namespaces

namespace  columnar
namespace  columnar::detail
 Container id definitions for the columnar infrastructure.

Typedefs

template<typename CI>
using columnar::detail::LinkClidType = typename LinkClidTypeImp<CI>::type

Functions

template<ContainerIdConcept LT>
CLID columnar::detail::linkTargetClid ()
 the CLID of the xAOD container a link column targets, or 0 if the container id does not provide one
template<ColumnarModeConcept CM>
bool columnar::detail::isNullLink (typename CM::LinkKeyColumnType key, typename CM::LinkIndexColumnType index) noexcept
 whether the given key and index represent a null link
void columnar::detail::addLinkClid (std::vector< CLID > &clids, CLID clid)
 add a CLID to the list of CLIDs a link accepts
void columnar::detail::fillLinkKeys (std::vector< SG::sgkey_t > &keys, const std::string &name, const std::vector< CLID > &clids)
 calculate the keys a link accepts for the given container name
bool columnar::detail::isLinkKey (const std::vector< SG::sgkey_t > &keys, SG::sgkey_t key) noexcept
 whether the given key is in the list of accepted keys
void columnar::detail::throwLinkIndexOutOfRange (const std::string &columnName, std::size_t index, ColumnarOffsetType event, std::size_t numTargets)
 throw the exception for a link index outside its event
void columnar::detail::throwLinkKeyMismatch (const std::string &columnName, SG::sgkey_t key, ColumnarOffsetType event, const std::vector< SG::sgkey_t > &expected)
 throw the exception for a link key that doesn't match any of the keys accepted for the link target
template<typename CM>
std::size_t columnar::detail::resolveLinkIndex (void **dataArea, unsigned targetOffsetsIndex, ColumnarOffsetType event, std::size_t index, const std::string &columnName)
 convert the event-relative index of a link into an index into the target column, checking it is inside the event