Use const &
parent
5d0bc3191a
commit
1d0f872555
|
@ -39,7 +39,7 @@ HybridConditional::HybridConditional(const KeyVector &continuousFrontals,
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
HybridConditional::HybridConditional(
|
HybridConditional::HybridConditional(
|
||||||
boost::shared_ptr<GaussianConditional> continuousConditional)
|
const boost::shared_ptr<GaussianConditional> &continuousConditional)
|
||||||
: HybridConditional(continuousConditional->keys(), {},
|
: HybridConditional(continuousConditional->keys(), {},
|
||||||
continuousConditional->nrFrontals()) {
|
continuousConditional->nrFrontals()) {
|
||||||
inner_ = continuousConditional;
|
inner_ = continuousConditional;
|
||||||
|
@ -47,7 +47,7 @@ HybridConditional::HybridConditional(
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
HybridConditional::HybridConditional(
|
HybridConditional::HybridConditional(
|
||||||
boost::shared_ptr<DiscreteConditional> discreteConditional)
|
const boost::shared_ptr<DiscreteConditional> &discreteConditional)
|
||||||
: HybridConditional({}, discreteConditional->discreteKeys(),
|
: HybridConditional({}, discreteConditional->discreteKeys(),
|
||||||
discreteConditional->nrFrontals()) {
|
discreteConditional->nrFrontals()) {
|
||||||
inner_ = discreteConditional;
|
inner_ = discreteConditional;
|
||||||
|
@ -55,7 +55,7 @@ HybridConditional::HybridConditional(
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
HybridConditional::HybridConditional(
|
HybridConditional::HybridConditional(
|
||||||
boost::shared_ptr<GaussianMixture> gaussianMixture)
|
const boost::shared_ptr<GaussianMixture> &gaussianMixture)
|
||||||
: BaseFactor(KeyVector(gaussianMixture->keys().begin(),
|
: BaseFactor(KeyVector(gaussianMixture->keys().begin(),
|
||||||
gaussianMixture->keys().begin() +
|
gaussianMixture->keys().begin() +
|
||||||
gaussianMixture->nrContinuous()),
|
gaussianMixture->nrContinuous()),
|
||||||
|
|
|
@ -111,7 +111,7 @@ class GTSAM_EXPORT HybridConditional
|
||||||
* HybridConditional.
|
* HybridConditional.
|
||||||
*/
|
*/
|
||||||
HybridConditional(
|
HybridConditional(
|
||||||
boost::shared_ptr<GaussianConditional> continuousConditional);
|
const boost::shared_ptr<GaussianConditional>& continuousConditional);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Construct a new Hybrid Conditional object
|
* @brief Construct a new Hybrid Conditional object
|
||||||
|
@ -119,7 +119,8 @@ class GTSAM_EXPORT HybridConditional
|
||||||
* @param discreteConditional Conditional used to create the
|
* @param discreteConditional Conditional used to create the
|
||||||
* HybridConditional.
|
* HybridConditional.
|
||||||
*/
|
*/
|
||||||
HybridConditional(boost::shared_ptr<DiscreteConditional> discreteConditional);
|
HybridConditional(
|
||||||
|
const boost::shared_ptr<DiscreteConditional>& discreteConditional);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Construct a new Hybrid Conditional object
|
* @brief Construct a new Hybrid Conditional object
|
||||||
|
@ -127,7 +128,7 @@ class GTSAM_EXPORT HybridConditional
|
||||||
* @param gaussianMixture Gaussian Mixture Conditional used to create the
|
* @param gaussianMixture Gaussian Mixture Conditional used to create the
|
||||||
* HybridConditional.
|
* HybridConditional.
|
||||||
*/
|
*/
|
||||||
HybridConditional(boost::shared_ptr<GaussianMixture> gaussianMixture);
|
HybridConditional(const boost::shared_ptr<GaussianMixture>& gaussianMixture);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Testable
|
/// @name Testable
|
||||||
|
|
Loading…
Reference in New Issue