overloading access operator

This commit is contained in:
Erik Frojdh
2018-02-28 17:34:55 +01:00
parent 7364f674ed
commit 06cdf8ad92

View File

@ -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