aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Core/IResolvedFunction.h
blob: d472d2ce7345fbeefcee4ec8baf43ae89961f19e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#include <memory>
#include <vector>

namespace DB
{
class IDataType;

using DataTypePtr = std::shared_ptr<const IDataType>;
using DataTypes = std::vector<DataTypePtr>;

struct Array;

/* Generic class for all functions.
 * Represents interface for function signature.
 */
class IResolvedFunction
{
public:
    virtual const DataTypePtr & getResultType() const = 0;

    virtual const DataTypes & getArgumentTypes() const = 0;

    virtual const Array & getParameters() const = 0;

    virtual ~IResolvedFunction() = default;
};

using IResolvedFunctionPtr = std::shared_ptr<const IResolvedFunction>;

}