7 #include "../../poly/libpoly/LPVariables.h"
12 LPAssignment::LPAssignment() {
13 lp_assignment_construct(&lp_assignment, LPVariables::getInstance().lp_var_db);
16 LPAssignment::~LPAssignment() {
17 lp_assignment_destruct(&lp_assignment);
21 if (last_assignment == ass) {
24 last_assignment = ass;
25 if (lp_assignment.values) {
26 for (
size_t i = 0; i < lp_assignment.size; ++ i) {
27 lp_assignment_set_value(&lp_assignment, i, 0);
30 for (
const auto& entry : ass) {
31 lp_assignment_set_value(&lp_assignment, LPVariables::getInstance().lp_variable(entry.first), entry.second.get_internal());
carl is the main namespace for the library.
std::map< Variable, T > Assignment
auto & get(const std::string &name)