LCOV - code coverage report
Current view: top level - future - future_hash.hpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 2 100.0 %
Date: 2017-07-14 10:03:36 Functions: 1 13 7.7 %

          Line data    Source code
       1             : /* src/future/future_hash.hpp - future hash function
       2             : 
       3             :    Copyright (C) 1996-2013
       4             :    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
       5             : 
       6             :    This file is part of CACAO.
       7             : 
       8             :    This program is free software; you can redistribute it and/or
       9             :    modify it under the terms of the GNU General Public License as
      10             :    published by the Free Software Foundation; either version 2, or (at
      11             :    your option) any later version.
      12             : 
      13             :    This program is distributed in the hope that it will be useful, but
      14             :    WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      16             :    General Public License for more details.
      17             : 
      18             :    You should have received a copy of the GNU General Public License
      19             :    along with this program; if not, write to the Free Software
      20             :    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
      21             :    02110-1301, USA.
      22             : 
      23             : */
      24             : 
      25             : 
      26             : #ifndef FUTURE_FUTURE_HASH_HPP_
      27             : #define FUTURE_FUTURE_HASH_HPP_ 1
      28             : 
      29             : // namespace _future must be defined before including this file
      30             : 
      31             : namespace cacao {
      32             : 
      33             : template<class Key>
      34             : struct hash {
      35       11220 :         std::size_t operator()(Key const& k) const {
      36       11220 :                 return _future::hash<Key>()(k);
      37             :         }
      38             : };
      39             : 
      40             : } // end namespace cacao
      41             : 
      42             : #endif /* FUTURE_FUTURE_HASH_HPP_ */
      43             : 
      44             : /*
      45             :  * These are local overrides for various environment variables in Emacs.
      46             :  * Please do not remove this and leave it at the end of the file, where
      47             :  * Emacs will automagically detect them.
      48             :  * ---------------------------------------------------------------------
      49             :  * Local variables:
      50             :  * mode: c++
      51             :  * indent-tabs-mode: t
      52             :  * c-basic-offset: 4
      53             :  * tab-width: 4
      54             :  * End:
      55             :  * vim:noexpandtab:sw=4:ts=4:
      56             :  */

Generated by: LCOV version 1.11