Namespace qir

namespace qir

Variables

template<typename T>
static constexpr bool IS_STD_ARRAY_V = false
template<typename T, typename ...Args>
static constexpr size_t SIZE_OF_PACK_OF_TYPE_V = SizeOfPackOfType<T, Args...>::VALUE
template<template<typename, typename...> class V, typename T, typename ...Args>
static constexpr size_t SKIP_UNTIL_TYPE_V = SkipUntilType<V, T, Args...>::VALUE
class Runtime
#include <Runtime.hpp>

Note

This class is implemented following the design pattern Singleton in order to access an instance of this class from the C function without having a handle to it.

template<typename T, typename ...Args>
struct SizeOfPackOfType
template<typename T>
struct SizeOfPackOfType<T>
template<typename T, typename ...Args>
struct SizeOfPackOfType<T, T, Args...>
template<typename T, typename U, typename ...Args>
struct SizeOfPackOfType<T, U, Args...>
template<template<typename, typename...> class V, typename T, typename ...Args>
struct SkipUntilType
template<template<typename, typename...> class V, typename T>
struct SkipUntilType<V, T>
template<template<typename, typename...> class V, typename T, typename ...Args>
struct SkipUntilType<V, T, T, Args...>
template<template<typename, typename...> class V, typename T, typename U, typename ...Args>
struct SkipUntilType<V, T, U, Args...>
class Utils

Public Static Functions

template<typename Func, typename S, typename R>
static inline constexpr void transform(Func &&func, S &&source, R &&result)

Helper function to apply a function to each element of the array and store the result in another equally sized array.

template<typename Func, typename S, typename T>
static inline constexpr void apply2(Func &&func, S &&arg1, T &&arg2)

Helper function to apply a function to each element of the array and store the result with the help of the store function in another equally sized array.