Skip to content
Snippets Groups Projects
Commit 1b7a535f authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

added assignment operator for array accessors (with a std::vector)

parent 044bb360
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,12 @@ namespace ChimeraTK {
impl->accessChannel(0).swap(x);
}
/** Assignment operator */
ArrayAccessor<UserType>& operator=(const std::vector<UserType> &rightHandSide) {
impl->accessChannel(0) = rightHandSide;
return *this;
}
bool isInitialised() const {
return impl != nullptr;
}
......
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