|
Couchbase Lite C++
Couchbase Lite C++ API
|
Registers/unregisters predictive models by name. More...
#include <cbl++/Prediction.hh>
Static Public Member Functions | |
| static void | registerModel (std::string_view name, PredictiveModel model) |
| Registers a predictive model with the given name. | |
| static void | unregisterModel (std::string_view name) |
| Unregisters the model; LiteCore fires unregistered which frees the model. | |
Registers/unregisters predictive models by name.
|
inlinestatic |
Registers a predictive model with the given name.
| name | The name used to refer to the model in a query's PREDICTION() function. |
| model | The model implementation. Any matching callable is accepted (lambda, functor, ...). |
|
inlinestatic |
Unregisters the model; LiteCore fires unregistered which frees the model.