Searched refs:item (Results 1 - 25 of 36) sorted by relevance

12

/gem5/src/doxygen/
H A Dstl.hh43 T item; member in class:std::vector
50 T item; member in class:std::deque
57 T item; member in class:std::list
/gem5/src/mem/slicc/
H A Dutil.py39 def __contains__(self, item):
40 return item in self.pairs
42 def __getitem__(self, item):
43 return self.pairs[item]
45 def __setitem__(self, item, value):
46 self.pairs[item] = value
48 def get(self, item, failobj=None):
49 return self.pairs.get(item, failobj)
/gem5/src/python/m5/util/
H A Dcode_formatter.py48 def __setitem__(self, item, val):
49 self.locals[item] = val
51 def __getitem__(self, item):
52 if item in self.locals:
53 return self.locals[item]
55 if item in self.kwargs:
56 return self.kwargs[item]
58 if item == '__file__':
61 if item == '__line__':
64 if self.formatter.locals and item i
[all...]
H A D__init__.py154 item = items.pop(0)
155 if isinstance(item, (list, tuple)):
156 items[0:0] = item
158 yield item
168 for i,item in enumerate(items):
169 if len(line) + len(item) > 76:
174 line += '%s, ' % item
176 line += item
H A Dfdthelper.py193 item = self.pop(index)
195 item = None
197 item = None
199 if isinstance(item, pyfdt.FdtNode) and \
201 item.merge(subnode)
202 subnode = item
H A Dsorteddict.py92 return 'SortedDict({%s})' % ', '.join('%r: %r' % item
93 for item in self.items())
94 def __setitem__(self, key, item):
95 dict.__setitem__(self, key, item)
H A Dsmartdict.py140 def __setitem__(self, key, item):
143 dict.__setitem__(self, key, str(item))
H A Dmultidict.py86 for item in self.next():
87 yield item
/gem5/util/cpt_upgraders/
H A Dprocess-fdmap-rename.py6 for item in items:
7 cp.set(section_to, item[0], item[1])
H A Darm-ccregs.py14 for (item,value) in cpt.items(sec):
15 items.append(item)
/gem5/ext/drampower/src/
H A DTraceParser.cc55 string item; local
59 while (getline(linestream, item, ',')) {
61 stringstream timestamp(item);
65 item_val = MemCommand::getTypeFromName(item);
68 stringstream bank(item);
/gem5/util/
H A Dcheckpoint_aggregator.py73 for item in items:
74 if item[0] == "paddr":
75 merged_config.set(newsec, item[0], int(item[1]) + (page_ptr << 12))
77 merged_config.set(newsec, item[0], item[1])
91 for item in config.items(sec):
92 merged_config.set(sec, item[0], item[1])
/gem5/src/python/m5/
H A Ddebug.py74 def __contains__(self, item):
76 return item in self._dict
78 def __getitem__(self, item):
80 return self._dict[item]
H A Dsimulate.py261 for item in cpuList:
262 if not isinstance(item, tuple) or len(item) != 2:
/gem5/ext/ply/example/yply/
H A Dyparse.py128 item = r[i]
129 if item[0] == '{': # A code block
131 prodcode = item
137 embedded.append((embed_name,item))
140 prod.append(item)
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_pvector.h125 void push_back( T item )
126 { m_vector.push_back( item ); }
137 void put( T item, int i ) argument
138 { ACCESS(i) = item; }
H A Dsc_report_handler.cpp203 for ( msg_def_items * item = messages; item; item = item->next )
205 for ( int i = 0; i < item->count; ++i )
206 if ( !strcmp(msg_type_, item->md[i].msg_type) )
207 return item->md + i;
647 for ( msg_def_items * item = messages; item; item
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_pytypes.cpp26 for (auto item : list)
27 py::print("list item {}: {}"_s.format(index++, item));
39 for (auto item : set)
40 py::print("key:", item);
52 for (auto item : dict)
53 py::print("key: {}, value={}"_s.format(item.first, item.second));
119 for (const auto &item : o.attr("begin_end")) {
120 l.append(item);
[all...]
/gem5/ext/testlib/
H A Dlog.py70 def __getitem__(self, item):
71 if item not in self.data:
73 (item, self.__class__.__name__))
74 return self.data[item]
H A Dresult.py40 for item in iterable:
41 assert item.uid not in index
42 index[item.uid] = item
H A Dhelper.py142 for item in kwds.items():
143 key += item
287 def __getitem__(self, item):
288 return self.__dict__[item]
H A Dhandlers.py397 item = self.queue.get(timeout=0.1)
398 self._handle(item)
409 item = self.queue.get(block=False)
410 self._handle(item)
/gem5/src/base/
H A Dstatistics.cc180 vector<string>::const_iterator item = vec.begin(); local
181 while (item != vec.end()) {
182 if (item->empty())
185 string::const_iterator c = item->begin();
192 while (++c != item->end()) {
197 ++item;
/gem5/src/mem/slicc/symbols/
H A DType.py374 for item in self.methods:
375 proto = self.methods[item].prototype
439 for item in self.methods:
440 code(self.methods[item].generateCode())
/gem5/ext/pybind11/tools/
H A Dmkdoc.py271 for item in args:
272 if item.startswith('-'):
273 parameters.append(item)
275 filenames.append(item)

Completed in 46 milliseconds

12