Loading...
Searching...
No Matches
utils.h File Reference
#include <iterator>
#include <iostream>
#include <complex>
#include <type_traits>
#include <cassert>
#include <utility>
#include <stdexcept>
#include <stdint.h>
#include <typeinfo>
#include <map>
#include <vector>

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.
 
template<>
const std::string type_to_name< bool > ()
 
template<>
const std::string type_to_name< char > ()
 
template<typename T >
const std::string type_to_numpy_like ()
 Returns char string when the primitive type is a character.
 
template<>
const std::string type_to_numpy_like< uint8_t > ()
 Returns numpy-like character code of a primitive type as a string.
 
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.
 
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.
 
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.
 
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.
 
template<typename T , typename OFFSETS >
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.
 
template<typename T >
bool is_awkward_type ()
 Check if an RDataFrame column is an Awkward Array.
 
template<typename FUNCTION , typename... CONTENTs>
void visit_at (std::tuple< CONTENTs... > const &contents, size_t index, FUNCTION fun)
 Visits the tuple contents at index.
 
template<typename FUNCTION , typename... CONTENTs>
void visit_at (std::tuple< CONTENTs... > &contents, size_t index, FUNCTION fun)
 Visits the tuple contents at index.
 
template<typename LayoutBuilder >
std::vector< std::string > buffer_name_helper (const LayoutBuilder *builder)
 Helper function to retrieve the names of the buffers.
 
template<typename LayoutBuilder >
std::vector< size_t > buffer_size_helper (const LayoutBuilder *builder)
 Helper function to retrieve the sizes (in bytes) of the buffers.
 
template<typename LayoutBuilder >
size_t num_buffers_helper (const LayoutBuilder *builder)
 Helper function to retrieve the number of the buffers.
 

Variables

template<class T >
constexpr bool is_integral_v = std::is_integral<T>::value
 
template<class T >
constexpr bool is_signed_v = std::is_signed<T>::value
 
template<class T , class U >
constexpr bool is_same_v = std::is_same<T, U>::value
 
template<typename , typename = void>
constexpr bool is_iterable {}