Commit 501050e5 by Maarten L. Hekkelman

Add move constructor to mmcif::Structure

parent e1b240b2
...@@ -631,10 +631,14 @@ class Structure ...@@ -631,10 +631,14 @@ class Structure
Structure(cif::Datablock &db, size_t modelNr = 1, StructureOpenOptions options = {}); Structure(cif::Datablock &db, size_t modelNr = 1, StructureOpenOptions options = {});
Structure(Structure &&s) = default;
// Create a read-only clone of the current structure (for multithreaded calculations that move atoms) // Create a read-only clone of the current structure (for multithreaded calculations that move atoms)
Structure(const Structure &); Structure(const Structure &);
Structure &operator=(const Structure &) = delete; Structure &operator=(const Structure &) = delete;
Structure &operator=(Structure &&s) = default;
~Structure(); ~Structure();
const AtomView &atoms() const { return mAtoms; } const AtomView &atoms() const { return mAtoms; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment