mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 04:47:14 +02:00
overloading access operator
This commit is contained in:
@ -1240,7 +1240,8 @@ class multiSlsDetector : public slsDetectorUtils {
|
||||
|
||||
|
||||
slsDetector *getSlsDetector(int pos) {if (pos>=0 && pos< MAXDET) return detectors[pos]; return NULL;};
|
||||
|
||||
//additional way of accessing
|
||||
slsDetector *operator()(int pos) {if (pos>=0 && pos< MAXDET) return detectors[pos]; return NULL;};
|
||||
|
||||
|
||||
//receiver
|
||||
|
Reference in New Issue
Block a user