LCOV - code coverage report
Current view: top level - eq/server/equalizers - tileEqualizer.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 5 7 71.4 %
Date: 2017-12-16 05:07:20 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             : std::ostream& operator<<(std::ostream& os, const TileEqualizer*);
      29             : 
      30             : class TileEqualizer : public Equalizer
      31             : {
      32             : public:
      33             :     EQSERVER_API TileEqualizer();
      34             :     TileEqualizer(const TileEqualizer& from);
      35          16 :     ~TileEqualizer() {}
      36             :     /** @sa CompoundListener::notifyUpdatePre */
      37             :     void notifyUpdatePre(Compound* compound, const uint32_t frameNumber) final;
      38             : 
      39           4 :     void toStream(std::ostream& os) const final { os << this; }
      40           4 :     void setName(const std::string& name) { _name = name; }
      41           4 :     const std::string& getName() const { return _name; }
      42           0 :     uint32_t getType() const final { return fabric::TILE_EQUALIZER; }
      43             : protected:
      44          24 :     void notifyChildAdded(Compound*, Compound*) override {}
      45           0 :     void notifyChildRemove(Compound*, Compound*) override {}
      46             : private:
      47             :     std::string _getQueueName() const;
      48             :     void _destroyQueues(Compound* compound);
      49             :     void _createQueues(Compound* compound);
      50             : 
      51             :     bool _created;
      52             :     std::string _name;
      53             : };
      54             : 
      55             : } // server
      56             : } // eq
      57             : 
      58             : #endif // EQS_TILEEQUALIZER_H

Generated by: LCOV version 1.11