Sacado Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
mpl
Sacado_mpl_integral_c.hpp
Go to the documentation of this file.
1
// $Id$
2
// $Source$
3
// @HEADER
4
// ***********************************************************************
5
//
6
// Sacado Package
7
// Copyright (2006) Sandia Corporation
8
//
9
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
10
// the U.S. Government retains certain rights in this software.
11
//
12
// This library is free software; you can redistribute it and/or modify
13
// it under the terms of the GNU Lesser General Public License as
14
// published by the Free Software Foundation; either version 2.1 of the
15
// License, or (at your option) any later version.
16
//
17
// This library is distributed in the hope that it will be useful, but
18
// WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
// Lesser General Public License for more details.
21
//
22
// You should have received a copy of the GNU Lesser General Public
23
// License along with this library; if not, write to the Free Software
24
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
25
// USA
26
// Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps
27
// (etphipp@sandia.gov).
28
//
29
// ***********************************************************************
30
// @HEADER
31
32
#ifndef SACADO_MPL_INTEGRAL_C_HPP
33
#define SACADO_MPL_INTEGRAL_C_HPP
34
35
namespace
Sacado {
36
37
namespace
mpl {
38
39
// Type wrapper for storing an integral value
40
template
<
class
T, T N>
41
struct
integral_c
{
42
static
const
T
value
= N;
43
typedef
integral_c<T,N>
type
;
44
typedef
T
value_type
;
45
typedef
integral_c<T,N+1>
next
;
46
typedef
integral_c
<
T
,N-1>
prior
;
47
operator
T
()
const
{
return
N; }
48
};
49
50
}
51
52
}
53
54
#endif
Sacado::mpl::integral_c
Definition:
Sacado_mpl_integral_c.hpp:41
T
#define T
Definition:
Sacado_rad.hpp:573
Sacado::mpl::integral_c::type
integral_c< T, N > type
Definition:
Sacado_mpl_integral_c.hpp:43
Sacado::mpl::integral_c::value_type
T value_type
Definition:
Sacado_mpl_integral_c.hpp:44
Sacado::mpl::integral_c::next
integral_c< T, N+1 > next
Definition:
Sacado_mpl_integral_c.hpp:45
Sacado::mpl::integral_c::value
static const T value
Definition:
Sacado_mpl_integral_c.hpp:42
Sacado::mpl::integral_c::prior
integral_c< T, N-1 > prior
Definition:
Sacado_mpl_integral_c.hpp:46
Generated by
1.8.5