Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
adtype.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2008-02-14
7 
8  Copyright (C) 2008-2011 Université Joseph Fourier (Grenoble I)
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 3.0 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #ifndef __ADType_H
30 #define __ADType_H 1
31 
32 #include <set>
33 #include <boost/type_traits.hpp>
34 #include <boost/type_traits/is_fundamental.hpp>
35 #include <feel/feelcore/feel.hpp>
36 #include <feel/feelopt/adexpr.hpp>
38 
39 namespace Feel
40 {
41 template< typename Expr > class ADExpr;
42 
43 template<int var_>
44 struct ADVariable
45 {
46  enum { var = var_ };
47 
48 
49 };
50 #if 0
51 template<int N, template<int> class T>
52 struct SListGenerator
53 {
54  typedef STYPELIST_1( T<N> ) VL;
55  typedef typename ::St::STL::SAppend<VL,typename SListGenerator<N-1,T>::list_type>::Result list_type;
56 };
57 template<template<int> class T>
58 struct SListGenerator<0, T>
59 {
60  typedef T<0> list_type;
61 };
62 #endif
63 
91 template<typename T, int Nvar, int Order = 1, int Var = -1>
92 class ADType
93 {
94 public:
95 
96 protected:
97 
98 private:
99 
100 };
101 
102 } // Feel
106 
110 
111 #endif /* __ADType_H */
112 

Generated on Fri Oct 25 2013 14:24:03 for Feel++ by doxygen 1.8.4