LCOV - code coverage report
Current view: top level - vset/vtree/aspect - ad_capacity.hpp (source / functions) Hit Total Coverage
Test: v-set-coverage.info Lines: 3 3 100.0 %
Date: 2019-09-12 Functions: 2 2 100.0 %

          Line data    Source code
       1             : //
       2             : // Author: Dmitry Saprykin <saprykin.dmitry@gmail.com>, (C) 2014
       3             : //
       4             : // Copyright: See COPYING file that comes with this distribution
       5             : //
       6             : 
       7             : #ifndef VSET_VTREE_ASPECT_AD_CAPACITY_HPP
       8             : #define VSET_VTREE_ASPECT_AD_CAPACITY_HPP
       9             : 
      10             : #include <vset/vtree/aspect/tags.hpp>
      11             : #include <stdlib.h>
      12             : 
      13             : namespace vset{ namespace vtree{
      14             : 
      15          29 : struct ad_capacity
      16             : {
      17             :   template<typename T>
      18           5 :   size_t operator()(const T& t) const
      19             :   {
      20           5 :     return t.get_container().size() * T::aspect::template advice_cast< ::vset::vtree::_array_type_ >::type::dimension;
      21             :   }
      22             : };
      23             : 
      24             : }}
      25             : 
      26             : #endif

Generated by: LCOV version 1.10