From 3175fcf63249673f33fd1638879adad4baab545b Mon Sep 17 00:00:00 2001 From: giuros01 Date: Wed, 21 Nov 2018 09:59:17 +0000 Subject: COMPMID-1720: CL: Implement Tile Change-Id: I2a18f0acea382960a8bc71a8f56928a5998f0dd6 --- utils/TypePrinter.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index d089a5b7ea..52bda2cfb3 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -882,6 +882,24 @@ inline ::std::ostream &operator<<(::std::ostream &os, const PaddingList &padding return os; } +/** Formatted output of the Multiples type. + * + * @param[out] os Output stream. + * @param[in] multiples Type to output. + * + * @return Modified output stream. + */ +inline ::std::ostream &operator<<(::std::ostream &os, const Multiples &multiples) +{ + os << "("; + for(size_t i = 0; i < multiples.size() - 1; i++) + { + os << multiples[i] << ", "; + } + os << multiples.back() << ")"; + return os; +} + /** Formatted output of the InterpolationPolicy type. * * @param[out] os Output stream. @@ -1234,6 +1252,19 @@ inline std::string to_string(const PaddingList &padding) return str.str(); } +/** Formatted output of the Multiples type. + * + * @param[in] multiples Type to output. + * + * @return Formatted string. + */ +inline std::string to_string(const Multiples &multiples) +{ + std::stringstream str; + str << multiples; + return str.str(); +} + /** Formatted output of the InterpolationPolicy type. * * @param[in] policy Type to output. -- cgit v1.2.1