comparison src/femfenics_base_factory.h @ 247:8ca45824938e

Add factories hierarchy for matrices' and vectors' assembly
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Sat, 12 Jul 2014 12:30:13 +0200
parents
children 61830a4f9ab9
comparison
equal deleted inserted replaced
246:a2991e2a085b 247:8ca45824938e
1 /*
2 Copyright (C) 2014 Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
3
4 This program is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free Software
6 Foundation; either version 3 of the License, or (at your option) any later
7 version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12 details.
13
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __FEMFENICS_BASE_FACTORY__
19 #define __FEMFENICS_BASE_FACTORY__
20
21 #include <dolfin.h>
22 #include <octave/oct.h>
23
24 class femfenics_base_factory
25 {
26 public:
27
28 femfenics_base_factory () {}
29 virtual ~femfenics_base_factory () {}
30
31 virtual octave_value matrix (dolfin::Matrix const&) const =0;
32 virtual octave_value vector (dolfin::Vector const&) const =0;
33 };
34
35 #endif