LCOV - code coverage report
Current view: top level - eq/admin - segment.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 1 16 6.2 %
Date: 2017-12-16 05:07:20 Functions: 2 8 25.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2010, Stefan Eilemann <eile@eyescale.ch>
       3             :  *
       4             :  * This library is free software; you can redistribute it and/or modify it under
       5             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       6             :  * by the Free Software Foundation.
       7             :  *
       8             :  * This library is distributed in the hope that it will be useful, but WITHOUT
       9             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      10             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      11             :  * details.
      12             :  *
      13             :  * You should have received a copy of the GNU Lesser General Public License
      14             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      15             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      16             :  */
      17             : 
      18             : #include "segment.h"
      19             : 
      20             : #include "canvas.h"
      21             : #include "channel.h"
      22             : #include "config.h"
      23             : #include "layout.h"
      24             : #include "pipe.h"
      25             : #include "server.h"
      26             : #include "window.h"
      27             : 
      28             : namespace eq
      29             : {
      30             : namespace admin
      31             : {
      32             : typedef fabric::Segment<Canvas, Segment, Channel> Super;
      33             : 
      34           0 : Segment::Segment(Canvas* parent)
      35           0 :     : Super(parent)
      36             : {
      37           0 : }
      38             : 
      39           0 : Segment::~Segment()
      40             : {
      41           0 : }
      42             : 
      43           0 : Config* Segment::getConfig()
      44             : {
      45           0 :     LBASSERT(getCanvas());
      46           0 :     return getCanvas() ? getCanvas()->getConfig() : 0;
      47             : }
      48             : 
      49           0 : const Config* Segment::getConfig() const
      50             : {
      51           0 :     LBASSERT(getCanvas());
      52           0 :     return getCanvas() ? getCanvas()->getConfig() : 0;
      53             : }
      54             : 
      55           0 : ServerPtr Segment::getServer()
      56             : {
      57           0 :     Canvas* canvas = getCanvas();
      58           0 :     LBASSERT(canvas);
      59           0 :     return (canvas ? canvas->getServer() : 0);
      60             : }
      61             : }
      62             : }
      63             : 
      64             : #include "../fabric/segment.ipp"
      65             : template class eq::fabric::Segment<eq::admin::Canvas, eq::admin::Segment,
      66             :                                    eq::admin::Channel>;
      67             : 
      68             : /** @cond IGNORE */
      69             : template EQFABRIC_API std::ostream& eq::fabric::operator<<(
      70          60 :     std::ostream&, const eq::admin::Super&);
      71             : /** @endcond */

Generated by: LCOV version 1.11