mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Add const accessor for Problem::Options used by Problem
Change-Id: I0fc48178c411887d4487a34599050d342f5344a2
This commit is contained in:
@@ -537,6 +537,9 @@ class CERES_EXPORT Problem {
|
||||
double* residuals,
|
||||
double** jacobians) const;
|
||||
|
||||
// Returns reference to the options with which the Problem was constructed.
|
||||
const Options & options() const;
|
||||
|
||||
// Returns pointer to Problem implementation
|
||||
internal::ProblemImpl* mutable_impl();
|
||||
|
||||
|
||||
@@ -212,6 +212,8 @@ void Problem::GetResidualBlocksForParameterBlock(
|
||||
impl_->GetResidualBlocksForParameterBlock(values, residual_blocks);
|
||||
}
|
||||
|
||||
const Problem::Options & Problem::options() const { return impl_->options(); }
|
||||
|
||||
internal::ProblemImpl* Problem::mutable_impl() { return impl_.get(); }
|
||||
|
||||
} // namespace ceres
|
||||
|
||||
@@ -166,6 +166,8 @@ class CERES_NO_EXPORT ProblemImpl {
|
||||
return residual_block_set_;
|
||||
}
|
||||
|
||||
const Problem::Options & options() const { return options_; }
|
||||
|
||||
ContextImpl* context() { return context_impl_; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user