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,
764 // induction on the number of tuple fields. The idea is that
766 // fields in tuple t, and can be defined in terms of
772 // Prints the first N fields of a tuple.
773 template <typename Tuple>
774 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
777 UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type>
781 // Tersely prints the first N fields of a tuple to a string vector,
783 template <typename Tuple>
784 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) {
795 template <typename Tuple>
796 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
798 template <typename Tuple>
799 static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
808 template <typename Tuple>
809 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
810 UniversalPrinter<typename ::std::tr1::tuple_element<0, Tuple>::type>::
814 template <typename Tuple>
815 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) {
822 // Helper function for printing a tuple. T must be instantiated with
823 // a tuple type.
832 // Prints the fields of a tuple tersely to a string vector, one
835 template <typename Tuple>
836 Strings UniversalTersePrintTupleFieldsToStrings(const Tuple& value) {
838 TuplePrefixPrinter< ::std::tr1::tuple_size<Tuple>::value>::