mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
#pragma once
|
|
#include <Common/Visitor.h>
|
|
#include <Core/TypeListNumber.h>
|
|
|
|
namespace DB::GatherUtils
|
|
{
|
|
|
|
template <typename T>
|
|
struct NumericValueSource;
|
|
|
|
struct GenericValueSource;
|
|
|
|
template <typename ArraySource>
|
|
struct NullableValueSource;
|
|
|
|
template <typename Base>
|
|
struct ConstSource;
|
|
|
|
using NumericValueSources = typename TypeListMap<NumericValueSource, TypeListNumbers>::Type;
|
|
using BasicValueSources = typename AppendToTypeList<GenericValueSource, NumericValueSources>::Type;
|
|
using NullableValueSources = typename TypeListMap<NullableValueSource, BasicValueSources>::Type;
|
|
using BasicAndNullableValueSources = typename TypeListConcat<BasicValueSources, NullableValueSources>::Type;
|
|
using ConstValueSources = typename TypeListMap<ConstSource, BasicAndNullableValueSources>::Type;
|
|
using TypeListValueSources = typename TypeListConcat<BasicAndNullableValueSources, ConstValueSources>::Type;
|
|
|
|
class ValueSourceVisitor : public ApplyTypeListForClass<Visitor, TypeListValueSources>::Type {};
|
|
|
|
template <typename Derived>
|
|
class ValueSourceVisitorImpl : public VisitorImpl<Derived, ValueSourceVisitor> {};
|
|
|
|
}
|