Skip to content
Snippets Groups Projects
Commit 4cc899cb authored by Philip Mueller, HS's avatar Philip Mueller, HS
Browse files

Added a clone function to the sample list.

parent e1a57b15
No related branches found
No related tags found
No related merge requests found
...@@ -228,6 +228,20 @@ public: ...@@ -228,6 +228,20 @@ public:
const yggdrasil_sampleList_t&) = default; const yggdrasil_sampleList_t&) = default;
/**
* \brief This function performs a deep copy of *this.
*
* This fucntion allows to copy the container without the need of knowing
* which type is has. This is important/usefull only in Python.
*/
yggdrasil_sampleList_t
clone()
const
{
return yggdrasil_sampleList_t(*this);
}; //End: clone
/** /**
* \brief This function performs a deep copy of sArray. * \brief This function performs a deep copy of sArray.
* *
......
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