Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
291365b3
Commit
291365b3
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
PT
parent
5841c1eb
No related branches found
No related tags found
1 merge request
!443
Resolve "Work on const / non-const in wolf base classes"
Pipeline
#10020
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/core/processor/processor_tracker.h
+35
-8
35 additions, 8 deletions
include/core/processor/processor_tracker.h
with
35 additions
and
8 deletions
include/core/processor/processor_tracker.h
+
35
−
8
View file @
291365b3
...
@@ -138,9 +138,12 @@ class ProcessorTracker : public ProcessorBase
...
@@ -138,9 +138,12 @@ class ProcessorTracker : public ProcessorBase
StateStructure
getStateStructure
()
const
;
StateStructure
getStateStructure
()
const
;
virtual
CaptureBasePtr
getOrigin
()
const
;
virtual
CaptureBaseConstPtr
getOrigin
()
const
;
virtual
CaptureBasePtr
getLast
()
const
;
virtual
CaptureBasePtr
getOrigin
();
virtual
CaptureBasePtr
getIncoming
()
const
;
virtual
CaptureBaseConstPtr
getLast
()
const
;
virtual
CaptureBasePtr
getLast
();
virtual
CaptureBaseConstPtr
getIncoming
()
const
;
virtual
CaptureBasePtr
getIncoming
();
protected
:
protected
:
/** \brief process an incoming capture
/** \brief process an incoming capture
...
@@ -261,7 +264,8 @@ class ProcessorTracker : public ProcessorBase
...
@@ -261,7 +264,8 @@ class ProcessorTracker : public ProcessorBase
public
:
public
:
FeatureBasePtrList
&
getNewFeaturesListLast
();
FeatureBaseConstPtrList
getNewFeaturesListLast
()
const
;
FeatureBasePtrList
getNewFeaturesListLast
();
std
::
string
print
()
const
{
std
::
string
print
()
const
{
return
this
->
params_tracker_
->
print
();
return
this
->
params_tracker_
->
print
();
...
@@ -286,7 +290,15 @@ class ProcessorTracker : public ProcessorBase
...
@@ -286,7 +290,15 @@ class ProcessorTracker : public ProcessorBase
};
};
inline
FeatureBasePtrList
&
ProcessorTracker
::
getNewFeaturesListLast
()
inline
FeatureBaseConstPtrList
ProcessorTracker
::
getNewFeaturesListLast
()
const
{
FeatureBaseConstPtrList
list_const
;
for
(
auto
&&
obj_ptr
:
new_features_last_
)
list_const
.
push_back
(
obj_ptr
);
return
list_const
;
}
inline
FeatureBasePtrList
ProcessorTracker
::
getNewFeaturesListLast
()
{
{
return
new_features_last_
;
return
new_features_last_
;
}
}
...
@@ -311,17 +323,32 @@ inline void ProcessorTracker::addNewFeatureIncoming(FeatureBasePtr _feature_ptr)
...
@@ -311,17 +323,32 @@ inline void ProcessorTracker::addNewFeatureIncoming(FeatureBasePtr _feature_ptr)
new_features_incoming_
.
push_back
(
_feature_ptr
);
new_features_incoming_
.
push_back
(
_feature_ptr
);
}
}
inline
CaptureBasePtr
ProcessorTracker
::
getOrigin
()
const
inline
CaptureBaseConstPtr
ProcessorTracker
::
getOrigin
()
const
{
return
origin_ptr_
;
}
inline
CaptureBasePtr
ProcessorTracker
::
getOrigin
()
{
{
return
origin_ptr_
;
return
origin_ptr_
;
}
}
inline
CaptureBasePtr
ProcessorTracker
::
getLast
()
const
inline
CaptureBase
Const
Ptr
ProcessorTracker
::
getLast
()
const
{
{
return
last_ptr_
;
return
last_ptr_
;
}
}
inline
CaptureBasePtr
ProcessorTracker
::
getIncoming
()
const
inline
CaptureBasePtr
ProcessorTracker
::
getLast
()
{
return
last_ptr_
;
}
inline
CaptureBaseConstPtr
ProcessorTracker
::
getIncoming
()
const
{
return
incoming_ptr_
;
}
inline
CaptureBasePtr
ProcessorTracker
::
getIncoming
()
{
{
return
incoming_ptr_
;
return
incoming_ptr_
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment