Lines Matching refs:T

13 template <typename T>
74 template <typename T>
77 auto realIface = std::any_cast<std::shared_ptr<T>>(iface); in checkThresholds()
78 auto lo = (*realIface.*Thresholds<T>::getLo)(); in checkThresholds()
79 auto hi = (*realIface.*Thresholds<T>::getHi)(); in checkThresholds()
80 auto alarmLowState = (*realIface.*Thresholds<T>::getAlarmLow)(); in checkThresholds()
81 auto alarmHighState = (*realIface.*Thresholds<T>::getAlarmHigh)(); in checkThresholds()
82 (*realIface.*Thresholds<T>::alarmLo)(value <= lo); in checkThresholds()
83 (*realIface.*Thresholds<T>::alarmHi)(value >= hi); in checkThresholds()
88 (*realIface.*Thresholds<T>::assertLowSignal)(value); in checkThresholds()
92 (*realIface.*Thresholds<T>::deassertLowSignal)(value); in checkThresholds()
99 (*realIface.*Thresholds<T>::assertHighSignal)(value); in checkThresholds()
103 (*realIface.*Thresholds<T>::deassertHighSignal)(value); in checkThresholds()
120 template <typename T>
126 std::shared_ptr<T> iface; in addThreshold()
128 auto tLo = env::getEnv(Thresholds<T>::envLo, sensorType, sensorID); in addThreshold()
129 auto tHi = env::getEnv(Thresholds<T>::envHi, sensorType, sensorID); in addThreshold()
134 iface = std::make_shared<T>(bus, objPath.c_str(), in addThreshold()
135 T::action::emit_no_signals); in addThreshold()
139 (*iface.*Thresholds<T>::setLo)(lo); in addThreshold()
140 auto alarmLowState = (*iface.*Thresholds<T>::getAlarmLow)(); in addThreshold()
141 (*iface.*Thresholds<T>::alarmLo)(value <= lo); in addThreshold()
146 (*iface.*Thresholds<T>::assertLowSignal)(value); in addThreshold()
150 (*iface.*Thresholds<T>::deassertLowSignal)(value); in addThreshold()
157 (*iface.*Thresholds<T>::setHi)(hi); in addThreshold()
158 auto alarmHighState = (*iface.*Thresholds<T>::getAlarmHigh)(); in addThreshold()
159 (*iface.*Thresholds<T>::alarmHi)(value >= hi); in addThreshold()
164 (*iface.*Thresholds<T>::assertHighSignal)(value); in addThreshold()
168 (*iface.*Thresholds<T>::deassertHighSignal)(value); in addThreshold()
172 auto type = Thresholds<T>::type; in addThreshold()