OmniSciDB
c1a53651b2
|
#include <cxxabi.h>
#include <cassert>
#include <chrono>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <sstream>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "sqldefs.h"
#include <mutex>
Go to the source code of this file.
Namespaces | |
anonymous_namespace{toString.h} | |
Macros | |
#define | HAVE_TOSTRING |
#define | __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) |
#define | PRINT(...) |
Functions | |
template<typename T > | |
std::string | typeName (const T *v) |
template<typename T , typename... Args> | |
std::string | typeName (T(*v)(Args...args)) |
template<typename T > | |
struct get_has_toString< T, decltype(std::declval< T > ().get() -> | anonymous_namespace{toString.h}::toString () |
template<typename T > | |
std::string | toString (const T &v) |
template<typename T1 , typename T2 > | |
std::string | toString (const std::pair< T1, T2 > &v) |
template<typename T > | |
std::string | toString (const std::vector< T > &v) |
template<typename T1 , typename T2 > | |
std::string | toString (const std::unordered_map< T1, T2 > &v) |
template<typename T1 , typename T2 > | |
std::string | toString (const std::map< T1, T2 > &v) |
template<typename T > | |
std::string | toString (const std::list< T > &v) |
template<typename T > | |
std::string | toString (const std::unordered_set< T > &v) |
template<typename T > | |
std::string | toString (const std::set< T > &v) |
template<typename... Ts, size_t... Is> | |
std::string | toStringImpl (const std::tuple< Ts...> &t, const std::index_sequence< 0, Is...>) |
template<typename... T> | |
std::string | toStringImpl (const std::tuple<> &t, const std::index_sequence<>) |
template<typename... Ts> | |
std::string | toString (const std::tuple< Ts...> &t) |
Variables | |
static std::mutex | toString_PRINT_mutex |
template<class T > | |
constexpr bool | anonymous_namespace{toString.h}::has_toString_v = has_toString<T>::value |
template<class T > | |
struct get_has_toString< T, decltype(std::declval< T > ().get() -> void())> constexpr bool | anonymous_namespace{toString.h}::get_has_toString_v = get_has_toString<T>::value |
template<class T > | |
constexpr bool | anonymous_namespace{toString.h}::has_printTo_v = has_printTo<T>::value |
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) |
Definition at line 90 of file toString.h.
#define HAVE_TOSTRING |
Definition at line 39 of file toString.h.
#define PRINT | ( | ... | ) |
Definition at line 91 of file toString.h.
std::string toString | ( | const T & | v | ) |
Definition at line 180 of file toString.h.
References ANTI, INNER, INVALID, LEFT, SEMI, heavydb.dtypes::T, to_string(), toString(), typeName(), WINDOW_FUNCTION, and WINDOW_FUNCTION_FRAMING.
std::string toString | ( | const std::pair< T1, T2 > & | v | ) |
Definition at line 325 of file toString.h.
References toString().
std::string toString | ( | const std::vector< T > & | v | ) |
Definition at line 330 of file toString.h.
References run_benchmark_import::result, and toString().
std::string toString | ( | const std::unordered_map< T1, T2 > & | v | ) |
Definition at line 343 of file toString.h.
References run_benchmark_import::result, and toString().
std::string toString | ( | const std::map< T1, T2 > & | v | ) |
Definition at line 358 of file toString.h.
References run_benchmark_import::result, and toString().
std::string toString | ( | const std::list< T > & | v | ) |
Definition at line 373 of file toString.h.
References run_benchmark_import::result, and toString().
std::string toString | ( | const std::unordered_set< T > & | v | ) |
Definition at line 388 of file toString.h.
References run_benchmark_import::result, and toString().
std::string toString | ( | const std::set< T > & | v | ) |
Definition at line 403 of file toString.h.
References run_benchmark_import::result, and toString().
std::string toString | ( | const std::tuple< Ts...> & | t | ) |
Definition at line 429 of file toString.h.
References toStringImpl().
std::string toStringImpl | ( | const std::tuple< Ts...> & | t, |
const std::index_sequence< 0, Is...> | |||
) |
Definition at line 418 of file toString.h.
References toString().
Referenced by toString().
std::string toStringImpl | ( | const std::tuple<> & | t, |
const std::index_sequence<> | |||
) |
Definition at line 424 of file toString.h.
std::string typeName | ( | const T * | v | ) |
Definition at line 103 of file toString.h.
References setup::name, and heavydb.dtypes::T.
Referenced by ai.heavy.jdbc.HeavyAIConnection::createArrayOf(), com.mapd.calcite.parser.ExtTableFunctionTypeChecker::doesOperandTypeMatch(), com.mapd.calcite.parser.HeavyDBTypeSystem::getMaxPrecision(), com.mapd.parser.extension.ddl.heavydb.HeavyDBTypeNameSpec::HeavyDBTypeNameSpec(), ColumnList< T >::operator[](), CompilationResult::toString(), InputDescriptor::toString(), ExecutionResult::toString(), ColumnDescriptor::toString(), InputColDescriptor::toString(), RexAbstractInput::toString(), QueryCompilationDescriptor::toString(), Chunk_NS::Chunk::toString(), TableFunctionExecutionUnit::toString(), toString(), ResultSet::toString(), RexOperator::toString(), RexSubQuery::toString(), RexInput::toString(), RexCase::toString(), RexFunctionOperator::toString(), SortField::toString(), RexWindowFunctionOperator::toString(), RexRef::toString(), RexAgg::toString(), RelScan::toString(), RelProject::toString(), RelAggregate::toString(), RelJoin::toString(), RelTranslatedJoin::toString(), RelFilter::toString(), RelLeftDeepInnerJoin::toString(), RelCompound::toString(), RelSort::toString(), RelModify::toString(), RelTableFunction::toString(), RelLogicalValues::toString(), and RelLogicalUnion::toString().
std::string typeName | ( | T(*)(Args...args) | v | ) |
|
inlinestatic |
Definition at line 88 of file toString.h.