Mercurial > fem-fenics-eugenio
comparison src/subdomain.h @ 268:61830a4f9ab9
Improve formatting
author | Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
---|---|
date | Thu, 14 Aug 2014 12:26:55 +0200 |
parents | 53039ac90368 |
children |
comparison
equal
deleted
inserted
replaced
267:53039ac90368 | 268:61830a4f9ab9 |
---|---|
21 #include "subdomain_rep.h" | 21 #include "subdomain_rep.h" |
22 #include "dolfin_compat.h" | 22 #include "dolfin_compat.h" |
23 | 23 |
24 class subdomain : public octave_base_value | 24 class subdomain : public octave_base_value |
25 { | 25 { |
26 public: | 26 public: |
27 | 27 |
28 subdomain () | 28 subdomain () |
29 : octave_base_value () {} | 29 : octave_base_value () {} |
30 | 30 |
31 subdomain (octave_fcn_handle const & fh, bool on_boundary) | 31 subdomain (octave_fcn_handle const & fh, bool on_boundary) |
32 : octave_base_value (), rep (new subdomain_rep (fh, on_boundary)) {} | 32 : octave_base_value (), rep (new subdomain_rep (fh, on_boundary)) {} |
33 | 33 |
34 ~subdomain (void) {} | 34 ~subdomain (void) {} |
35 | 35 |
36 void | 36 void |
37 print (std::ostream& os, bool pr_as_read_syntax = false) const | 37 print (std::ostream & os, bool pr_as_read_syntax = false) const |
38 { | 38 { os << "SubDomain" << std::endl; } |
39 os << "SubDomain" << std::endl; | |
40 } | |
41 | 39 |
42 bool | 40 bool |
43 is_defined (void) const | 41 is_defined (void) const |
44 { return true; } | 42 { return true; } |
45 | 43 |
46 SHARED_PTR <subdomain_rep const> const & | 44 SHARED_PTR <subdomain_rep const> const & |
47 get_psd (void) const | 45 get_psd (void) const |
48 { return rep; } | 46 { return rep; } |
49 | 47 |
50 private: | 48 private: |
51 | 49 |
52 SHARED_PTR <subdomain_rep const> rep; | 50 SHARED_PTR <subdomain_rep const> rep; |
53 | 51 |
54 DECLARE_OCTAVE_ALLOCATOR; | 52 DECLARE_OCTAVE_ALLOCATOR; |
55 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA; | 53 DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA; |