Lines Matching refs:Tuple
76 // // Prints the fields of a tuple tersely to a string vector, one
77 // // element for each field. Tuple support must be enabled in
80 // const Tuple& value);
484 // Overload for ::std::tr1::tuple. Needed for printing function arguments,
487 // Helper function for printing a tuple. T must be instantiated with
488 // a tuple type.
494 // regardless of whether tr1::tuple is implemented using the
497 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
502 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
507 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
512 void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
517 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
522 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
529 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t,
536 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7>& t,
543 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8>& t,
550 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t,
558 const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& t,
705 // induction on the number of tuple fields. The idea is that
707 // fields in tuple t, and can be defined in terms of
713 // Prints the first N fields of a tuple.
714 template <typename Tuple>
715 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
718 UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type>
722 // Tersely prints the first N fields of a tuple to a string vector,
724 template <typename Tuple>
725 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) {
736 template <typename Tuple>
737 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
739 template <typename Tuple>
740 static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
749 template <typename Tuple>
750 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
751 UniversalPrinter<typename ::std::tr1::tuple_element<0, Tuple>::type>::
755 template <typename Tuple>
756 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) {
763 // Helper function for printing a tuple. T must be instantiated with
764 // a tuple type.
773 // Prints the fields of a tuple tersely to a string vector, one
776 template <typename Tuple>
777 Strings UniversalTersePrintTupleFieldsToStrings(const Tuple& value) {
779 TuplePrefixPrinter< ::std::tr1::tuple_size<Tuple>::value>::