Skip to content

Commit

Permalink
add node to expression
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 25, 2024
1 parent 4a0f5fa commit 35f9f80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/solver/libModelObject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ target_include_directories(antares-solver-libObjectModel
)
target_link_libraries(antares-solver-libObjectModel
PUBLIC
Antares::solver-expressions
)
install(DIRECTORY include/antares
DESTINATION "include"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include <string>

#include <antares/solver/expressions/nodes/Node.h>

namespace Antares::Solver::ObjectModel
{

Expand All @@ -40,8 +42,15 @@ class Expression
return value_;
}

const Nodes::Node* Node() const
{
return node_;
}

private:
std::string value_;

Nodes::Node* node_;
};

} // namespace Antares::Solver::ObjectModel

0 comments on commit 35f9f80

Please sign in to comment.