12345678910111213141516171819202122 |
- #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);
- };
- }
- }
|