Lines Matching refs:table
64 if (count > table.size() || count < step_multiplier) {
68 table.resize(count);
74 if (table.empty()) {
75 throw SaneException("Can't expand empty table");
78 table.resize(table.size() + count, table.back());
84 pixeltime_sum_ = std::accumulate(table.begin(), table.end(),
110 MotorSlopeTable table;
128 table.table.reserve(max_size);
130 while (table.table.size() < max_size - 1) {
131 unsigned current = slope.get_table_step_shifted(table.table.size(), step_type);
135 table.table.push_back(current);
139 // the table
140 table.table.push_back(final_speed);
142 // fill the table up to the specified size
143 while (table.table.size() < max_size - 1 &&
144 (table.table.size() % steps_alignment != 0 || table.table.size() < min_size))
146 table.table.push_back(table.table.back());
149 table.generate_pixeltime_sum();
151 return table;