]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Offer general function object.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 19 Mar 1998 10:33:06 +0000 (10:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 19 Mar 1998 10:33:06 +0000 (10:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@86 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function.h [new file with mode: 0644]

diff --git a/deal.II/base/include/base/function.h b/deal.II/base/include/base/function.h
new file mode 100644 (file)
index 0000000..b70514a
--- /dev/null
@@ -0,0 +1,29 @@
+/*----------------------------   function.h     ---------------------------*/
+/*      <Id:>                 */
+#ifndef __function_H
+#define __function_H
+/*----------------------------   function.h     ---------------------------*/
+
+
+//forward declaration
+template <int dim> class Point;
+template <class T> class vector;
+
+
+
+
+template <int dim>
+class Function {
+  public:
+    virtual double operator () (const Point<dim> &p) const = 0;
+    virtual void value_list (const vector<Point<dim> > &points,
+                            vector<double>            &values) const;
+};
+
+
+
+
+/*----------------------------   function.h     ---------------------------*/
+/* end of #ifndef __function_H */
+#endif
+/*----------------------------   function.h     ---------------------------*/

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.