Searched refs:value (Results 201 - 225 of 497) sorted by relevance

1234567891011>>

/gem5/ext/pybind11/tests/
H A Dtest_stl.cpp81 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 Dtest_virtual_functions.py13 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 Dtest_numpy_array.py37 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 Dsc_main.cc79 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 Dpyfdt.py86 """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 Dfunctional.h21 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 Dpybind11.h28 # 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 Dpump.py140 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 Dtext.cc207 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 Dyacc_badargs.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_badprec.py58 print("Syntax error at '%s'" % t.value)
H A Dyacc_badprec2.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_badprec3.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_badrule.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_badtok.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_dup.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_error1.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_error2.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_literal.py63 print("Syntax error at '%s'" % t.value)
H A Dyacc_misplaced.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_missing1.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_nodoc.py61 print("Syntax error at '%s'" % t.value)
H A Dyacc_nop.py62 print("Syntax error at '%s'" % t.value)
H A Dyacc_notfunc.py60 print("Syntax error at '%s'" % t.value)
H A Dyacc_notok.py61 print("Syntax error at '%s'" % t.value)

Completed in 26 milliseconds

1234567891011>>