Searched refs:tuple (Results 1 - 25 of 72) sorted by relevance

123

/gem5/ext/googletest/googletest/test/
H A Dgtest-tuple_test.cc32 #include "gtest/internal/gtest-tuple.h"
40 using ::std::tr1::tuple;
45 // Tests that tuple_element<K, tuple<T0, T1, ..., TN> >::type returns TK.
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>();
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>();
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>();
52 // Tests that tuple_size<T>::value gives the number of fields in tuple
55 EXPECT_EQ(0, +tuple_size<tuple<> >::value);
56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value);
57 EXPECT_EQ(1, +tuple_size<tuple<cha
[all...]
H A Dgtest-printers_test.cc1001 ::std::tr1::tuple<> t0;
1004 ::std::tr1::tuple<int> t1(5);
1007 ::std::tr1::tuple<char, bool> t2('a', true);
1010 ::std::tr1::tuple<bool, int, int> t3(false, 2, 3);
1013 ::std::tr1::tuple<bool, int, int, int> t4(false, 2, 3, 4);
1016 ::std::tr1::tuple<bool, int, int, int, bool> t5(false, 2, 3, 4, true);
1019 ::std::tr1::tuple<bool, int, int, int, bool, int> t6(false, 2, 3, 4, true, 6);
1022 ::std::tr1::tuple<bool, int, int, int, bool, int, int> t7(
1026 ::std::tr1::tuple<bool, int, int, int, bool, int, int, bool> t8(
1030 ::std::tr1::tuple<boo
[all...]
H A Dgtest-param-test_test.cc69 using ::testing::tuple;
97 ::std::string PrintValue(const tuple<T1, T2>& value) { argument
104 ::std::string PrintValue(const tuple<T1, T2, T3>& value) { argument
114 const tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& value) {
466 const ParamGenerator<tuple<const char*, int> > gen =
469 tuple<const char*, int> expected_values[] = {
477 const ParamGenerator<tuple<int, int, int> > gen = Combine(Values(0, 1),
480 tuple<int, int, int> expected_values[] = {
492 const ParamGenerator<tuple<int, int> > gen = Combine(Values(42),
495 tuple<in
113 PrintValue( const tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& value) argument
[all...]
/gem5/ext/googletest/googlemock/test/
H A Dgmock-generated-internal-utils_test.cc42 using ::testing::tuple;
52 CompileAssertTypesEqual<tuple<>, MatcherTuple<tuple<> >::type>();
56 CompileAssertTypesEqual<tuple<Matcher<int> >,
57 MatcherTuple<tuple<int> >::type>();
61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >,
62 MatcherTuple<tuple<int, char> >::type>();
66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>,
68 MatcherTuple<tuple<int, char, bool, double, char*>
77 CompileAssertTypesEqual<tuple<>,
[all...]
H A Dgmock-internal-utils_test.cc292 tuple<> matchers;
293 tuple<> values;
299 tuple<Matcher<int> > matchers(Eq(1));
300 tuple<int> values1(1),
308 tuple<Matcher<int>, Matcher<char> > matchers(Eq(1), Eq('a'));
309 tuple<int, char> values1(1, 'a'),
321 tuple<Matcher<int>, Matcher<char>, Matcher<bool>, Matcher<long>, // NOLINT
324 tuple<int, char, bool, long, string> // NOLINT
671 StlContainerView<tuple<const int*, size_t> >::type>();
673 StlContainerView<tuple<linked_pt
[all...]
H A Dgmock-generated-matchers_test.cc58 using testing::tuple;
111 const tuple<int, bool> t(5, true);
112 EXPECT_THAT(t, Args<>(Eq(tuple<>())));
113 EXPECT_THAT(t, Not(Args<>(Ne(tuple<>()))));
117 const tuple<int, bool> t(5, true);
124 const tuple<short, int, long> t(4, 5, 6L); // NOLINT
132 const tuple<short, int, long> t(4, 5, 6L); // NOLINT
138 const tuple<short, int, long> t(4, 5, 6L); // NOLINT
163 const tuple<short, int, long, int> t(4, 5, 6L, 6); // NOLINT
169 typedef tuple<cha
[all...]
/gem5/ext/testlib/
H A Dsuite.py59 def __init__(self, name=None, fixtures=tuple(), tests=tuple(),
60 tags=tuple(), **kwargs):
H A Dtest.py69 def __init__(self, name=None, fixtures=tuple(), **kwargs):
90 def testfunction(function=None, name=None, fixtures=tuple()):
H A Dhelper.py69 stdout_redirect = kwargs.get('stdout', tuple())
70 stderr_redirect = kwargs.get('stderr', tuple())
81 def log_output(log_callback, pipe, redirects=tuple()):
128 tuple=tuple, type=type, len=len):
145 key += tuple(type(v) for v in args)
147 key += tuple(type(v) for v in kwds.values())
408 def diff_out_file(ref_file, out_file, logger, ignore_regexes=tuple()):
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-tuple.h2 // pump.py gtest-tuple.h.pump
36 // Implements a subset of TR1 tuple needed by Google Test and Google Mock.
44 // tuple template as a friend (it complains that tuple is redefined). This
52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
57 // with our own definitions. Therefore using our own tuple does not work on
60 # error "gtest's tuple doesn't compile on Visual Studio 2010 or later. \
64 // GTEST_n_TUPLE_(T) is the type of an n-tuple.
65 #define GTEST_0_TUPLE_(T) tuple<>
66 #define GTEST_1_TUPLE_(T) tuple<
205 class tuple<> { class in namespace:std::tr1
207 tuple() {} function in class:std::tr1::tuple
208 tuple(const tuple& /* t */) {} function in class:std::tr1::tuple
217 tuple() : f0_() {} function
221 tuple(const tuple& t) : f0_(t.f0_) {} function
249 tuple() : f0_(), f1_() {} function
254 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_) {} function
259 tuple(const ::std::pair<U0, U1>& p) : f0_(p.first), f1_(p.second) {} function
292 tuple() : f0_(), f1_(), f2_() {} function
297 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_) {} function
329 tuple() : f0_(), f1_(), f2_(), f3_() {} function
335 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_) {} function
370 tuple() : f0_(), f1_(), f2_(), f3_(), f4_() {} function
376 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function
414 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_() {} function
421 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function
461 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_() {} function
468 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function
510 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_() {} function
518 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function
562 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_() {} function
570 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function
612 class tuple { class in namespace:std::tr1
616 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_(), function in class:std::tr1::tuple
625 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function in class:std::tr1::tuple
[all...]
/gem5/ext/googletest/googlemock/include/gmock/internal/
H A Dgmock-generated-internal-utils.h66 // MatcherTuple<T>::type is a tuple type where each field is a Matcher
67 // for the corresponding field in tuple type T.
72 struct MatcherTuple< ::testing::tuple<> > {
73 typedef ::testing::tuple< > type;
77 struct MatcherTuple< ::testing::tuple<A1> > {
78 typedef ::testing::tuple<Matcher<A1> > type;
82 struct MatcherTuple< ::testing::tuple<A1, A2> > {
83 typedef ::testing::tuple<Matcher<A1>, Matcher<A2> > type;
87 struct MatcherTuple< ::testing::tuple<A1, A2, A3> > {
88 typedef ::testing::tuple<Matche
[all...]
/gem5/util/style/
H A Dregion.py49 class Region(tuple):
57 args = tuple(arg)
63 return tuple.__new__(cls, args)
80 if isinstance(other, tuple):
88 if isinstance(other, tuple):
99 if isinstance(other, tuple):
108 if isinstance(other, tuple):
118 if isinstance(other, tuple):
127 if isinstance(other, tuple):
137 if isinstance(other, tuple)
[all...]
/gem5/src/mem/slicc/ast/
H A DStatementListAST.py33 if not isinstance(statements, (list, tuple)):
H A DDeclListAST.py34 if not isinstance(decls, (list, tuple)):
/gem5/ext/ply/example/yply/
H A Dyparse.py54 preclist.append(('left',) + tuple(p[3]))
56 preclist.append(('right',) + tuple(p[3]))
58 preclist.append(('nonassoc',)+ tuple(p[3]))
/gem5/ext/pybind11/tests/
H A Dtest_pickling.cpp44 /* Return a tuple that fully encodes the state of the object */
47 .def("__setstate__", [](Pickleable &p, py::tuple t) {
64 [](py::tuple t) {
98 .def("__setstate__", [](py::object self, py::tuple t) {
118 [](const py::tuple &t) {
H A Dtest_kwargs_and_defaults.cpp37 m.def("args_function", [](py::args args) -> py::tuple {
71 py::tuple t(a.size());
73 // Use raw Python API here to avoid an extra, intermediate incref on the tuple item:
79 py::tuple t(a.size() + 1);
82 // Use raw Python API here to avoid an extra, intermediate incref on the tuple item:
H A Dtest_copy_move.cpp134 m.def("move_tuple", [](std::tuple<MoveOnlyInt, MoveOrCopyInt, MoveOnlyInt> t) {
137 m.def("copy_tuple", [](std::tuple<CopyOnlyInt, CopyOnlyInt> t) {
140 m.def("move_copy_nested", [](std::pair<MoveOnlyInt, std::pair<std::tuple<MoveOrCopyInt, CopyOnlyInt, std::tuple<MoveOnlyInt>>, MoveOrCopyInt>> x) {
171 m.def("move_optional_tuple", [](std::optional<std::tuple<MoveOrCopyInt, MoveOnlyInt, CopyOnlyInt>> x) {
H A Dtest_pytypes.cpp154 m.def("tuple_accessor", [](py::tuple existing_t) {
160 auto new_t = py::tuple(3);
166 return py::tuple();
193 "tuple"_a=py::tuple(),
206 "tuple"_a=py::tuple(d["tuple"]),
221 "tuple"_a=d["tuple"]
[all...]
/gem5/ext/googletest/googletest/include/gtest/
H A Dgtest-printers.h76 // // Prints the fields of a tuple tersely to a string vector, one
107 # include <tuple>
585 // Helper function for printing a tuple. T must be instantiated with
586 // a tuple type.
592 // Overload for ::std::tr1::tuple. Needed for printing function arguments,
597 // regardless of whether tr1::tuple is implemented using the
600 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
605 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
610 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
615 void PrintTo(const ::std::tr1::tuple<T
882 get( const Tuple& tuple) argument
901 get( const Tuple& tuple) argument
[all...]
/gem5/src/python/m5/util/
H A D__init__.py114 if not isinstance(objOrSeq, (list, tuple)):
125 if isinstance(v, (list,tuple)):
155 if isinstance(item, (list, tuple)):
H A Dpybind.py84 if isinstance(arg, tuple):
/gem5/tests/gem5/
H A Dsuite.py44 gem5_args=tuple(),
136 _gem5_args = tuple()
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-generated-matchers.h55 // tuple of type Tuple. It has two members:
57 // type: a tuple type whose i-th field is the ki-th field of Tuple.
58 // GetSelectedFields(t): returns fields k0, ..., and kn of t as a tuple.
60 // For example, in class TupleFields<tuple<bool, char, int>, 2, 0>, we have:
62 // type is tuple<int, bool>, and
75 typedef ::testing::tuple<GMOCK_FIELD_TYPE_(Tuple, k0),
92 typedef ::testing::tuple<> type;
101 typedef ::testing::tuple<GMOCK_FIELD_TYPE_(Tuple, k0)> type;
110 typedef ::testing::tuple<GMOCK_FIELD_TYPE_(Tuple, k0),
120 typedef ::testing::tuple<GMOCK_FIELD_TYPE
[all...]
/gem5/util/maint/
H A Dlist_changes.py134 feature_revs = tuple(list_revs(upstream, feature, paths=paths))
135 upstream_revs = tuple(list_revs(feature, upstream, paths=paths))

Completed in 45 milliseconds

123