LCOV - code coverage report
Current view: top level - eq/fabric - eye.cpp (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 3 13 23.1 %
Date: 2014-06-18 Functions: 3 4 75.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2007-2012, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *               2010, Cedric Stalder <cedric.stalder@gmail.com>
       4             :  *
       5             :  * This library is free software; you can redistribute it and/or modify it under
       6             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       7             :  * by the Free Software Foundation.
       8             :  *  
       9             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      10             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      11             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      12             :  * details.
      13             :  * 
      14             :  * You should have received a copy of the GNU Lesser General Public License
      15             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      16             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      17             :  */
      18             : 
      19             : #include "eye.h"
      20             : 
      21             : #include <lunchbox/bitOperation.h>
      22             : #include <lunchbox/debug.h>   // for LBABORT
      23             : 
      24             : namespace eq
      25             : {
      26             : namespace fabric
      27             : {
      28           0 : std::ostream& operator << ( std::ostream& os, const Eye& eye )
      29             : {
      30           0 :     switch( eye )
      31             :     {
      32             :         case EYE_LEFT: 
      33           0 :             os << "left eye";
      34           0 :             break;
      35             :         case EYE_RIGHT: 
      36           0 :             os << "right eye";
      37           0 :             break;
      38             :         case EYE_CYCLOP: 
      39           0 :             os << "cyclop eye";
      40           0 :             break;
      41             :         case EYE_UNDEFINED: 
      42             :         default: 
      43           0 :             LBABORT( "Invalid eye value" );
      44             :     }
      45             :     
      46           0 :     return os;
      47             : }
      48             : 
      49             : }
      50             : }
      51             : 
      52             : namespace lunchbox
      53             : {
      54             : template<> EQFABRIC_API
      55        4496 : int32_t getIndexOfLastBit< eq::fabric::Eye >( eq::fabric::Eye eye )
      56             : {
      57        4496 :     return getIndexOfLastBit( uint32_t( eye ));
      58             : }
      59             : 
      60          45 : }

Generated by: LCOV version 1.10