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

          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_DATA_HPP
       8             : #define VSET_VSET_BUFFER_PERSISTENT_FILE_AD_DATA_HPP
       9             : 
      10             : #include <vset/buffer/tags.hpp>
      11             : #include <vset/buffer/persistent/tags.hpp>
      12             : 
      13             : namespace vset { namespace buffer { namespace persistent{ namespace file{
      14             : 
      15          12 : struct ad_data
      16             : {
      17             :   template<typename T>
      18             :   const typename T::aspect::template advice_cast<_data_type_>::type
      19     2322555 :   operator()( T& t ) const
      20             :   {
      21     2322555 :     return t.get_aspect().template get<_buffer_>() + t.get_aspect().template get<_head_>()(t)->offset();
      22             :   }
      23             : 
      24             :   template<typename T>
      25             :   typename T::aspect::template advice_cast<_data_type_>::type
      26      523578 :   operator()( T& t )
      27             :   {
      28      523578 :     return t.get_aspect().template get<_buffer_>() + t.get_aspect().template get<_head_>()(t)->offset();
      29             :   }
      30             : 
      31             : };
      32             : 
      33             : }}}}
      34             : 
      35             : #endif

Generated by: LCOV version 1.10