LCOV - code coverage report
Current view: top level - include/xo/unit - natural_unit_iostream.hpp (source / functions) Hit Total Coverage
Test: out3.info Lines: 8 8 100.0 %
Date: 1980-01-01 00:00:00 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /** @file natural_unit_iostream.hpp
       2             :  *
       3             :  *  Author: Roland Conybeare
       4             :  **/
       5             : 
       6             : #pragma once
       7             : 
       8             : #include "natural_unit.hpp"
       9             : #include <iostream>
      10             : 
      11             : namespace xo {
      12             :     namespace qty {
      13             :         template <typename Int>
      14             :         inline std::ostream &
      15          21 :         operator<<(std::ostream & os, const natural_unit<Int> & x) {
      16          21 :             os << "<natural-unit [";
      17          46 :             for (std::size_t i=0; i<x.n_bpu(); ++i) {
      18          25 :                 if (i > 0)
      19           8 :                     os << ", ";
      20          25 :                 os << x[i];
      21             :             }
      22          21 :             os << "]>";
      23          21 :             return os;
      24             :         }
      25             :     } /*namespace qty*/
      26             : } /*namespace xo*/
      27             : 
      28             : /** end natural_unit_iostream.hpp **/

Generated by: LCOV version 1.0