#include <qle/math/computeenvironment.hpp>
Definition at line 120 of file computeenvironment.hpp.
◆ ComputeFrameworkRegistry()
◆ add()
void add |
( |
const std::string & |
name, |
|
|
std::function< ComputeFramework *(void)> |
creator, |
|
|
const bool |
allowOverwrite = false |
|
) |
| |
Definition at line 80 of file computeenvironment.cpp.
81 {
82 boost::unique_lock<boost::shared_mutex> lock(
mutex_);
83 QL_REQUIRE(allowOverwrite || std::find(
names_.begin(),
names_.end(), name) ==
names_.end(),
84 "FrameworkRegistry::add(): creator for '"
85 << name << "' already exists and allowOverwrite is false, can't add it.");
88}
std::vector< std::string > names_
boost::shared_mutex mutex_
std::vector< std::function< ComputeFramework *(void)> > creators_
◆ getAll()
const std::vector< std::function< ComputeFramework *(void)> > & getAll |
( |
| ) |
const |
◆ mutex_
boost::shared_mutex mutex_ |
|
mutableprivate |
◆ names_
std::vector<std::string> names_ |
|
private |
◆ creators_