All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
utils.h File Reference
#include <iterator>
#include <iostream>
#include <complex>
#include <type_traits>
#include <cassert>
#include <utility>
#include <stdexcept>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  voider<... >
 
struct  is_specialization< Test, Ref >
 
struct  is_specialization< Ref< Args... >, Ref >
 
class  visit_impl< INDEX >
 Class to index tuple at runtime. More...
 
struct  visit_impl< 0 >
 INDEX reached 0, which means the runtime index did not exist in the tuple. More...
 

Namespaces

namespace  awkward
 

Typedefs

template<typename... T>
using void_t = typename voider< T... >::type
 

Functions

template<typename T >
const std::string type_to_name ()
 Returns the name of a primitive type as a string. More...
 
template<>
const std::string type_to_name< bool > ()
 Returns bool string when the primitive type is boolean. More...
 
template<>
const std::string type_to_name< int8_t > ()
 Returns int8 string when the primitive type is an 8-bit signed integer. More...
 
template<>
const std::string type_to_name< int16_t > ()
 Returns int16 string when the primitive type is a 16-bit signed integer. More...
 
template<>
const std::string type_to_name< int32_t > ()
 Returns int32 string when the primitive type is a 32-bit signed integer. More...
 
template<>
const std::string type_to_name< int64_t > ()
 Returns int64 string when the primitive type is a 64-bit signed integer. More...
 
template<>
const std::string type_to_name< Long64_t > ()
 Returns int64 string when the primitive type is a 64-bit signed integer. More...
 
template<>
const std::string type_to_name< uint8_t > ()
 Returns uint8 string when the primitive type is an 8-bit unsigned integer. More...
 
template<>
const std::string type_to_name< uint16_t > ()
 Returns uint16 string when the primitive type is a 16-bit unsigned integer. More...
 
template<>
const std::string type_to_name< uint32_t > ()
 Returns uint32 string when the primitive type is a 32-bit unsigned integer. More...
 
template<>
const std::string type_to_name< uint64_t > ()
 Returns uint64 string when the primitive type is a 64-bit unsigned integer. More...
 
template<>
const std::string type_to_name< float > ()
 Returns float32 string when the primitive type is a floating point. More...
 
template<>
const std::string type_to_name< double > ()
 Returns float32 string when the primitive type is a double floating point. More...
 
template<>
const std::string type_to_name< char > ()
 Returns char string when the primitive type is a character. More...
 
template<>
const std::string type_to_name< std::complex< float > > ()
 Returns complex64 string when the primitive type is a complex number with float32 real and float32 imaginary parts. More...
 
template<>
const std::string type_to_name< std::complex< double > > ()
 Returns complex128 string when the primitive type is a complex number with float64 real and float64 imaginary parts. More...
 
template<typename T >
const std::string type_to_numpy_like ()
 Returns char string when the primitive type is a character. More...
 
template<>
const std::string type_to_numpy_like< uint8_t > ()
 Returns numpy-like character code of a primitive type as a string. More...
 
template<>
const std::string type_to_numpy_like< int8_t > ()
 Returns numpy-like character code i8, when the primitive type is an 8-bit signed integer. More...
 
template<>
const std::string type_to_numpy_like< uint32_t > ()
 Returns numpy-like character code u32, when the primitive type is a 32-bit unsigned integer. More...
 
template<>
const std::string type_to_numpy_like< int32_t > ()
 Returns numpy-like character code i32, when the primitive type is a 32-bit signed integer. More...
 
template<>
const std::string type_to_numpy_like< int64_t > ()
 Returns numpy-like character code i64, when the primitive type is a 64-bit signed integer. More...
 
template<typename T >
std::string type_to_form (int64_t form_key_id)
 Generates a Form, which is a unique description of the Layout Builder and its contents in the form of a JSON-like string. More...
 
template<typename T >
bool is_awkward_type ()
 Check if an RDataFrame column is an Awkward Array. More...
 
template<typename FUNCTION , typename... CONTENTs>
void visit_at (std::tuple< CONTENTs... > const &contents, size_t index, FUNCTION fun)
 Visits the tuple contents at index. More...
 
template<typename FUNCTION , typename... CONTENTs>
void visit_at (std::tuple< CONTENTs... > &contents, size_t index, FUNCTION fun)
 Visits the tuple contents at index. More...
 

Variables

template<typename , typename = void>
constexpr bool is_iterable {}