feat: operator table transfer

This commit is contained in:
parker
2025-07-14 16:00:33 +01:00
parent 34a1df859a
commit 4dfae16942
7 changed files with 28 additions and 6 deletions

View File

@@ -5,8 +5,12 @@
void enzo::op::OperatorTable::addOperator(nt::opConstructor ctorFunc)
{
std::cout << "OPERATOR TABLE ADDED\n";
// ctorFunc(5);
ctorStore_.push_back(ctorFunc);
}
enzo::nt::opConstructor enzo::op::OperatorTable::getOpConstructor(size_t pos)
{
return ctorStore_.at(pos);
}
std::vector<enzo::nt::opConstructor> enzo::op::OperatorTable::ctorStore_;

View File

@@ -2,6 +2,7 @@
#include <boost/config.hpp>
#include "Engine/Network/NetworkManager.h"
#include "Engine/Operator/GeometryOpDef.h"
namespace enzo::op
{
@@ -9,6 +10,7 @@ class BOOST_SYMBOL_EXPORT OperatorTable
{
public:
static void addOperator(nt::opConstructor ctorFunc);
static nt::opConstructor getOpConstructor(size_t pos);
private:
static std::vector<nt::opConstructor> ctorStore_;
};