Skip to content
Snippets Groups Projects
Commit b8bd8d64 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Implement =(&), =(&&) operators of CoreSegment

parent 9cef9c49
No related branches found
No related tags found
2 merge requests!185Clean up interfaces and unneeded code in memory core classes,!178Draft: Make RobotStateMemory ready
......@@ -16,6 +16,28 @@ namespace armarx::armem::wm
}
CoreSegment::CoreSegment(CoreSegment&& other) : CoreSegment::Base(other)
{
// Do not move _mutex.
}
CoreSegment& CoreSegment::operator=(const CoreSegment& other)
{
Base::operator=(other);
// Don't copy _mutex.
return *this;
}
CoreSegment& CoreSegment::operator=(CoreSegment&& other)
{
Base::operator=(other);
// Don't move _mutex.
return *this;
}
Commit CoreSegment::toCommit() const
{
Commit c;
......
......@@ -25,9 +25,9 @@ namespace armarx::armem::wm
using Base::CoreSegmentBase;
CoreSegment(const CoreSegment& other);
CoreSegment(CoreSegment&& other) = default;
CoreSegment& operator=(const CoreSegment& other) = default;
CoreSegment& operator=(CoreSegment&& other) = default;
CoreSegment(CoreSegment&& other);
CoreSegment& operator=(const CoreSegment& other);
CoreSegment& operator=(CoreSegment&& other);
/**
* @brief Convert the content of this segmnet into a commit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment