OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
misc.h File Reference
#include "funcannotations.h"
#include <array>
#include <cstdint>
#include <cstring>
#include <deque>
#include <iterator>
#include <list>
#include <map>
#include <set>
#include <string_view>
#include <unordered_set>
#include <vector>
#include <climits>
#include <utility>
+ Include dependency graph for misc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  shared::PrintContainer< CONTAINER >
struct  shared::is_std_container< CONTAINER >
struct  shared::is_std_container< std::deque< T, A > >
struct  shared::is_std_container< std::list< T, A > >
struct  shared::is_std_container< std::set< T, A > >
struct  shared::is_std_container< std::unordered_set< T, A > >
struct  shared::is_std_container< std::vector< T, A > >
struct  shared::DivUMod




template<typename T >
constexpr T anonymous_namespace{misc.h}::power (T const a, T const n)
template<typename T , size_t... Indices>
constexpr std::array< T,
anonymous_namespace{misc.h}::powersOfImpl (T const a, std::index_sequence< Indices...>)
template<size_t... Indices>
constexpr std::array< double,
anonymous_namespace{misc.h}::inversePowersOfImpl (double const a, std::index_sequence< Indices...>)
template<typename K , typename V , typename comp >
V & shared::get_from_map (std::map< K, V, comp > &map, const K &key)
template<typename K , typename V , typename comp >
const V & shared::get_from_map (const std::map< K, V, comp > &map, const K &key)
template<typename T >
size_t shared::append_move (std::vector< T > &destination, std::vector< T > &&source)
template<typename... Ts, typename T >
bool shared::dynamic_castable_to_any (T const *ptr)
template<typename CONTAINER >
PrintContainer< CONTAINER > shared::printContainer (CONTAINER &container)
template<typename OSTREAM , typename CONTAINER >
OSTREAM & shared::operator<< (OSTREAM &os, PrintContainer< CONTAINER > pc)
size_t shared::formatDate (char *buf, size_t const max, int64_t const unixtime)
size_t shared::formatDateTime (char *buf, size_t const max, int64_t const timestamp, int const dimension, bool use_iso_format)
size_t shared::formatHMS (char *buf, size_t const max, int64_t const unixtime)
std::string shared::convert_temporal_to_iso_format (const SQLTypeInfo &type_info, int64_t unix_time)
DivUMod shared::divUMod (int64_t num, int64_t den)
uint64_t shared::unsignedMod (int64_t num, int64_t den)
template<typename T , typename U >
bool shared::contains (const T &container, const U &element)
template<typename... COEFFICIENTS>
DEVICE constexpr double shared::horner (double const x, double const c0, COEFFICIENTS...c)
DEVICE double shared::fastAtanh (double const x)
DEVICE double shared::fastCos (double const x)
DEVICE double shared::fastCosh (double const x)
DEVICE double shared::fastSin (double const x)
DEVICE double shared::fastSinh (double const x)
template<int... values, typename T >
bool shared::is_any (T &&value)
template<typename T , size_t N>
constexpr std::array< T, N > shared::powersOf (T const a)
template<size_t N>
constexpr std::array< double, N > shared::inversePowersOf (double const a)
double shared::power10 (unsigned const x)
double shared::power10inv (unsigned const x)
template<typename TO , typename FROM >
TO shared::reinterpret_bits (FROM const from)
template<typename TO , typename FROM >
TO shared::bit_cast (FROM &&from)
template<typename... STR>
constexpr std::array
< std::string_view, sizeof...(STR)> 
shared::string_view_array (STR &&...str)
template<typename OUTPUT , typename INPUT , typename FUNC >
OUTPUT shared::transform (INPUT const &input, FUNC const &func)
unsigned shared::ceil_div (unsigned const dividend, unsigned const divisor)
size_t shared::compute_hash (int32_t item_1, int32_t item_2)
template<typename T >
bool shared::is_unordered_set_intersection_empty (std::unordered_set< T > const &r, std::unordered_set< T > const &s)
template<typename T >
void shared::compute_unordered_set_intersection (std::unordered_set< T > *const dest, std::unordered_set< T > const &r, std::unordered_set< T > const &s)
template<class T , std::size_t... N>
constexpr T shared::bswap_impl (T i, std::index_sequence< N...>)
template<class T , class U = typename std::make_unsigned<T>::type>
constexpr U shared::bswap (T i)
template<class T >
constexpr T shared::byteswap (T n) noexcept
constexpr auto shared::heavyai_htons (std::uint16_t h)
constexpr auto shared::heavyai_htonl (std::uint32_t h)
constexpr auto shared::heavyai_htonll (std::uint64_t h)
constexpr auto shared::heavyai_ntohs (std::uint16_t n)
constexpr auto shared::heavyai_ntohl (std::uint32_t n)
constexpr auto shared::heavyai_ntohll (std::uint64_t n)