/
uzer_007
/
reindexer
Обзор
Документация
Войти
/
uzer_007
/
reindexer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cpp_src/core/function/function_invoker.h
35 строк
1 KB
madschemas
Update to version v5.12.0
20 мар 2026, 08:17
20 мар 2026, 08:17
2eef2e6
Код
Авторство
О чём код?
#pragma once #include "precomputed_values.h" #include "updates/updaterecord.h" namespace reindexer { class NamespaceImpl; class PayloadValue; class NsContext; } // namespace reindexer namespace reindexer::functions { class [[nodiscard]] FunctionInvoker { public: FunctionInvoker(const PrecomputedValues& pv, NamespaceImpl& ns, const PayloadType& pt, const TagsMatcher& tm, UpdatesContainer& replUpdates) noexcept : ns_(ns), pt_(pt), tm_(tm), replUpdates_(replUpdates), precomputedValues_(pv) {} FunctionInvoker(const FunctionInvoker&) = delete; FunctionInvoker& operator=(const FunctionInvoker&) = delete; FunctionInvoker(FunctionInvoker&&) = delete; FunctionInvoker& operator=(FunctionInvoker&&) = delete; Variant Invoke(const FunctionVariant& function, const NsContext& ctx, const PayloadValue& pv) const; private: NamespaceImpl& ns_; const PayloadType& pt_; const TagsMatcher& tm_; UpdatesContainer& replUpdates_; const PrecomputedValues& precomputedValues_; }; } // namespace reindexer::functions