Go to the documentation of this file.00001 #include "osl/container/pieceMask.h"
00002 #include "osl/piece.h"
00003 #include <boost/static_assert.hpp>
00004 #include <iostream>
00005 #include <iomanip>
00006 #include <bitset>
00007
00008 BOOST_STATIC_ASSERT(sizeof(osl::PieceMask) == 8);
00009
00010 #ifndef MINIMAL
00011 std::ostream& osl::container::operator<<(std::ostream& os,const PieceMask& pieceMask){
00012 #if OSL_WORDSIZE == 64
00013 os << '(' << std::setbase(16) << std::setfill('0')
00014 << std::setw(12) << pieceMask.getMask(0).value()
00015 << std::setbase(10) << ')';
00016 #elif OSL_WORDSIZE == 32
00017 os << '(' << std::setbase(16) << std::setfill('0')
00018 << std::setw(4) << pieceMask.getMask(1).value()
00019 << std::setw(8) << pieceMask.getMask(0).value() << std::setbase(10) << ')';
00020 #endif
00021 os << std::bitset<64>(pieceMask.getMask(0).value());
00022 return os;
00023 }
00024 #endif
00025
00026
00027
00028