feat: operator table transfer
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user