#include <SpaceTimeElement.h>
Public Member Functions | |
SpaceTimeDomain (Line &time_line_, Polygon &polygon_) | |
SpaceTimeDomain (const SpaceTimeDomain &space_time_domain_) | |
Polygon & | get_space_domain () const |
Line & | get_time_domain () const |
virtual unsigned int | no_space_dim () const |
virtual Line | line (unsigned int i) const |
virtual GiNaC::ex | repr (Repr_format=SUBS_PERFORMED) const |
virtual const std::string | str () const |
virtual GiNaC::ex | integrate (GiNaC::ex f, Repr_format format=SUBS_PERFORMED) |
virtual SpaceTimeDomain * | copy () const |
def | __init__ |
def | get_space_domain |
def | get_time_domain |
def | no_space_dim |
def | line |
def | repr |
def | str |
def | integrate |
def | copy |
Public Attributes | |
this | |
Private Attributes | |
Line * | time_line |
Polygon * | polygon |
Static Private Attributes | |
dictionary | __swig_setmethods__ = {} |
tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, SpaceTimeDomain, name, value) |
dictionary | __swig_getmethods__ = {} |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, SpaceTimeDomain, name) |
__repr__ = _swig_repr | |
__swig_destroy__ = _SyFi.delete_SpaceTimeDomain |
Proxy of C++ SyFi::SpaceTimeDomain class
Definition at line 12 of file SpaceTimeElement.h.
Definition at line 13 of file SpaceTimeElement.cpp.
References SyFi::Polygon::copy(), SyFi::Line::copy(), polygon, and time_line.
Referenced by copy().
SyFi::SpaceTimeDomain::SpaceTimeDomain | ( | const SpaceTimeDomain & | space_time_domain_ | ) |
Definition at line 24 of file SpaceTimeElement.cpp.
References SyFi::Polygon::copy(), SyFi::Line::copy(), get_space_domain(), get_time_domain(), polygon, and time_line.
00025 { 00026 00027 if (time_line) 00028 { 00029 delete time_line; 00030 } 00031 if (polygon) 00032 { 00033 delete polygon; 00034 } 00035 00036 time_line = domain.get_time_domain().copy(); 00037 polygon = domain.get_space_domain().copy(); 00038 }
def SyFi::SpaceTimeDomain::__init__ | ( | self, | ||
args | ||||
) |
__init__(self, Line time_line_, Polygon polygon_) -> SpaceTimeDomain __init__(self, SpaceTimeDomain space_time_domain_) -> SpaceTimeDomain
Definition at line 2835 of file SyFi.py.
02835 : 02836 """ 02837 __init__(self, Line time_line_, Polygon polygon_) -> SpaceTimeDomain 02838 __init__(self, SpaceTimeDomain space_time_domain_) -> SpaceTimeDomain 02839 """ 02840 this = _SyFi.new_SpaceTimeDomain(*args) 02841 try: self.this.append(this) 02842 except: self.this = this
def SyFi::SpaceTimeDomain::copy | ( | self | ) |
copy(self) -> SpaceTimeDomain
Reimplemented from SyFi::Polygon.
Definition at line 2877 of file SyFi.py.
02877 : 02878 """copy(self) -> SpaceTimeDomain""" 02879 return _SyFi.SpaceTimeDomain_copy(self) 02880 __swig_destroy__ = _SyFi.delete_SpaceTimeDomain
SpaceTimeDomain * SyFi::SpaceTimeDomain::copy | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 19 of file SpaceTimeElement.cpp.
References SpaceTimeDomain().
00020 { 00021 return new SpaceTimeDomain(*this); 00022 }
def SyFi::SpaceTimeDomain::get_space_domain | ( | self | ) |
get_space_domain(self) -> Polygon
Definition at line 2843 of file SyFi.py.
02843 : 02844 """get_space_domain(self) -> Polygon""" 02845 return _SyFi.SpaceTimeDomain_get_space_domain(self) 02846 def get_time_domain(self):
Polygon& SyFi::SpaceTimeDomain::get_space_domain | ( | ) | const [inline] |
def SyFi::SpaceTimeDomain::get_time_domain | ( | self | ) |
get_time_domain(self) -> Line
Definition at line 2847 of file SyFi.py.
02847 : 02848 """get_time_domain(self) -> Line""" 02849 return _SyFi.SpaceTimeDomain_get_time_domain(self) 02850 def no_space_dim(self):
Line& SyFi::SpaceTimeDomain::get_time_domain | ( | ) | const [inline] |
def SyFi::SpaceTimeDomain::integrate | ( | self, | ||
args | ||||
) |
integrate(self, GiNaC::ex f, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex integrate(self, GiNaC::ex f) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 2870 of file SyFi.py.
02870 : 02871 """ 02872 integrate(self, GiNaC::ex f, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex 02873 integrate(self, GiNaC::ex f) -> GiNaC::ex 02874 """ 02875 return _SyFi.SpaceTimeDomain_integrate(self, *args) 02876 def copy(self):
GiNaC::ex SyFi::SpaceTimeDomain::integrate | ( | GiNaC::ex | f, | |
Repr_format | format = SUBS_PERFORMED | |||
) | [virtual] |
Implements SyFi::Polygon.
Definition at line 63 of file SpaceTimeElement.cpp.
References SyFi::Line::integrate(), SyFi::Polygon::integrate(), polygon, SyFi::t, time_line, and SyFi::x.
00064 { 00065 GiNaC::ex intf; 00066 00067 // integrate in space 00068 intf = polygon->integrate(f, format); 00069 00070 // integrate in time ((x,y,z) are now integrated away) 00071 intf = intf.subs( t == x ); 00072 intf = time_line->integrate(intf , format); 00073 00074 return intf; 00075 00076 }
def SyFi::SpaceTimeDomain::line | ( | self, | ||
args | ||||
) |
line(self, unsigned int i) -> Line
Reimplemented from SyFi::Polygon.
Definition at line 2855 of file SyFi.py.
02855 : 02856 """line(self, unsigned int i) -> Line""" 02857 return _SyFi.SpaceTimeDomain_line(self, *args) 02858 def repr(self, *args):
Line SyFi::SpaceTimeDomain::line | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 50 of file SpaceTimeElement.cpp.
00051 { 00052 //FIXME 00053 // Could use the convention that the time line is the first line, the 00054 // next lines are the lines in the polygon 00055 return Line(); 00056 }
def SyFi::SpaceTimeDomain::no_space_dim | ( | self | ) |
no_space_dim(self) -> unsigned int
Reimplemented from SyFi::Polygon.
Definition at line 2851 of file SyFi.py.
02851 : 02852 """no_space_dim(self) -> unsigned int""" 02853 return _SyFi.SpaceTimeDomain_no_space_dim(self) 02854 def line(self, *args):
unsigned int SyFi::SpaceTimeDomain::no_space_dim | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 45 of file SpaceTimeElement.cpp.
References SyFi::Polygon::no_space_dim(), and polygon.
00046 { 00047 return polygon->no_space_dim() +1; 00048 }
def SyFi::SpaceTimeDomain::repr | ( | self, | ||
args | ||||
) |
repr(self, Repr_format arg0 = SUBS_PERFORMED) -> GiNaC::ex repr(self) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 2859 of file SyFi.py.
02859 : 02860 """ 02861 repr(self, Repr_format arg0 = SUBS_PERFORMED) -> GiNaC::ex 02862 repr(self) -> GiNaC::ex 02863 """ 02864 return _SyFi.SpaceTimeDomain_repr(self, *args) 02865 def str(self):
GiNaC::ex SyFi::SpaceTimeDomain::repr | ( | Repr_format | format = SUBS_PERFORMED |
) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 58 of file SpaceTimeElement.cpp.
References polygon, SyFi::Polygon::repr(), SyFi::Line::repr(), SyFi::t, and time_line.
Referenced by _wrap_SpaceTimeDomain_repr__SWIG_1().
def SyFi::SpaceTimeDomain::str | ( | self | ) |
str(self) -> string
Reimplemented from SyFi::Polygon.
Definition at line 2866 of file SyFi.py.
02866 : 02867 """str(self) -> string""" 02868 return _SyFi.SpaceTimeDomain_str(self) 02869 def integrate(self, *args):
const std::string SyFi::SpaceTimeDomain::str | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 40 of file SpaceTimeElement.cpp.
References polygon, and SyFi::Polygon::str().
Referenced by _wrap_SpaceTimeDomain_str().
00041 { 00042 return "Time" + polygon->str(); 00043 }
tuple SyFi::SpaceTimeDomain::__getattr__ = lambdaself,name:_swig_getattr(self, SpaceTimeDomain, name) [static, private] |
SyFi::SpaceTimeDomain::__repr__ = _swig_repr [static, private] |
tuple SyFi::SpaceTimeDomain::__setattr__ = lambdaself,name,value:_swig_setattr(self, SpaceTimeDomain, name, value) [static, private] |
SyFi::SpaceTimeDomain::__swig_destroy__ = _SyFi.delete_SpaceTimeDomain [static, private] |
dictionary SyFi::SpaceTimeDomain::__swig_getmethods__ = {} [static, private] |
dictionary SyFi::SpaceTimeDomain::__swig_setmethods__ = {} [static, private] |
Polygon* SyFi::SpaceTimeDomain::polygon [private] |
Definition at line 15 of file SpaceTimeElement.h.
Referenced by integrate(), no_space_dim(), repr(), SpaceTimeDomain(), and str().
Line* SyFi::SpaceTimeDomain::time_line [private] |
Definition at line 14 of file SpaceTimeElement.h.
Referenced by integrate(), repr(), and SpaceTimeDomain().