inline sums() : sum_a2(calc_type()) , sum_x(calc_type()) , sum_y(calc_type()) { typedef calc_type ct; //std::cout << "-> calctype: " << typeid(ct).name() // << " size: " << sizeof(ct) // << " init: " << sum_a2 // << std::endl; }
/** calculate the sensor value - first step to get the type*/ void RegionSensor::calc(QString str) { sensor_name=str; int label = (int) ((*node_)["id"])->toInt(); calc_type(label); }