aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/public/udf/udf_static_registry.cpp
blob: b6efa4872cff26ce256230a025e5aad23e4c022c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "udf_static_registry.h"

#include <util/generic/singleton.h>
#include <util/generic/vector.h>

namespace NYql {
namespace NUdf {

TUdfModuleWrapperList* StaticUdfModuleWrapperList() {
    return Singleton<TUdfModuleWrapperList>();
}

const TUdfModuleWrapperList& GetStaticUdfModuleWrapperList() {
    return *StaticUdfModuleWrapperList();
}

void AddToStaticUdfRegistry(TUdfModuleWrapper&& wrapper) {
    StaticUdfModuleWrapperList()->emplace_back(wrapper);
};

}
}