mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
size
This commit is contained in:
@ -205,7 +205,7 @@ class Detector {
|
||||
* Returns the total number of detectors in the multidetector structure
|
||||
* @returns total number of detectors in the multidetector structure
|
||||
*/
|
||||
int getTotalNumberOfDetectors() const;
|
||||
int size() const;
|
||||
|
||||
/**
|
||||
* Returns the number of detectors in the multidetector structure
|
||||
|
@ -381,7 +381,7 @@ class multiSlsDetector : public virtual slsDetectorDefs {
|
||||
* Returns the number of detectors in the multidetector structure
|
||||
* @returns number of detectors
|
||||
*/
|
||||
int getNumberOfDetectors() const;//
|
||||
int size() const;//
|
||||
|
||||
/**
|
||||
* Returns number of detectors in dimension d
|
||||
@ -872,10 +872,6 @@ class multiSlsDetector : public virtual slsDetectorDefs {
|
||||
*/
|
||||
int getDataBytes(int detPos = -1);
|
||||
|
||||
/**
|
||||
* Returns the number of detectors in the multi structure*/
|
||||
size_t size() const { return detectors.size(); }
|
||||
|
||||
/**
|
||||
* Set/get dacs value
|
||||
* @param val value (in V)
|
||||
|
@ -101,7 +101,7 @@ class multiSlsDetectorClient {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (parser.detector_id() >= detPtr->getNumberOfDetectors()) {
|
||||
if (parser.detector_id() >= detPtr->size()) {
|
||||
os << "position is out of bounds.\n";
|
||||
return;
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
* Returns the number of detectors in the multidetector structure
|
||||
* @returns number of detectors
|
||||
*/
|
||||
int getNumberOfDetectors() const;
|
||||
int size() const;
|
||||
|
||||
/**
|
||||
* Returns the maximum number of channels of all detectors
|
||||
|
Reference in New Issue
Block a user