LCOV - code coverage report
Current view: top level - eq/server - compoundUpdateInputVisitor.h (source / functions) Hit Total Coverage
Test: Equalizer Lines: 1 1 100.0 %
Date: 2017-12-16 05:07:20 Functions: 1 2 50.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2007-2011, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                    2011, Daniel Nachbaur <danielnachbaur@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             : #ifndef EQSERVER_COMPOUNDUPDATEINPUTVISITOR_H
      20             : #define EQSERVER_COMPOUNDUPDATEINPUTVISITOR_H
      21             : 
      22             : #include "compound.h"        // nested type
      23             : #include "compoundVisitor.h" // base class
      24             : 
      25             : namespace eq
      26             : {
      27             : namespace server
      28             : {
      29             : /** The compound visitor updating the inherit input of a compound tree. */
      30             : class CompoundUpdateInputVisitor : public CompoundVisitor
      31             : {
      32             : public:
      33             :     CompoundUpdateInputVisitor(const Compound::FrameMap& outputFrames,
      34             :                                const Compound::TileQueueMap& outputQueues);
      35          28 :     virtual ~CompoundUpdateInputVisitor() {}
      36             :     /** Visit all compounds. */
      37             :     virtual VisitorResult visit(Compound* compound);
      38             : 
      39             : private:
      40             :     const Compound::FrameMap& _outputFrames;
      41             :     const Compound::TileQueueMap& _outputQueues;
      42             : 
      43             :     void _updateQueues(const Compound* compound);
      44             :     void _updateFrames(Compound* compound);
      45             :     void _updateZoom(const Compound* compound, Frame* frame,
      46             :                      const Frame* outputFrame);
      47             : };
      48             : }
      49             : }
      50             : #endif // EQSERVER_CONSTCOMPOUNDVISITOR_H

Generated by: LCOV version 1.11