add serialization support to Evaluation

This commit is contained in:
Arne Morten Kvarving 2023-02-02 10:51:35 +01:00
parent 46d268fba0
commit 1be072adf2
15 changed files with 90 additions and 15 deletions

View File

@ -805,8 +805,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
{% if numDerivs < 0 %}\
FastSmallVector<ValueT, staticSize> data_;
{% elif numDerivs == 0 %}\

View File

@ -540,8 +540,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
FastSmallVector<ValueT, staticSize> data_;
};

View File

@ -534,8 +534,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, numDerivs + 1> data_;
};

View File

@ -517,8 +517,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 2> data_;
};

View File

@ -598,8 +598,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 11> data_;
};

View File

@ -607,8 +607,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 12> data_;
};

View File

@ -616,8 +616,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 13> data_;
};

View File

@ -526,8 +526,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 3> data_;
};

View File

@ -535,8 +535,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 4> data_;
};

View File

@ -544,8 +544,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 5> data_;
};

View File

@ -553,8 +553,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 6> data_;
};

View File

@ -562,8 +562,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 7> data_;
};

View File

@ -571,8 +571,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 8> data_;
};

View File

@ -580,8 +580,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 9> data_;
};

View File

@ -589,8 +589,13 @@ public:
data_[dstart_() + varIdx] = derVal;
}
private:
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(data_);
}
private:
std::array<ValueT, 10> data_;
};