teqp
0.23.1
Loading...
Searching...
No Matches
interface
CPP
model_factory_CPA.cpp
Go to the documentation of this file.
1
#include "
teqp/cpp/teqpcpp.hpp
"
2
#include "
teqp/cpp/deriv_adapter.hpp
"
3
4
#include "model_flags.hpp"
// Contains (optionally) macros to disable various models
5
6
#ifndef DISABLE_CPA
7
#include "
teqp/models/CPA.hpp
"
8
#endif
9
10
namespace
teqp
{
11
namespace
cppinterface
{
12
using
teqp::cppinterface::adapter::make_owned
;
13
#ifndef DISABLE_CPA
14
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_CPA
(
const
nlohmann::json &spec){
15
return
make_owned
(
CPA::CPAfactory
(spec));
16
}
17
#else
18
std::unique_ptr<teqp::cppinterface::AbstractModel>
make_CPA
(
const
nlohmann::json &){
19
throw
teqp::NotImplementedError
(
"The CPA model has been disabled"
);
20
}
21
#endif
22
}
23
}
CPA.hpp
teqp::NotImplementedError
Definition
exceptions.hpp:45
deriv_adapter.hpp
teqp::CPA::CPAfactory
auto CPAfactory(const nlohmann::json &j)
Definition
CPA.hpp:301
teqp::cppinterface::adapter::make_owned
auto make_owned(const TemplatedModel &tmodel)
Definition
deriv_adapter.hpp:259
teqp::cppinterface
Definition
deriv_adapter.hpp:15
teqp::cppinterface::make_CPA
std::unique_ptr< teqp::cppinterface::AbstractModel > make_CPA(const nlohmann::json &spec)
Definition
model_factory_CPA.cpp:14
teqp
Definition
ancillary_builder.hpp:8
teqpcpp.hpp
Generated by
1.13.2