diff src/function.h @ 173:9e944b0d0fc8

Some Formatting improvements (?)
author gedeone-octave <marcovass89@hotmail.it>
date Sat, 12 Oct 2013 16:06:00 +0100
parents 5fe2a157f4eb
children 94895618701f
line wrap: on
line diff
--- a/src/function.h	Mon Oct 07 21:52:17 2013 +0200
+++ b/src/function.h	Sat Oct 12 16:06:00 2013 +0100
@@ -28,32 +28,42 @@
 
  public:
 
-  function () : octave_base_value (), fun () { }
+  function ()
+    : octave_base_value (), fun () {}
 
-  function (std::string & _str, boost::shared_ptr <const dolfin::Function> _fun) :
-  octave_base_value (), str(_str), fun (_fun) { }
+  function (std::string & _str, 
+            boost::shared_ptr <const dolfin::Function> _fun)
+    : octave_base_value (), str(_str), fun (_fun) {}
 
-  void print (std::ostream& os, bool pr_as_read_syntax = false) const
-  { os << "Function " << str << ": " << fun->str (true) << std::endl; }
+  void 
+  print (std::ostream& os,
+         bool pr_as_read_syntax = false) const
+    { os << "Function " << str << ": " << fun->str (true) << std::endl; }
 
-  ~function(void) { }
+  ~function(void) {}
 
-  bool is_defined (void) const { return true; }
+  bool 
+  is_defined (void) const
+    { return true; }
 
-  const dolfin::Function & get_fun (void) const
-  { return (*fun); }
+  const dolfin::Function &
+  get_fun (void) const
+    { return (*fun); }
 
-  const boost::shared_ptr <const dolfin::Function> & get_pfun (void) const
-  { return fun; }
+  const boost::shared_ptr <const dolfin::Function> &
+  get_pfun (void) const
+    { return fun; }
 
-  void set_fun (dolfin::Function & _fun)
-  {
-    dolfin::Function * p = new dolfin::Function (_fun);
-    fun = boost::shared_ptr<const dolfin::Function> (p);
-  }
+  void 
+  set_fun (dolfin::Function & _fun)
+    {
+      dolfin::Function * p = new dolfin::Function (_fun);
+      fun = boost::shared_ptr<const dolfin::Function> (p);
+    }
 
-  const std::string & get_str (void) const
-  { return str; }
+  const std::string & 
+  get_str (void) const
+    { return str; }
 
  private: