Skip to content
Snippets Groups Projects
Commit cbc90c18 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Move methods to cpp

parent b6591fb0
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,13 @@ FrameBasePtr FeatureBase::getFramePtr() const
return capture_ptr_.lock()->getFramePtr();
}
ConstraintBasePtr FeatureBase::addConstrainedBy(ConstraintBasePtr _ctr_ptr)
{
constrained_by_list_.push_back(_ctr_ptr);
_ctr_ptr->setFeatureOtherPtr(shared_from_this());
return _ctr_ptr;
}
ConstraintBaseList& FeatureBase::getConstraintList()
{
return constraint_list_;
......
......@@ -100,13 +100,6 @@ class FeatureBase : public NodeBase, public std::enable_shared_from_this<Feature
namespace wolf{
inline ConstraintBasePtr FeatureBase::addConstrainedBy(ConstraintBasePtr _ctr_ptr)
{
constrained_by_list_.push_back(_ctr_ptr);
_ctr_ptr->setFeatureOtherPtr( shared_from_this() );
return _ctr_ptr;
}
inline unsigned int FeatureBase::getHits() const
{
return constrained_by_list_.size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment