udf_static_registry.cpp 475 B

12345678910111213141516171819202122
  1. #include "udf_static_registry.h"
  2. #include <util/generic/singleton.h>
  3. #include <util/generic/vector.h>
  4. namespace NYql {
  5. namespace NUdf {
  6. TUdfModuleWrapperList* StaticUdfModuleWrapperList() {
  7. return Singleton<TUdfModuleWrapperList>();
  8. }
  9. const TUdfModuleWrapperList& GetStaticUdfModuleWrapperList() {
  10. return *StaticUdfModuleWrapperList();
  11. }
  12. void AddToStaticUdfRegistry(TUdfModuleWrapper&& wrapper) {
  13. StaticUdfModuleWrapperList()->emplace_back(wrapper);
  14. };
  15. }
  16. }