Skip to content
Snippets Groups Projects

Resolve "Robust remove() API"

18 files
+ 64
66
Compare changes
  • Side-by-side
  • Inline
Files
18
@@ -47,7 +47,7 @@ class CaptureBase : public NodeBase, public std::enable_shared_from_this<Capture
StateBlockPtr _intr_ptr = nullptr);
virtual ~CaptureBase();
virtual void remove();
virtual void remove(bool viral_remove_empty_parent=false);
// Type
virtual bool isMotion() const { return false; }
@@ -65,7 +65,7 @@ class CaptureBase : public NodeBase, public std::enable_shared_from_this<Capture
public:
virtual void setProblem(ProblemPtr _problem) final;
FeatureBasePtrList& getFeatureList();
const FeatureBasePtrList& getFeatureList() const;
void getFactorList(FactorBasePtrList& _fac_list);
@@ -191,7 +191,7 @@ inline void CaptureBase::setFrame(const FrameBasePtr _frm_ptr)
frame_ptr_ = _frm_ptr;
}
inline FeatureBasePtrList& CaptureBase::getFeatureList()
inline const FeatureBasePtrList& CaptureBase::getFeatureList() const
{
return feature_list_;
}
Loading