Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-cpplib
Commits
3a165d49
Commit
3a165d49
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: TODO and rename remove->Remove
parent
214292ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
F consolidation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/caosdb/entity.h
+3
-1
3 additions, 1 deletion
include/caosdb/entity.h
src/caosdb/entity.cpp
+2
-2
2 additions, 2 deletions
src/caosdb/entity.cpp
with
5 additions
and
3 deletions
include/caosdb/entity.h
+
3
−
1
View file @
3a165d49
...
...
@@ -178,7 +178,7 @@ protected:
/**
* Remove the element at the given index.
*/
inline
auto
r
emove
(
int
index
)
->
void
{
inline
auto
R
emove
(
int
index
)
->
void
{
this
->
wrapped
->
DeleteSubrange
(
index
,
1
);
if
(
cache
.
count
(
index
)
>
0
)
{
cache
.
erase
(
index
);
...
...
@@ -643,6 +643,8 @@ public:
};
[[
nodiscard
]]
auto
GetParents
()
const
->
const
Parents
&
;
// TODO(henrik) const prevents properties from being changed
// what about an interface that operates on the list directly?
[[
nodiscard
]]
auto
GetProperties
()
const
->
const
Properties
&
;
[[
nodiscard
]]
inline
auto
GetErrors
()
const
->
const
Messages
&
{
return
errors
;
...
...
This diff is collapsed.
Click to expand it.
src/caosdb/entity.cpp
+
2
−
2
View file @
3a165d49
...
...
@@ -158,7 +158,7 @@ auto Entity::AppendParent(const Parent &parent) -> void {
this
->
parents
.
Append
(
parent
);
}
auto
Entity
::
RemoveParent
(
int
index
)
->
void
{
this
->
parents
.
r
emove
(
index
);
}
auto
Entity
::
RemoveParent
(
int
index
)
->
void
{
this
->
parents
.
R
emove
(
index
);
}
[[
nodiscard
]]
auto
Entity
::
GetProperties
()
const
->
const
Properties
&
{
return
properties
;
...
...
@@ -169,7 +169,7 @@ auto Entity::AppendProperty(const Property &property) -> void {
}
auto
Entity
::
RemoveProperty
(
int
index
)
->
void
{
this
->
properties
.
r
emove
(
index
);
this
->
properties
.
R
emove
(
index
);
}
auto
Entity
::
CreateProtoEntity
()
->
ProtoEntity
*
{
...
...
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