comparison inst/private/generate_mf_header.m @ 268:61830a4f9ab9

Improve formatting
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Thu, 14 Aug 2014 12:26:55 +0200
parents f22588ae37af
children
comparison
equal deleted inserted replaced
267:53039ac90368 268:61830a4f9ab9
28 #include <octave/oct.h>\n\ 28 #include <octave/oct.h>\n\
29 #include <fem-fenics/dolfin_compat.h>\n\ 29 #include <fem-fenics/dolfin_compat.h>\n\
30 \n\ 30 \n\
31 class meshfunction_@@LABEL@@ : public octave_base_value\n\ 31 class meshfunction_@@LABEL@@ : public octave_base_value\n\
32 {\n\ 32 {\n\
33 public:\n\ 33 public:\n\
34 \n\ 34 \n\
35 meshfunction_@@LABEL@@ (void)\n\ 35 meshfunction_@@LABEL@@ (void)\n\
36 : octave_base_value () {}\n\ 36 : octave_base_value () {}\n\
37 \n\ 37 \n\
38 meshfunction_@@LABEL@@ (dolfin::MeshFunction <@@TYPENAME@@ > const & _mf)\n\ 38 meshfunction_@@LABEL@@ (dolfin::MeshFunction <@@TYPENAME@@ > const & _mf)\n\
39 : octave_base_value (), pmf (new dolfin::MeshFunction <@@TYPENAME@@ > (_mf)) {}\n\ 39 : octave_base_value (), pmf (new dolfin::MeshFunction <@@TYPENAME@@ > (_mf)) {}\n\
40 \n\ 40 \n\
41 meshfunction_@@LABEL@@ (SHARED_PTR <dolfin::Mesh const> mesh,\n\ 41 meshfunction_@@LABEL@@ (SHARED_PTR <dolfin::Mesh const> mesh,\n\
42 std::string const & filename)\n\ 42 std::string const & filename)\n\
43 : octave_base_value (),\n\ 43 : octave_base_value (),\n\
44 pmf (new dolfin::MeshFunction <@@TYPENAME@@ > (mesh, filename)) {}\n\ 44 pmf (new dolfin::MeshFunction <@@TYPENAME@@ > (mesh, filename)) {}\n\
45 \n\ 45 \n\
46 bool\n\ 46 bool\n\
47 is_defined (void) const\n\ 47 is_defined (void) const\n\
48 { return true; }\n\ 48 { return true; }\n\
49 \n\ 49 \n\
50 void\n\ 50 void\n\
51 print (std::ostream& os, bool pr_as_read_syntax = false) const\n\ 51 print (std::ostream& os, bool pr_as_read_syntax = false) const\n\
52 { os << ""MeshFunction <@@TYPENAME@@ >: ""\n\ 52 { os << ""MeshFunction <@@TYPENAME@@ >: ""\n\
53 << get_pmf ()->str (@@VERBOSE@@) << std::endl; }\n\ 53 << get_pmf ()->str (@@VERBOSE@@) << std::endl; }\n\
54 \n\ 54 \n\
55 dolfin::MeshFunction <@@TYPENAME@@ > const &\n\ 55 dolfin::MeshFunction <@@TYPENAME@@ > const &\n\
56 get_mf (void) const\n\ 56 get_mf (void) const\n\
57 { return *pmf; }\n\ 57 { return *pmf; }\n\
58 \n\ 58 \n\
59 SHARED_PTR <dolfin::MeshFunction <@@TYPENAME@@ > const> const &\n\ 59 SHARED_PTR <dolfin::MeshFunction <@@TYPENAME@@ > const> const &\n\
60 get_pmf (void) const\n\ 60 get_pmf (void) const\n\
61 { return pmf; }\n\ 61 { return pmf; }\n\
62 \n\ 62 \n\
63 private:\n\ 63 private:\n\
64 \n\ 64 \n\
65 SHARED_PTR <dolfin::MeshFunction <@@TYPENAME@@ > const> pmf;\n\ 65 SHARED_PTR <dolfin::MeshFunction <@@TYPENAME@@ > const> pmf;\n\
66 \n\ 66 \n\
67 DECLARE_OCTAVE_ALLOCATOR;\n\ 67 DECLARE_OCTAVE_ALLOCATOR;\n\
68 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;\n\ 68 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;\n\