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
exprbase.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: 2010-04-21
7 
8  Copyright (C) 2010 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 2.1 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 __ExprBase_H
30 #define __ExprBase_H 1
31 
32 #include <string>
33 #include <sstream>
34 #include <iostream>
35 
36 namespace Feel
37 {
47 class ExprBase
48 {
49 public:
50 
51 
55 
56 
58 
62 
63 
65 
69 
71  ExprBase();
72 
74  virtual ~ExprBase();
75 
77 
81 
82 
86 
88  virtual std::string typeName() const ;
89 
91 
95 
96 
98 
102 
107  virtual std::ostream& toText( std::ostream& os, bool paren ) const = 0 ;
108 
112  virtual std::ostream& toLatex( std::ostream& os, bool paren ) const = 0 ;
113 
117  std::string toString() const ;
118 
119 
121 
122 
123 
124 protected:
125 
126 private:
127 
128 };
129 }
130 #endif /* __ExprBase_H */
131 
virtual std::ostream & toLatex(std::ostream &os, bool paren) const =0
virtual std::string typeName() const
Definition: exprbase.cpp:41
ExprBase()
default constructor
Definition: exprbase.cpp:34
virtual std::ostream & toText(std::ostream &os, bool paren) const =0
Base class for expression.
Definition: exprbase.hpp:47
std::string toString() const
Definition: exprbase.cpp:47
virtual ~ExprBase()
destructor
Definition: exprbase.cpp:37

Generated on Sun Dec 22 2013 13:10:59 for Feel++ by doxygen 1.8.5