]> Creatis software - bbtk.git/blob - kernel/src/bbtkAny.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkAny.cxx
1 /*=========================================================================                                                                               
2   Program:   bbtk
3   Module:    $RCSfile: bbtkAny.cxx,v $
4   Language:  C++
5   Date:      $Date: 2008/10/17 08:18:12 $
6   Version:   $Revision: 1.2 $
7 =========================================================================*/
8
9 /* ---------------------------------------------------------------------
10 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
11 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
12 *
13 *  This software is governed by the CeCILL-B license under French law and 
14 *  abiding by the rules of distribution of free software. You can  use, 
15 *  modify and/ or redistribute the software under the terms of the CeCILL-B 
16 *  license as circulated by CEA, CNRS and INRIA at the following URL 
17 *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
18 *  or in the file LICENSE.txt.
19 *
20 *  As a counterpart to the access to the source code and  rights to copy,
21 *  modify and redistribute granted by the license, users are provided only
22 *  with a limited warranty  and the software's author,  the holder of the
23 *  economic rights,  and the successive licensors  have only  limited
24 *  liability. 
25 *
26 *  The fact that you are presently reading this means that you have had
27 *  knowledge of the CeCILL-B license and that you accept its terms.
28 * ------------------------------------------------------------------------ */
29
30 #include "bbtkAny.h"
31
32
33 namespace bbtk
34 {
35   /// The TypeTraits which validates all integer types
36   template <> const bool integer<char>::value = true; 
37   template <> const bool integer<short>::value = true;
38   template <> const bool integer<int>::value = true; 
39   template <> const bool integer<long>::value = true; 
40   template <> const bool integer<long long>::value = true; 
41   template <> const bool integer<unsigned char>::value = true; 
42   template <> const bool integer<unsigned short>::value = true;
43   template <> const bool integer<unsigned int>::value = true; 
44   template <> const bool integer<unsigned long>::value = true; 
45   template <> const bool integer<unsigned long long>::value = true; 
46
47   /// The TypeTraits which validates all floating point number types
48   template <> const bool floating_point<float>::value = true;
49   template <> const bool floating_point<double>::value = true;
50 }
51
52