mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
Globally implement Copy() function for deep copy of detector objects
This commit is contained in:
@ -222,6 +222,15 @@ template <class dataType> class analogDetector {
|
||||
*/
|
||||
virtual analogDetector *Clone() = 0;
|
||||
|
||||
/**
|
||||
Deep copy. Must be virtual!
|
||||
This is a new addition because of multithreaded storage cell data (where each sc has its own mutex).
|
||||
If the pure virtual function exists here, EVERY derived class has to overwrite it!
|
||||
That means a Copy() function must also be implemented in any derived class.
|
||||
\returns a deep copy of the original analog detector
|
||||
*/
|
||||
virtual analogDetector *Copy() = 0;
|
||||
|
||||
/**
|
||||
Gives an id to the structure. For debugging purposes in case of
|
||||
multithreading. \param i is to be set \returns current id
|
||||
|
Reference in New Issue
Block a user