LCOV - code coverage report
Current view: top level - co - unbufferedMasterCM.h (source / functions) Hit Total Coverage
Test: Collage Lines: 0 2 0.0 %
Date: 2018-01-09 16:37:03 Functions: 0 2 0.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2007-2013, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *
       4             :  * This file is part of Collage <https://github.com/Eyescale/Collage>
       5             :  *
       6             :  * This library is free software; you can redistribute it and/or modify it under
       7             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       8             :  * by the Free Software Foundation.
       9             :  *
      10             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      11             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      12             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      13             :  * details.
      14             :  *
      15             :  * You should have received a copy of the GNU Lesser General Public License
      16             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      17             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      18             :  */
      19             : 
      20             : #ifndef CO_UNBUFFEREDMASTERCM_H
      21             : #define CO_UNBUFFEREDMASTERCM_H
      22             : 
      23             : #include "versionedMasterCM.h" // base class
      24             : 
      25             : namespace co
      26             : {
      27             : /**
      28             :  * @internal
      29             :  * An object change manager handling versioned objects without any
      30             :  * buffering.
      31             :  */
      32             : class UnbufferedMasterCM : public VersionedMasterCM
      33             : {
      34             : public:
      35             :     explicit UnbufferedMasterCM(Object* object);
      36             :     virtual ~UnbufferedMasterCM();
      37             : 
      38             :     /** @name Versioning */
      39             :     //@{
      40             :     uint128_t commit(const uint32_t incarnation) override;
      41           0 :     void setAutoObsolete(const uint32_t) override {}
      42           0 :     uint32_t getAutoObsolete() const override { return 0; }
      43             :     //@}
      44             : 
      45             : private:
      46             :     /* The command handlers. */
      47             :     bool _cmdCommit(ICommand& pkg);
      48             : };
      49             : }
      50             : 
      51             : #endif // CO_UNBUFFEREDMASTERCM_H

Generated by: LCOV version 1.11