LCOV - code coverage report
Current view: top level - vset/buffer/persistent/file - ad_seek_set.hpp (source / functions) Hit Total Coverage
Test: v-set-coverage.info Lines: 1 1 100.0 %
Date: 2019-09-12 Functions: 1 1 100.0 %

          Line data    Source code
       1             : //
       2             : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2012
       3             : //
       4             : // Copyright: See COPYING file that comes with this distribution
       5             : //
       6             : 
       7             : #ifndef VSET_VSET_BUFFER_PERSISTENT_FILE_AD_SEEK_SET_HPP
       8             : #define VSET_VSET_BUFFER_PERSISTENT_FILE_AD_SEEK_SET_HPP
       9             : 
      10             : #include <vset/buffer/tags.hpp>
      11             : #include <vset/buffer/persistent/tags.hpp>
      12             : 
      13             : #include <fcntl.h>
      14             : 
      15             : namespace vset { namespace buffer { namespace persistent{ namespace file{
      16             : 
      17          12 : struct ad_seek_set
      18             : {
      19             :   template<typename T>
      20             :   void operator()( T& t, size_t size )
      21             :   {
      22             :     ::lseek( t.get_aspect().template get<_descriptor_>() , size, SEEK_SET);
      23             :   }
      24             : };
      25             : 
      26             : }}}}
      27             : 
      28             : #endif

Generated by: LCOV version 1.10