OptimizationFlags::optimize_all);
/**
- * Copy constructor
+ * Copy constructor.
*
- * The @p copy_initialized flag, which is set to <code>true</code> by default,
- * determines whether or not all of the optimized data is copied over from
- * the @p other optimizer instance. Only with the flag set to <code>false</code>
- * is it possible to re-optimize the data stored in this class with a
- * different optimization scheme.
- */
- BatchOptimizer(const BatchOptimizer &other/*,
- const bool copy_initialized = true*/);
+ * @note The optimized data and results from previous substitutions
+ * executed by the @p other optimizer instance are not copied over.
+ * It is therefore necessary to re-optimize the data stored in
+ * this class, and it is possible to do so with a different optimization
+ * scheme.
+ */
+ BatchOptimizer(const BatchOptimizer &other);
/**
* Move constructor.
, dependent_variables_output(0)
, map_dep_expr_vec_entry(other.map_dep_expr_vec_entry)
, ready_for_value_extraction(false)
+ , has_been_serialized(false)
{}
template <typename ReturnType>
SD::types::symbol_vector
- BatchOptimizer<ReturnType>::get_independent_symbols(void) const
+ BatchOptimizer<ReturnType>::get_independent_symbols() const
{
return Utilities::extract_symbols(independent_variables_symbols);
}
template <typename ReturnType>
std::size_t
- BatchOptimizer<ReturnType>::n_independent_variables(void) const
+ BatchOptimizer<ReturnType>::n_independent_variables() const
{
return independent_variables_symbols.size();
}
template <typename ReturnType>
const SD::types::symbol_vector &
- BatchOptimizer<ReturnType>::get_dependent_functions(void) const
+ BatchOptimizer<ReturnType>::get_dependent_functions() const
{
return dependent_variables_functions;
}
template <typename ReturnType>
std::size_t
- BatchOptimizer<ReturnType>::n_dependent_variables(void) const
+ BatchOptimizer<ReturnType>::n_dependent_variables() const
{
if (has_been_serialized == false)
{