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
9a9188d8
Commit
9a9188d8
authored
7 years ago
by
Jeremie Deray
Browse files
Options
Downloads
Patches
Plain Diff
clean NodeBase func def
parent
c6999729
No related branches found
No related tags found
1 merge request
!141
Serialization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/node_base.h
+27
-13
27 additions, 13 deletions
src/node_base.h
with
27 additions
and
13 deletions
src/node_base.h
+
27
−
13
View file @
9a9188d8
...
@@ -67,19 +67,18 @@ class NodeBase
...
@@ -67,19 +67,18 @@ class NodeBase
public:
public:
NodeBase
(
const
std
::
string
&
_class
,
const
std
::
string
&
_type
=
"Undefined"
,
const
std
::
string
&
_name
=
""
);
NodeBase
(
const
std
::
string
&
_class
,
const
std
::
string
&
_type
=
"Undefined"
,
const
std
::
string
&
_name
=
""
);
virtual
~
NodeBase
();
virtual
~
NodeBase
()
=
default
;
unsigned
int
nodeId
()
const
;
unsigned
int
nodeId
()
const
;
std
::
string
getClass
()
const
;
std
::
string
getClass
()
const
;
std
::
string
getType
()
const
{
return
node_type_
;}
std
::
string
getType
()
const
;
std
::
string
getName
()
const
;
std
::
string
getName
()
const
;
void
setType
(
const
std
::
string
&
_
name
){
node_type_
=
_name
;}
;
void
setType
(
const
std
::
string
&
_
type
)
;
void
setName
(
const
std
::
string
&
_name
);
void
setName
(
const
std
::
string
&
_name
);
virtual
ProblemPtr
getProblem
(){
return
problem_ptr_
.
lock
();}
virtual
ProblemPtr
getProblem
()
const
;
void
setProblem
(
ProblemPtr
_prob_ptr
)
{
problem_ptr_
=
_prob_ptr
;}
void
setProblem
(
ProblemPtr
_prob_ptr
);
};
};
}
// namespace wolf
}
// namespace wolf
...
@@ -98,11 +97,6 @@ inline NodeBase::NodeBase(const std::string& _class, const std::string& _type, c
...
@@ -98,11 +97,6 @@ inline NodeBase::NodeBase(const std::string& _class, const std::string& _type, c
//
//
}
}
inline
NodeBase
::~
NodeBase
()
{
//
}
inline
unsigned
int
NodeBase
::
nodeId
()
const
inline
unsigned
int
NodeBase
::
nodeId
()
const
{
{
return
node_id_
;
return
node_id_
;
...
@@ -113,16 +107,36 @@ inline std::string NodeBase::getClass() const
...
@@ -113,16 +107,36 @@ inline std::string NodeBase::getClass() const
return
node_class_
;
return
node_class_
;
}
}
inline
std
::
string
NodeBase
::
getType
()
const
{
return
node_type_
;
}
inline
std
::
string
NodeBase
::
getName
()
const
inline
std
::
string
NodeBase
::
getName
()
const
{
{
return
node_name_
;
return
node_name_
;
}
}
inline
void
NodeBase
::
setType
(
const
std
::
string
&
_type
)
{
node_type_
=
_type
;
}
inline
void
NodeBase
::
setName
(
const
std
::
string
&
_name
)
inline
void
NodeBase
::
setName
(
const
std
::
string
&
_name
)
{
{
node_name_
=
_name
;
node_name_
=
_name
;
}
}
inline
ProblemPtr
NodeBase
::
getProblem
()
const
{
return
problem_ptr_
.
lock
();
}
inline
void
NodeBase
::
setProblem
(
ProblemPtr
_prob_ptr
)
{
problem_ptr_
=
_prob_ptr
;
}
}
// namespace wolf
}
// namespace wolf
#endif
/* NODE_BASE_H_ */
#endif
/* NODE_BASE_H_ */
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