Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Span< T, S > Struct Template Reference

Public Types

using const_iterator = T const *
 

Public Member Functions

auto size () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
auto operator[] (std::size_t i) const
 

Public Attributes

Tptr
 

Detailed Description

template<typename T, std::size_t S>
struct Span< T, S >

This is a very unsophisticated span implementation to avoid data copies in the KDTree search. Should be replaced with std::span when possible

Definition at line 185 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 185 of file buildEdges.cpp

Member Typedef Documentation

template<typename T, std::size_t S>
using Span< T, S >::const_iterator = T const *

Definition at line 190 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 190 of file buildEdges.cpp

Member Function Documentation

template<typename T, std::size_t S>
const_iterator Span< T, S >::cbegin ( ) const
inline

Definition at line 191 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 191 of file buildEdges.cpp

References Span< T, S >::ptr.

template<typename T, std::size_t S>
const_iterator Span< T, S >::cend ( ) const
inline

Definition at line 192 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 192 of file buildEdges.cpp

References Span< T, S >::ptr, and S().

+ Here is the call graph for this function:

template<typename T, std::size_t S>
auto Span< T, S >::operator[] ( std::size_t  i) const
inline

Definition at line 194 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 194 of file buildEdges.cpp

References i, and Span< T, S >::ptr.

template<typename T, std::size_t S>
auto Span< T, S >::size ( void  ) const
inline

Definition at line 188 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 188 of file buildEdges.cpp

References S().

+ Here is the call graph for this function:

Member Data Documentation

template<typename T, std::size_t S>
T* Span< T, S >::ptr

Definition at line 186 of file buildEdges.cpp.

View newest version in sPHENIX GitHub at line 186 of file buildEdges.cpp

Referenced by Span< T, S >::cbegin(), Span< T, S >::cend(), and Span< T, S >::operator[]().


The documentation for this struct was generated from the following file: