Lines Matching defs:list
12 * notice, this list of conditions and the following disclaimer.
15 * notice, this list of conditions and the following disclaimer in the
167 // precharge to a cached command list and computes the precharge offset from the
170 void CommandAnalysis::getCommands(std::vector<MemCommand>& list, bool lastupdate, int64_t timestamp)
173 list.insert(list.begin(), next_window_cmd_list.begin(), next_window_cmd_list.end());
176 for (size_t i = 0; i < list.size(); ++i) {
177 MemCommand& cmd = list[i];
185 // Add the auto precharge to the list of cached_cmds
188 list.push_back(MemCommand(MemCommand::PRE, cmd.getBank(), preTime));
194 MemCommand nextWindowCmd = list[i];
196 list.erase(find(list.begin(), list.end(), cmd));
200 sort(list.begin(), list.end(), commandSorter);
202 if (lastupdate && list.empty() == false) {
203 // Add cycles at the end of the list
204 int64_t t = timeToCompletion(list.back().getType()) + list.back().getTimeInt64() - 1;
205 list.push_back(MemCommand(MemCommand::NOP, 0, t));
208 evaluateCommands(list);
212 // Used to analyse a given list of commands and identify command timings