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

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2011-2015, Stefan Eilemann <eile@eyescale.ch>
       3             :  *                          Petros Kataras <petroskataras@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 EQSEQUEL_DETAIL_PIPE_H
      20             : #define EQSEQUEL_DETAIL_PIPE_H
      21             : 
      22             : #include <eq/pipe.h> // base class
      23             : #include <seq/types.h>
      24             : 
      25             : namespace seq
      26             : {
      27             : namespace detail
      28             : {
      29             : class Pipe : public eq::Pipe
      30             : {
      31             : public:
      32             :     explicit Pipe(eq::Node* parent);
      33             : 
      34             :     /** @name Data Access. */
      35             :     //@{
      36             :     seq::Application* getApplication();
      37             :     Config* getConfig();
      38             :     Node* getNode();
      39          12 :     seq::Renderer* getRenderer() { return _renderer; }
      40             :     detail::Renderer* getRendererImpl();
      41             :     co::Object* getFrameData();
      42             :     ObjectMap* getObjectMap();
      43             :     //@}
      44             : 
      45             : protected:
      46             :     virtual ~Pipe();
      47             : 
      48             :     virtual bool configInit(const uint128_t& initID);
      49             :     virtual bool configExit();
      50             : 
      51             :     virtual void frameStart(const uint128_t& frameID,
      52             :                             const uint32_t frameNumber);
      53             : 
      54             : private:
      55             :     bool _mapData(const uint128_t& initID);
      56             :     void _syncData(const uint128_t& version);
      57             :     void _unmapData();
      58             : 
      59             :     ObjectMap* _objects;
      60             :     seq::Renderer* _renderer;
      61             : };
      62             : }
      63             : }
      64             : 
      65             : #endif // EQSEQUEL_DETAIL_PIPE_H

Generated by: LCOV version 1.11