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
Merge requests
!443
Resolve "Work on const / non-const in wolf base classes"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Work on const / non-const in wolf base classes"
184-work-on-const-non-const-in-wolf-base-classes
into
devel
Overview
0
Commits
22
Pipelines
24
Changes
1
Merged
Joan Vallvé Navarro
requested to merge
184-work-on-const-non-const-in-wolf-base-classes
into
devel
3 years ago
Overview
0
Commits
22
Pipelines
24
Changes
1
Expand
Closes
#184 (closed)
Edited
3 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
4448ad0b
Prev
Next
Show latest version
1 file
+
11
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4448ad0b
macro for already declared object
· 4448ad0b
Joan Vallvé Navarro
authored
3 years ago
include/core/common/wolf.h
+
11
−
8
Options
@@ -197,12 +197,19 @@ struct MatrixSizeCheck
// 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) \
class ClassName; \
typedef std::shared_ptr<ClassName> ClassName##Ptr; \
typedef std::shared_ptr<const ClassName> ClassName##ConstPtr; \
typedef std::weak_ptr<ClassName> ClassName##WPtr; \
typedef std::weak_ptr<const ClassName> ClassName##ConstWPtr; \
WOLF_DECLARED_PTR_TYPEDEFS(ClassName); \
#define WOLF_STRUCT_PTR_TYPEDEFS(StructName) \
struct StructName; \
WOLF_DECLARED_PTR_TYPEDEFS(StructName); \
#define WOLF_LIST_TYPEDEFS(ClassName) \
class ClassName; \
@@ -223,10 +230,6 @@ struct MatrixSizeCheck
typedef ClassName##ConstWPtrList::const_iterator ClassName##ConstWPtrListConstIter; \
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
WOLF_PTR_TYPEDEFS
(
NodeBase
);
Loading