|
Clingo
|
Support for external functions solving customizations. More...
Classes | |
| class | Clingo::Script |
| Interface for custom scripts. More... | |
Functions | |
| template<Detail::UserData< Script, false > T> | |
| auto | Clingo::register_script (Library const &lib, T &&script) -> decltype(auto) |
| Register the given script with the library. | |
Support for external functions solving customizations.
This module provides an interface to implement custom scripts that can be used to provide external functions callable during grounding and to customize the main application flow.
| auto Clingo::register_script | ( | Library const & | lib, |
| T && | script | ||
| ) | -> decltype(auto) |
Register the given script with the library.
The script can be passed by value, std::ref, or std::unique_ptr.
| lib | the library to register the script with |
| script | the script to register |