Lines Matching full:sensor
35 void addSensor(const std::shared_ptr<NVMeSensor>& sensor) in addSensor() argument
37 sensors.emplace_back(sensor); in addSensor()
43 for (auto& sensor : sensors) in getSensorAtPath() local
45 if (sensor->configurationPath == path) in getSensorAtPath()
47 return sensor; in getSensorAtPath()
54 // Post-condition: The sensor list does not contain the provided sensor
55 // Post-condition: pollCursor is a valid iterator for the sensor list
56 void removeSensor(const std::shared_ptr<NVMeSensor>& sensor) in removeSensor() argument
58 // Locate the sensor that we're removing in the sensor list in removeSensor()
59 auto found = std::find(sensors.begin(), sensors.end(), sensor); in removeSensor()
61 // If we failed to find the sensor in the list the post-condition is in removeSensor()
68 // We've found the sensor in the list in removeSensor()
70 // If we're not actively polling the sensor list, then remove the sensor in removeSensor()
77 // We're actively polling the sensor list in removeSensor()
79 // If we're not polling the specific sensor that has been removed, then in removeSensor()
80 // remove the sensor in removeSensor()
87 // We're polling the sensor that is being removed in removeSensor()
89 // Remove the sensor and update the poll cursor so the cursor remains in removeSensor()
103 virtual void processResponse(std::shared_ptr<NVMeSensor>& sensor, void* msg,