LCOV - code coverage report
Current view: top level - eq/server/equalizers - tileEqualizer.h (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 5 7 71.4 %
Date: 2014-06-18 Functions: 6 8 75.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2008-2013, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                    2011, Carsten Rohn <carsten.rohn@rtt.ag>
       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             : #ifndef EQS_TILEEQUALIZER_H
      20             : #define EQS_TILEEQUALIZER_H
      21             : 
      22             : #include "equalizer.h"
      23             : 
      24             : namespace eq
      25             : {
      26             : namespace server
      27             : {
      28             : 
      29             : std::ostream& operator << ( std::ostream& os, const TileEqualizer* );
      30             : 
      31             : class TileEqualizer : public Equalizer
      32             : {
      33             : public:
      34             :     EQSERVER_API TileEqualizer();
      35             :     TileEqualizer( const TileEqualizer& from );
      36           8 :     ~TileEqualizer() {}
      37             : 
      38             :     /** @sa CompoundListener::notifyUpdatePre */
      39             :     virtual void notifyUpdatePre( Compound* compound,
      40             :                                   const uint32_t frameNumber );
      41             : 
      42           2 :     virtual void toStream( std::ostream& os ) const { os << this; }
      43           2 :     void setName( const std::string& name ) { _name = name; }
      44             : 
      45           2 :     const std::string& getName() const { return _name; }
      46             : 
      47           0 :     virtual uint32_t getType() const { return fabric::TILE_EQUALIZER; }
      48             : 
      49             : protected:
      50          12 :     void notifyChildAdded( Compound*, Compound* ) override {}
      51           0 :     void notifyChildRemove( Compound*, Compound* ) override {}
      52             : 
      53             : private:
      54             :     std::string _getQueueName() const;
      55             :     void _destroyQueues( Compound* compound );
      56             :     void _createQueues( Compound* compound );
      57             : 
      58             :     bool _created;
      59             :     std::string _name;
      60             : };
      61             : 
      62             : } //server
      63             : } //eq
      64             : 
      65             : #endif // EQS_TILEEQUALIZER_H

Generated by: LCOV version 1.10