SyFi
0.3
|
#include <Polygon.h>
Public Member Functions | |
Box (GiNaC::ex p0, GiNaC::ex p1, const std::string &subscript="") | |
Box (GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, GiNaC::ex p7, const std::string &subscript="") | |
Box (const Box &box) | |
Box () | |
virtual | ~Box () |
virtual unsigned int | no_space_dim () const |
virtual Line | line (unsigned int i) const |
virtual Rectangle | rectangle (unsigned int i) const |
virtual GiNaC::ex | repr (Repr_format format=SUBS_PERFORMED) const |
virtual const std::string | str () const |
virtual GiNaC::ex | integrate (GiNaC::ex f, Repr_format format=SUBS_PERFORMED) |
virtual Box * | copy () const |
def | __init__ |
def | repr |
def | integrate |
def | copy |
Static Public Attributes | |
tuple | thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
Static Private Attributes | |
__repr__ = _swig_repr | |
__swig_destroy__ = _SyFi.delete_Box |
SyFi::Box::Box | ( | GiNaC::ex | p0, |
GiNaC::ex | p1, | ||
const std::string & | subscript = "" |
||
) |
SyFi::Box::Box | ( | GiNaC::ex | p0, |
GiNaC::ex | p1, | ||
GiNaC::ex | p2, | ||
GiNaC::ex | p3, | ||
GiNaC::ex | p4, | ||
GiNaC::ex | p5, | ||
GiNaC::ex | p6, | ||
GiNaC::ex | p7, | ||
const std::string & | subscript = "" |
||
) |
SyFi::Box::Box | ( | const Box & | box | ) |
Definition at line 1126 of file Polygon.cpp.
: Polygon(box) { }
SyFi::Box::Box | ( | ) | [inline] |
virtual SyFi::Box::~Box | ( | ) | [inline, virtual] |
def SyFi::Box::__init__ | ( | self, | |
args | |||
) |
__init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1, std::string const & subscript) -> Box __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1) -> Box __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, GiNaC::ex p7, std::string const & subscript) -> Box __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, GiNaC::ex p7) -> Box __init__(SyFi::Box self, Box box) -> Box __init__(SyFi::Box self) -> Box
Reimplemented in SyFi::ReferenceBox.
Definition at line 2167 of file SyFi.py.
02167 02168 def __init__(self, *args): 02169 """ 02170 __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1, std::string const & subscript) -> Box 02171 __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1) -> Box 02172 __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, GiNaC::ex p7, std::string const & subscript) -> Box 02173 __init__(SyFi::Box self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, GiNaC::ex p7) -> Box 02174 __init__(SyFi::Box self, Box box) -> Box 02175 __init__(SyFi::Box self) -> Box 02176 """ _SyFi.Box_swiginit(self,_SyFi.new_Box(*args))
Box * SyFi::Box::copy | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceBox.
Definition at line 1223 of file Polygon.cpp.
References Box().
Referenced by copy().
{ return new Box(*this); }
def SyFi::Box::copy | ( | self | ) |
copy(Box self) -> Box
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceBox.
Definition at line 2195 of file SyFi.py.
References copy(), and SyFi.new_instancemethod.
02195 02196 def copy(self): 02197 """copy(Box self) -> Box""" 02198 return _SyFi.Box_copy(self) 02199 02200 Box.repr = new_instancemethod(_SyFi.Box_repr, None, Box) 02201 Box.integrate = new_instancemethod(_SyFi.Box_integrate, None, Box) Box.copy = new_instancemethod(_SyFi.Box_copy, None, Box)
virtual GiNaC::ex SyFi::Box::integrate | ( | GiNaC::ex | f, |
Repr_format | format = SUBS_PERFORMED |
||
) | [virtual] |
Implements SyFi::Polygon.
Referenced by integrate(), and main().
def SyFi::Box::integrate | ( | self, | |
args | |||
) |
integrate(Box self, GiNaC::ex f, SyFi::Repr_format format) -> GiNaC::ex integrate(Box self, GiNaC::ex f) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 2187 of file SyFi.py.
References integrate().
Line SyFi::Box::line | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 1137 of file Polygon.cpp.
References SyFi::istr(), and SyFi::Polygon::subscript.
{ int i0, i1; switch(i) { case 0: i0 = 6; i1 = 7; break; case 1: i0 = 5; i1 = 6; break; case 2: i0 = 4; i1 = 7; break; case 3: i0 = 4; i1 = 5; break; case 4: i0 = 3; i1 = 7; break; case 5: i0 = 2; i1 = 6; break; case 6: i0 = 2; i1 = 3; break; case 7: i0 = 1; i1 = 5; break; case 8: i0 = 1; i1 = 2; break; case 9: i0 = 0; i1 = 4; break; case 10: i0 = 0; i1 = 3; break; case 11: i0 = 0; i1 = 1; break; default: throw std::out_of_range("Line index is out of range!"); } return Line(p[i0], p[i1], istr(subscript,i)); }
unsigned int SyFi::Box::no_space_dim | ( | ) | const [virtual] |
Rectangle SyFi::Box::rectangle | ( | unsigned int | i | ) | const [virtual] |
Reimplemented from SyFi::Polygon.
Definition at line 1161 of file Polygon.cpp.
References SyFi::istr(), and SyFi::Polygon::subscript.
{ switch(i) { case 0: return Rectangle(p[4], p[6], istr(subscript,i)); case 1: return Rectangle(p[2], p[7], istr(subscript,i)); case 2: return Rectangle(p[1], p[6], istr(subscript,i)); case 3: return Rectangle(p[0], p[7], istr(subscript,i)); case 4: return Rectangle(p[0], p[5], istr(subscript,i)); case 5: return Rectangle(p[0], p[2], istr(subscript,i)); } throw std::out_of_range("Rectangle index is out of range!"); }
ex SyFi::Box::repr | ( | Repr_format | format = SUBS_PERFORMED | ) | const [virtual] |
Implements SyFi::Polygon.
Definition at line 1175 of file Polygon.cpp.
References SyFi::t, and SyFi::x.
Referenced by _wrap_Box_repr__SWIG_1(), main(), and repr().
{ lst ret; GiNaC::symbol r("r"), s("s"), t("t"); ret.append( x == p[0].op(0) + r * (p[6].op(0) - p[0].op(0)) ); ret.append( y == p[0].op(1) + s * (p[6].op(1) - p[0].op(1)) ); ret.append( z == p[0].op(2) + t * (p[6].op(2) - p[0].op(2)) ); ret.append( lst(r,0,1) ); ret.append( lst(s,0,1) ); ret.append( lst(t,0,1) ); return ret; }
def SyFi::Box::repr | ( | self, | |
args | |||
) |
repr(Box self, SyFi::Repr_format format) -> GiNaC::ex repr(Box self) -> GiNaC::ex
Reimplemented from SyFi::Polygon.
Definition at line 2179 of file SyFi.py.
References repr().
const string SyFi::Box::str | ( | ) | const [virtual] |
Implements SyFi::Polygon.
Reimplemented in SyFi::ReferenceBox.
Definition at line 1188 of file Polygon.cpp.
{ std::ostringstream s; // s <<"Box("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<","<<p[4]<<","<<p[5]<<","<<p[6]<<","<<p[7]<<")"; s <<"Box"; return s.str(); }
SyFi::Box::__repr__ = _swig_repr [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceBox.
SyFi::Box::__swig_destroy__ = _SyFi.delete_Box [static, private] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceBox.
tuple SyFi::Box::thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') [static] |
Reimplemented from SyFi::Polygon.
Reimplemented in SyFi::ReferenceBox.