Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sacado_mpl_apply.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_APPLY_HPP
33 #define SACADO_MPL_APPLY_HPP
34 
36 #include "Sacado_mpl_lambda.hpp"
37 #include "Sacado_mpl_none.hpp"
38 
39 namespace Sacado {
40 
41  namespace mpl {
42 
43  template <class F>
44  struct apply0 : apply_wrap0<typename lambda<F>::type> {};
45 
46  template <class F, class A1>
47  struct apply1 : apply_wrap1<typename lambda<F>::type,A1> {};
48 
49  template <class F, class A1, class A2>
50  struct apply2 : apply_wrap2<typename lambda<F>::type,A1,A2> {};
51 
52  template <class F, class A1, class A2, class A3>
53  struct apply3 : apply_wrap3<typename lambda<F>::type,A1,A2,A3> {};
54 
55  template <class F, class A1, class A2, class A3, class A4>
56  struct apply4 : apply_wrap4<typename lambda<F>::type,A1,A2,A3,A4> {};
57 
58  template <class F, class A1, class A2, class A3, class A4, class A5>
59  struct apply5 : apply_wrap5<typename lambda<F>::type,A1,A2,A3,A4,A5> {};
60 
61  template <class F,
62  class A1=mpl::none,
63  class A2=mpl::none,
64  class A3=mpl::none,
65  class A4=mpl::none,
66  class A5=mpl::none>
67  struct apply : apply_wrap<typename lambda<F>::type,A1,A2,A3,A4,A5> {};
68 
69  } // namespace mpl
70 
71 } // namespace Sacado
72 
73 #endif // SACADO_MPL_APPLY_HPP
Sacado::Fad::DFad< double > F
Definition: ad_example.cpp:40