/gem5/ext/pybind11/tests/ |
H A D | test_stl.cpp | 81 m.def("cast_map", []() { return std::map<std::string, std::string>{{"key", "value"}}; }); 83 return map.at("key") == "value" && map.at("key2") == "value2"; 133 struct Value { int value; }; member in struct:MoveOutContainer::Value 137 .def_readonly("value", &MoveOutContainer::Value::value); 144 int value; member in struct:NoAssign 146 explicit NoAssign(int value = 0) : value(value) { } 173 return x ? x->value [all...] |
H A D | test_virtual_functions.py | 13 def run(self, value): 14 print('ExtendedExampleVirt::run(%i), calling parent..' % value) 15 return super(ExtendedExampleVirt, self).run(value + 1) 38 Original implementation of ExampleVirt::run(state=10, value=20, str1=default1, str2=default2) 43 assert msg(excinfo.value) == 'Tried to call pure virtual function "ExampleVirt::pure_virtual"' 50 Original implementation of ExampleVirt::run(state=11, value=21, str1=override1, str2=default2) 64 Original implementation of ExampleVirt::run(state=17, value=51, str1=override1, str2=override2) 220 assert msg(excinfo.value) == 'Tried to call pure virtual function "Base::dispatch"' 238 assert o.A_value().value == "hi" 240 assert a.value [all...] |
H A D | test_numpy_array.py | 37 assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)' 40 assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)' 58 assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)' 61 assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)' 82 assert str(excinfo.value) == 'too many indices for an array: 3 (ndim = 2)' 102 assert str(excinfo.value) == 'index dimension mismatch: {} (ndim = 2)'.format(dim) 118 assert str(excinfo.value) == 'array is not writeable' 140 assert str(excinfo.value) == 'index 2 is out of bounds for axis 0 with size 2' 143 assert str(excinfo.value) == 'index 4 is out of bounds for axis 1 with size 3' 287 assert msg(excinfo.value) [all...] |
/gem5/src/systemc/core/ |
H A D | sc_main.cc | 79 if (time.value() == 0) { 83 if (MaxTick - now < time.value()) 85 ::sc_gem5::scheduler.start(now + time.value(), p == SC_RUN_TO_TIME);
|
/gem5/src/python/m5/ext/pyfdt/ |
H A D | pyfdt.py | 86 """Return RAW value representation""" 89 def __getitem__(self, value): 109 def __check_prop_strings(value): 115 end = len(value) 117 if not len(value): 124 value = value.decode('ascii') 130 if value[-1] != '\0': 135 while pos < end and value[pos] != '\0' \ 136 and value[po [all...] |
/gem5/ext/pybind11/include/pybind11/ |
H A D | functional.h | 21 using retval_type = conditional_t<std::is_same<Return, void>::value, void_type, Return>; 52 value = ((capture *) &rec->data)->f; 80 value = func_wrapper(func_handle(std::move(func)));
|
H A D | pybind11.h | 28 # pragma warning(disable: 4800) // warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning) 69 typename = detail::enable_if_t<detail::is_lambda<Func>::value>> 120 if (!std::is_trivially_destructible<Func>::value) 127 /* Type casters for the function arguments and return value */ 130 conditional_t<std::is_void<Return>::value, void_type, Return> 171 /* Generate a readable signature describing the function's arguments and return value types */ 184 std::is_convertible<Func, FunctionType>::value && 204 else if (a.value) 205 a.descr = strdup(a.value.attr("__repr__")().cast<std::string>().c_str()); 244 // Write default value i 544 handle value; local 944 mark_parents_nonsimple(PyTypeObject *value) argument 1523 value(char const* name_, object value, const char *doc = nullptr) argument 1586 value(char const* name, Type value, const char *doc = nullptr) argument 1727 make_iterator(Type &value, Extra&&... extra) argument 1734 make_key_iterator(Type &value, Extra&&... extra) argument [all...] |
/gem5/ext/googletest/googletest/scripts/ |
H A D | pump.py | 140 def __init__(self, start=None, end=None, value=None, token_type=None): 149 self.value = value 154 self.start, self.value, self.token_type) 159 return Token(self.start.Clone(), self.end.Clone(), self.value, 304 if token.value.endswith('\n'): 305 return Token(token.start, token.end, token.value[:-1], token.token_type) 471 python_exp = re.sub(r'([_A-Za-z]\w*)', r'self.GetValue("\1")', token.value) 496 elif not next.value.strip(): 549 return ParseExpNode(Token(head.start + 1, head.end, head.value[ [all...] |
/gem5/src/base/stats/ |
H A D | text.cc | 207 ValueToString(Result value, int precision) argument 211 if (!std::isnan(value)) { 214 else if (value == rint(value)) 219 val << value; local 229 Result value; member in struct:Stats::ScalarPrint 245 value = val; 255 if ((flags.isSet(nozero) && (!oneLine) && value == 0.0) || 256 (flags.isSet(nonan) && std::isnan(value))) 269 ValueToString(value, precisio [all...] |
/gem5/ext/ply/test/ |
H A D | yacc_badargs.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_badprec.py | 58 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_badprec2.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_badprec3.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_badrule.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_badtok.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_dup.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_error1.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_error2.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_literal.py | 63 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_misplaced.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_missing1.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_nodoc.py | 61 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_nop.py | 62 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_notfunc.py | 60 print("Syntax error at '%s'" % t.value)
|
H A D | yacc_notok.py | 61 print("Syntax error at '%s'" % t.value)
|