LCOV - code coverage report
Current view: top level - src - Distribution.cc (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 8 22 36.4 %
Date: 2016-06-29 12:30:40 Functions: 4 5 80.0 %

          Line data    Source code
       1             : #include <dash/Types.h>
       2             : #include <dash/Distribution.h>
       3             : 
       4           4 : const dash::Distribution dash::BLOCKED =
       5             :   dash::Distribution(dash::internal::DIST_BLOCKED, -1);
       6             : 
       7           4 : const dash::Distribution dash::CYCLIC =
       8             :   dash::Distribution(dash::internal::DIST_CYCLIC, 1);
       9             : 
      10           4 : const dash::Distribution dash::NONE =
      11             :   dash::Distribution(dash::internal::DIST_NONE, -1);
      12             : 
      13         314 : dash::Distribution dash::TILE(int blockSize) {
      14         314 :   return Distribution(dash::internal::DIST_TILE, blockSize);
      15             : }
      16             : 
      17          68 : dash::Distribution dash::BLOCKCYCLIC(int blockSize) {
      18          68 :   return Distribution(dash::internal::DIST_BLOCKCYCLIC, blockSize);
      19             : }
      20             : 
      21             : namespace dash {
      22             : 
      23           0 : std::ostream & operator<<(
      24             :   std::ostream & os,
      25             :   const dash::Distribution & distribution)
      26             : {
      27           0 :   os << "Distribution(";
      28           0 :   if (distribution.type == dash::internal::DIST_TILE) {
      29           0 :     os << "TILE(" << distribution.blocksz << ")";
      30             :   }
      31           0 :   else if (distribution.type == dash::internal::DIST_BLOCKCYCLIC) {
      32           0 :     os << "BLOCKCYCLIC(" << distribution.blocksz << ")";
      33             :   }
      34           0 :   else if (distribution.type == dash::internal::DIST_CYCLIC) {
      35           0 :     os << "CYCLIC";
      36             :   }
      37           0 :   else if (distribution.type == dash::internal::DIST_BLOCKED) {
      38           0 :     os << "BLOCKED";
      39             :   }
      40           0 :   else if (distribution.type == dash::internal::DIST_NONE) {
      41           0 :     os << "NONE";
      42             :   }
      43           0 :   os << ")";
      44           0 :   return os;
      45             : }
      46             : 
      47          12 : }

Generated by: LCOV version 1.12