SyFi::MixedFE Class Reference

#include <MixedFE.h>

Inheritance diagram for SyFi::MixedFE:

SyFi::FE SyFi::FE SyFi::_object SyFi::_object

List of all members.

Public Member Functions

 MixedFE ()
 MixedFE (StandardFE *fe1, StandardFE *fe2)
virtual ~MixedFE ()
virtual void set_polygon (Polygon &p)
virtual Polygonget_polygon ()
virtual void compute_basis_functions ()
StandardFEget (unsigned int i)
void append (StandardFE *fe)
virtual GiNaC::ex N (unsigned int i)
virtual GiNaC::ex dof (unsigned int i)
virtual unsigned int nbf () const
virtual std::string str ()
def __init__
def set_polygon
def get_polygon
def compute_basis_functions
def get
def append
def N
def dof
def nbf
def str

Public Attributes

std::vector< StandardFE * > mfe
 this

Private Attributes

std::string description

Static Private Attributes

dictionary __swig_setmethods__ = {}
tuple __setattr__ = lambdaself,name,value:_swig_setattr(self, MixedFE, name, value)
dictionary __swig_getmethods__ = {}
tuple __getattr__ = lambdaself,name:_swig_getattr(self, MixedFE, name)
 __repr__ = _swig_repr
 __swig_destroy__ = _SyFi.delete_MixedFE
 __del__ = lambdaself:None;


Detailed Description

Proxy of C++ SyFi::MixedFE class

Definition at line 24 of file MixedFE.h.


Constructor & Destructor Documentation

SyFi::MixedFE::MixedFE (  ) 

Definition at line 11 of file MixedFE.cpp.

References description.

00011                          : FE()
00012         {
00013                 description = "MixedFE";
00014         }

SyFi::MixedFE::MixedFE ( StandardFE fe1,
StandardFE fe2 
)

Definition at line 16 of file MixedFE.cpp.

References description, mfe, and SyFi::StandardFE::str().

00016                                                          : FE()
00017         {
00018                 mfe.push_back(fe1);
00019                 mfe.push_back(fe2);
00020                 description = "MixedFE_" + fe1->str() + "_" +  fe2->str();
00021         }

SyFi::MixedFE::~MixedFE (  )  [virtual]

Definition at line 23 of file MixedFE.cpp.

References mfe.

00024         {
00025                 mfe.clear();
00026         }


Member Function Documentation

def SyFi::MixedFE::__init__ (   self,
  args 
)

__init__(self) -> MixedFE
__init__(self, StandardFE fe1, StandardFE fe2) -> MixedFE

Definition at line 2777 of file SyFi.py.

02777                              : 
02778         """
02779         __init__(self) -> MixedFE
02780         __init__(self, StandardFE fe1, StandardFE fe2) -> MixedFE
02781         """
02782         this = _SyFi.new_MixedFE(*args)
02783         try: self.this.append(this)
02784         except: self.this = this

def SyFi::MixedFE::append (   self,
  args 
)

append(self, StandardFE fe)

Definition at line 2803 of file SyFi.py.

02803                            :
02804         """append(self, StandardFE fe)"""
02805         return _SyFi.MixedFE_append(self, *args)
02806 
    def N(self, *args):

void SyFi::MixedFE::append ( StandardFE fe  ) 

Definition at line 37 of file MixedFE.cpp.

References description, mfe, and SyFi::StandardFE::str().

00038         {
00039                 mfe.push_back(fe);
00040                 description = description + "_" + fe->str();
00041         }

def SyFi::MixedFE::compute_basis_functions (   self  ) 

compute_basis_functions(self)

Reimplemented from SyFi::FE.

Definition at line 2795 of file SyFi.py.

02795                                      :
02796         """compute_basis_functions(self)"""
02797         return _SyFi.MixedFE_compute_basis_functions(self)
02798 
    def get(self, *args):

virtual void SyFi::MixedFE::compute_basis_functions (  )  [inline, virtual]

Implements SyFi::FE.

Definition at line 44 of file MixedFE.h.

00044 { }

def SyFi::MixedFE::dof (   self,
  args 
)

dof(self, unsigned int i) -> GiNaC::ex

Reimplemented from SyFi::FE.

Definition at line 2811 of file SyFi.py.

02811                         :
02812         """dof(self, unsigned int i) -> GiNaC::ex"""
02813         return _SyFi.MixedFE_dof(self, *args)
02814 
    def nbf(self):

GiNaC::ex SyFi::MixedFE::dof ( unsigned int  i  )  [virtual]

Implements SyFi::FE.

Definition at line 72 of file MixedFE.cpp.

References test::e, mfe, and nbf().

00073         {
00074 
00075                 if ( i < 0 || i > nbf()-1)
00076                 {
00077                         throw(std::out_of_range("The index is out of range!"));
00078                 }
00079 
00080                 bool found = false;
00081                 unsigned int e = 0;
00082                 unsigned int tmp_nbf = (*mfe[0]).nbf() ;
00083                 unsigned int tmp_i = i;
00084 
00085                 while ( e < mfe.size() && !found)
00086                 {
00087                         if ( tmp_i < tmp_nbf)
00088                         {
00089                                 found = true;
00090                         }
00091                         else
00092                         {
00093                                 tmp_i -= (*mfe[e]).nbf();
00094                                 e++;
00095                         }
00096                 }
00097                 return (*mfe[e]).dof(tmp_i);
00098         }

def SyFi::MixedFE::get (   self,
  args 
)

get(self, unsigned int i) -> StandardFE

Definition at line 2799 of file SyFi.py.

02799                         :
02800         """get(self, unsigned int i) -> StandardFE"""
02801         return _SyFi.MixedFE_get(self, *args)
02802 
    def append(self, *args):

StandardFE * SyFi::MixedFE::get ( unsigned int  i  ) 

Definition at line 28 of file MixedFE.cpp.

References mfe.

00029         {
00030                 if ( i < 0 || i > mfe.size())
00031                 {
00032                         throw(std::out_of_range("The index is out of range!"));
00033                 }
00034                 return mfe[i];
00035         }

def SyFi::MixedFE::get_polygon (   self  ) 

get_polygon(self) -> Polygon

Reimplemented from SyFi::FE.

Definition at line 2791 of file SyFi.py.

02791                          :
02792         """get_polygon(self) -> Polygon"""
02793         return _SyFi.MixedFE_get_polygon(self)
02794 
    def compute_basis_functions(self):

virtual Polygon& SyFi::MixedFE::get_polygon (  )  [inline, virtual]

Implements SyFi::FE.

Definition at line 40 of file MixedFE.h.

References mfe.

00041                         {
00042                                 return (*(mfe[0])).get_polygon();
00043                         }

def SyFi::MixedFE::N (   self,
  args 
)

N(self, unsigned int i) -> GiNaC::ex

Reimplemented from SyFi::FE.

Definition at line 2807 of file SyFi.py.

02807                       :
02808         """N(self, unsigned int i) -> GiNaC::ex"""
02809         return _SyFi.MixedFE_N(self, *args)
02810 
    def dof(self, *args):

GiNaC::ex SyFi::MixedFE::N ( unsigned int  i  )  [virtual]

Implements SyFi::FE.

Definition at line 43 of file MixedFE.cpp.

References test::e, mfe, and nbf().

00044         {
00045 
00046                 if ( i < 0 || i > nbf()-1)
00047                 {
00048                         throw(std::out_of_range("The index is out of range!"));
00049                 }
00050 
00051                 bool found = false;
00052                 unsigned int e = 0;
00053                 unsigned int tmp_nbf = (*mfe[0]).nbf() ;
00054                 unsigned int tmp_i = i;
00055 
00056                 while ( e < mfe.size() && !found)
00057                 {
00058                         tmp_nbf = (*mfe[0]).nbf() ;
00059                         if ( tmp_i < tmp_nbf )
00060                         {
00061                                 found = true;
00062                         }
00063                         else
00064                         {
00065                                 tmp_i -= (*mfe[e]).nbf();
00066                                 e++;
00067                         }
00068                 }
00069                 return (*mfe[e]).N(tmp_i);
00070         }

def SyFi::MixedFE::nbf (   self  ) 

nbf(self) -> unsigned int

Reimplemented from SyFi::FE.

Definition at line 2815 of file SyFi.py.

02815                  :
02816         """nbf(self) -> unsigned int"""
02817         return _SyFi.MixedFE_nbf(self)
02818 
    def str(self):

unsigned int SyFi::MixedFE::nbf (  )  const [virtual]

Implements SyFi::FE.

Definition at line 100 of file MixedFE.cpp.

References mfe.

Referenced by dof(), and N().

00101         {
00102                 int sum = 0;
00103                 for (unsigned int i=0; i< mfe.size(); i++)
00104                 {
00105                         sum += (*mfe[i]).nbf();
00106                 }
00107                 return sum;
00108         }

def SyFi::MixedFE::set_polygon (   self,
  args 
)

set_polygon(self, Polygon p)

Reimplemented from SyFi::FE.

Definition at line 2787 of file SyFi.py.

02787                                 :
02788         """set_polygon(self, Polygon p)"""
02789         return _SyFi.MixedFE_set_polygon(self, *args)
02790 
    def get_polygon(self):

virtual void SyFi::MixedFE::set_polygon ( Polygon p  )  [inline, virtual]

Implements SyFi::FE.

Definition at line 36 of file MixedFE.h.

00037                         {
00038                         }

def SyFi::MixedFE::str (   self  ) 

str(self) -> string

Reimplemented from SyFi::FE.

Definition at line 2819 of file SyFi.py.

02819                  :
02820         """str(self) -> string"""
02821         return _SyFi.MixedFE_str(self)
02822 
MixedFE_swigregister = _SyFi.MixedFE_swigregister

std::string SyFi::MixedFE::str (  )  [virtual]

Implements SyFi::FE.

Definition at line 110 of file MixedFE.cpp.

References description.

00111         {
00112                 return description;
00113         }


Member Data Documentation

SyFi::MixedFE::__del__ = lambdaself:None; [static, private]

Reimplemented from SyFi::FE.

Definition at line 2786 of file SyFi.py.

tuple SyFi::MixedFE::__getattr__ = lambdaself,name:_swig_getattr(self, MixedFE, name) [static, private]

Reimplemented from SyFi::FE.

Definition at line 2772 of file SyFi.py.

SyFi::MixedFE::__repr__ = _swig_repr [static, private]

Reimplemented from SyFi::FE.

Definition at line 2773 of file SyFi.py.

tuple SyFi::MixedFE::__setattr__ = lambdaself,name,value:_swig_setattr(self, MixedFE, name, value) [static, private]

Reimplemented from SyFi::FE.

Definition at line 2769 of file SyFi.py.

SyFi::MixedFE::__swig_destroy__ = _SyFi.delete_MixedFE [static, private]

Reimplemented from SyFi::FE.

Definition at line 2785 of file SyFi.py.

dictionary SyFi::MixedFE::__swig_getmethods__ = {} [static, private]

Reimplemented from SyFi::FE.

Definition at line 2770 of file SyFi.py.

dictionary SyFi::MixedFE::__swig_setmethods__ = {} [static, private]

Reimplemented from SyFi::FE.

Definition at line 2767 of file SyFi.py.

std::string SyFi::MixedFE::description [private]

Definition at line 26 of file MixedFE.h.

Referenced by append(), MixedFE(), and str().

Definition at line 28 of file MixedFE.h.

Referenced by append(), dof(), get(), get_polygon(), MixedFE(), N(), nbf(), and ~MixedFE().

Definition at line 2784 of file SyFi.py.


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 16:17:07 2009 for SyFi by  doxygen 1.5.9