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
4448ad0b
Commit
4448ad0b
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
macro for already declared object
parent
36295f0a
No related branches found
No related tags found
1 merge request
!443
Resolve "Work on const / non-const in wolf base classes"
Pipeline
#9703
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/core/common/wolf.h
+11
-8
11 additions, 8 deletions
include/core/common/wolf.h
with
11 additions
and
8 deletions
include/core/common/wolf.h
+
11
−
8
View file @
4448ad0b
...
@@ -197,12 +197,19 @@ struct MatrixSizeCheck
...
@@ -197,12 +197,19 @@ struct MatrixSizeCheck
// TYPEDEFS FOR POINTERS, LISTS AND ITERATORS IN THE WOLF TREE
// TYPEDEFS FOR POINTERS, LISTS AND ITERATORS IN THE WOLF TREE
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
#define WOLF_DECLARED_PTR_TYPEDEFS(Name) \
typedef std::shared_ptr<Name> Name##Ptr; \
typedef std::shared_ptr<const Name> Name##ConstPtr; \
typedef std::weak_ptr<Name> Name##WPtr; \
typedef std::weak_ptr<const Name> Name##ConstWPtr; \
#define WOLF_PTR_TYPEDEFS(ClassName) \
#define WOLF_PTR_TYPEDEFS(ClassName) \
class ClassName; \
class ClassName; \
typedef std::shared_ptr<ClassName> ClassName##Ptr; \
WOLF_DECLARED_PTR_TYPEDEFS(ClassName); \
typedef std::shared_ptr<const ClassName> ClassName##ConstPtr; \
typedef std::weak_ptr<ClassName> ClassName##WPtr; \
#define WOLF_STRUCT_PTR_TYPEDEFS(StructName) \
typedef std::weak_ptr<const ClassName> ClassName##ConstWPtr; \
struct StructName; \
WOLF_DECLARED_PTR_TYPEDEFS(StructName); \
#define WOLF_LIST_TYPEDEFS(ClassName) \
#define WOLF_LIST_TYPEDEFS(ClassName) \
class ClassName; \
class ClassName; \
...
@@ -223,10 +230,6 @@ struct MatrixSizeCheck
...
@@ -223,10 +230,6 @@ struct MatrixSizeCheck
typedef ClassName##ConstWPtrList::const_iterator ClassName##ConstWPtrListConstIter; \
typedef ClassName##ConstWPtrList::const_iterator ClassName##ConstWPtrListConstIter; \
typedef ClassName##ConstWPtrList::reverse_iterator ClassName##ConstWPtrListRevIter; \
typedef ClassName##ConstWPtrList::reverse_iterator ClassName##ConstWPtrListRevIter; \
#define WOLF_STRUCT_PTR_TYPEDEFS(StructName) \
struct StructName; \
typedef std::shared_ptr<StructName> StructName##Ptr; \
typedef std::shared_ptr<const StructName> StructName##ConstPtr; \
// NodeBase
// NodeBase
WOLF_PTR_TYPEDEFS
(
NodeBase
);
WOLF_PTR_TYPEDEFS
(
NodeBase
);
...
...
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