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_nonzero_constant.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Sacado Package
4
//
5
// Copyright 2006 NTESS and the Sacado contributors.
6
// SPDX-License-Identifier: LGPL-2.1-or-later
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef SACADO_MPL_INTEGRAL_NONZERO_CONSTANT_HPP
11
#define SACADO_MPL_INTEGRAL_NONZERO_CONSTANT_HPP
12
13
#include "
Sacado_ConfigDefs.h
"
14
15
namespace
Sacado {
16
17
namespace
mpl {
18
19
template
<
typename
T , T v ,
bool
NonZero = ( v != T(0) ) >
20
struct
integral_nonzero_constant
21
{
22
enum
{
value
=
T
(v) };
23
typedef
T
value_type
;
24
typedef
integral_nonzero_constant<T,v>
type
;
25
SACADO_INLINE_FUNCTION
integral_nonzero_constant
(
const
T
& ) {}
26
};
27
28
template
<
typename
T , T zero >
29
struct
integral_nonzero_constant
<
T
,zero,
false
>
30
{
31
const
T
value
;
32
typedef
T
value_type
;
33
typedef
integral_nonzero_constant<T,0>
type
;
34
SACADO_INLINE_FUNCTION
integral_nonzero_constant
(
const
T
& v ) :
35
value
(v) {}
36
};
37
38
}
39
40
}
41
42
#endif // SACADO_MPL_INTEGRAL_NONZERO_CONSTANT_HPP
Sacado::mpl::integral_nonzero_constant::integral_nonzero_constant
SACADO_INLINE_FUNCTION integral_nonzero_constant(const T &)
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:25
Sacado::mpl::integral_nonzero_constant< T, zero, false >::value_type
T value_type
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:32
Sacado::mpl::integral_nonzero_constant< T, zero, false >::integral_nonzero_constant
SACADO_INLINE_FUNCTION integral_nonzero_constant(const T &v)
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:34
Sacado::mpl::integral_nonzero_constant::value_type
T value_type
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:23
T
#define T
Definition:
Sacado_rad.hpp:553
Sacado::mpl::integral_nonzero_constant
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:20
Sacado::mpl::integral_nonzero_constant::type
integral_nonzero_constant< T, v > type
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:24
Sacado::mpl::integral_nonzero_constant< T, zero, false >::type
integral_nonzero_constant< T, 0 > type
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:33
Sacado_ConfigDefs.h
false
expr expr expr bar false
Definition:
Sacado_ELRFad_Ops.hpp:171
SACADO_INLINE_FUNCTION
#define SACADO_INLINE_FUNCTION
Definition:
Sacado_ConfigDefs.h:88
Sacado::mpl::integral_nonzero_constant< T, zero, false >::value
const T value
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:31
Sacado::mpl::integral_nonzero_constant::value
Definition:
Sacado_mpl_integral_nonzero_constant.hpp:22
Generated on Thu Nov 21 2024 09:24:00 for Sacado Package Browser (Single Doxygen Collection) by
1.8.5