EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dfe::io_npy_impl Namespace Reference

Functions

template<typename... Types>
constexpr std::array< const
char *, sizeof...(Types)> 
dtypes_codes (const std::tuple< Types...> &)
 
char dtype_endianness_modifier ()
 
template<typename NamedTuple >
std::string dtypes_description (const NamedTuple &nt)
 

Variables

template<typename T >
constexpr std::enable_if_t
< false, T
kNumpyDtypeCode
 
template<>
constexpr const char * kNumpyDtypeCode< uint8_t > = "u1"
 
template<>
constexpr const char * kNumpyDtypeCode< uint16_t > = "u2"
 
template<>
constexpr const char * kNumpyDtypeCode< uint32_t > = "u4"
 
template<>
constexpr const char * kNumpyDtypeCode< uint64_t > = "u8"
 
template<>
constexpr const char * kNumpyDtypeCode< int8_t > = "i1"
 
template<>
constexpr const char * kNumpyDtypeCode< int16_t > = "i2"
 
template<>
constexpr const char * kNumpyDtypeCode< int32_t > = "i4"
 
template<>
constexpr const char * kNumpyDtypeCode< int64_t > = "i8"
 
template<>
constexpr const char * kNumpyDtypeCode< float > = "f4"
 
template<>
constexpr const char * kNumpyDtypeCode< double > = "f8"
 
template<>
constexpr const char * kNumpyDtypeCode< bool > = "?"
 

Function Documentation

char dfe::io_npy_impl::dtype_endianness_modifier ( )
inline

Definition at line 113 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 113 of file dfe_io_numpy.hpp

References c, and x.

Referenced by dtypes_description().

+ Here is the caller graph for this function:

template<typename... Types>
constexpr std::array<const char*, sizeof...(Types)> dfe::io_npy_impl::dtypes_codes ( const std::tuple< Types...> &  )

Definition at line 104 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 104 of file dfe_io_numpy.hpp

Referenced by dtypes_description().

+ Here is the caller graph for this function:

template<typename NamedTuple >
std::string dfe::io_npy_impl::dtypes_description ( const NamedTuple &  nt)
inline

Definition at line 127 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 127 of file dfe_io_numpy.hpp

References dtype_endianness_modifier(), dtypes_codes(), n, eicpy.verify::names, and value.

Referenced by dfe::NamedTupleNumpyWriter< NamedTuple >::write_header().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

template<typename T >
constexpr std::enable_if_t<false, T> dfe::io_npy_impl::kNumpyDtypeCode

Definition at line 78 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 78 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< bool > = "?"

Definition at line 100 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 100 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< double > = "f8"

Definition at line 98 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 98 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< float > = "f4"

Definition at line 96 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 96 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< int16_t > = "i2"

Definition at line 90 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 90 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< int32_t > = "i4"

Definition at line 92 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 92 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< int64_t > = "i8"

Definition at line 94 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 94 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< int8_t > = "i1"

Definition at line 88 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 88 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< uint16_t > = "u2"

Definition at line 82 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 82 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< uint32_t > = "u4"

Definition at line 84 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 84 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< uint64_t > = "u8"

Definition at line 86 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 86 of file dfe_io_numpy.hpp

template<>
constexpr const char* dfe::io_npy_impl::kNumpyDtypeCode< uint8_t > = "u1"

Definition at line 80 of file dfe_io_numpy.hpp.

View newest version in sPHENIX GitHub at line 80 of file dfe_io_numpy.hpp