SyFi::Box Class Reference

#include <Polygon.h>

Inheritance diagram for SyFi::Box:

SyFi::Polygon SyFi::Polygon SyFi::_object SyFi::_object SyFi::ReferenceBox SyFi::ReferenceBox

List of all members.

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 Boxcopy () const
def __init__
def no_space_dim
def line
def rectangle
def repr
def str
def integrate
def copy

Public Attributes

 this

Static Private Attributes

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


Detailed Description

Proxy of C++ SyFi::Box class

Definition at line 195 of file Polygon.h.


Constructor & Destructor Documentation

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 1092 of file Polygon.cpp.

01092                               :
01093         Polygon(box)
01094         {
01095         }

SyFi::Box::Box (  )  [inline]

Definition at line 201 of file Polygon.h.

Referenced by copy().

00201 {}

virtual SyFi::Box::~Box (  )  [inline, virtual]

Definition at line 202 of file Polygon.h.

00202 {}


Member Function Documentation

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

__init__(self, GiNaC::ex p0, GiNaC::ex p1, string subscript = "") -> Box
__init__(self, GiNaC::ex p0, GiNaC::ex p1) -> Box
__init__(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, string subscript = "") -> Box
__init__(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__(self, Box box) -> Box
__init__(self) -> Box

Reimplemented in SyFi::ReferenceBox.

Definition at line 1819 of file SyFi.py.

01819                              : 
01820         """
01821         __init__(self, GiNaC::ex p0, GiNaC::ex p1, string subscript = "") -> Box
01822         __init__(self, GiNaC::ex p0, GiNaC::ex p1) -> Box
01823         __init__(self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, 
01824             GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, 
01825             GiNaC::ex p7, string subscript = "") -> Box
01826         __init__(self, GiNaC::ex p0, GiNaC::ex p1, GiNaC::ex p2, GiNaC::ex p3, 
01827             GiNaC::ex p4, GiNaC::ex p5, GiNaC::ex p6, 
01828             GiNaC::ex p7) -> Box
01829         __init__(self, Box box) -> Box
01830         __init__(self) -> Box
01831         """
01832         this = _SyFi.new_Box(*args)
01833         try: self.this.append(this)
01834         except: self.this = this

def SyFi::Box::copy (   self  ) 

copy(self) -> Box

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1867 of file SyFi.py.

01867                   :
01868         """copy(self) -> Box"""
01869         return _SyFi.Box_copy(self)
01870 
Box_swigregister = _SyFi.Box_swigregister

Box * SyFi::Box::copy (  )  const [virtual]

Implements SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1189 of file Polygon.cpp.

References Box().

01190         {
01191                 return new Box(*this);
01192         }

def SyFi::Box::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 1860 of file SyFi.py.

01860                               :
01861         """
01862         integrate(self, GiNaC::ex f, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex
01863         integrate(self, GiNaC::ex f) -> GiNaC::ex
01864         """
01865         return _SyFi.Box_integrate(self, *args)
01866 
    def copy(self):

virtual GiNaC::ex SyFi::Box::integrate ( GiNaC::ex  f,
Repr_format  format = SUBS_PERFORMED 
) [virtual]

Implements SyFi::Polygon.

Referenced by main().

def SyFi::Box::line (   self,
  args 
)

line(self, unsigned int i) -> Line

Reimplemented from SyFi::Polygon.

Definition at line 1841 of file SyFi.py.

01841                          :
01842         """line(self, unsigned int i) -> Line"""
01843         return _SyFi.Box_line(self, *args)
01844 
    def rectangle(self, *args):

Line SyFi::Box::line ( unsigned int  i  )  const [virtual]

Reimplemented from SyFi::Polygon.

Definition at line 1103 of file Polygon.cpp.

References SyFi::istr(), and SyFi::Polygon::subscript.

01104         {
01105                 int i0, i1;
01106                 switch(i)
01107                 {
01108                         case  0:  i0 = 6; i1 = 7; break;
01109                         case  1:  i0 = 5; i1 = 6; break;
01110                         case  2:  i0 = 4; i1 = 7; break;
01111                         case  3:  i0 = 4; i1 = 5; break;
01112                         case  4:  i0 = 3; i1 = 7; break;
01113                         case  5:  i0 = 2; i1 = 6; break;
01114                         case  6:  i0 = 2; i1 = 3; break;
01115                         case  7:  i0 = 1; i1 = 5; break;
01116                         case  8:  i0 = 1; i1 = 2; break;
01117                         case  9:  i0 = 0; i1 = 4; break;
01118                         case 10:  i0 = 0; i1 = 3; break;
01119                         case 11:  i0 = 0; i1 = 1; break;
01120                         default:
01121                                 throw std::out_of_range("Line index is out of range!");
01122                 }
01123                 return Line(p[i0], p[i1], istr(subscript,i));
01124         }

def SyFi::Box::no_space_dim (   self  ) 

no_space_dim(self) -> unsigned int

Reimplemented from SyFi::Polygon.

Definition at line 1837 of file SyFi.py.

01837                           :
01838         """no_space_dim(self) -> unsigned int"""
01839         return _SyFi.Box_no_space_dim(self)
01840 
    def line(self, *args):

unsigned int SyFi::Box::no_space_dim (  )  const [virtual]

Implements SyFi::Polygon.

Definition at line 1097 of file Polygon.cpp.

01098         {
01099                 return 3;
01100         }

def SyFi::Box::rectangle (   self,
  args 
)

rectangle(self, unsigned int i) -> Rectangle

Reimplemented from SyFi::Polygon.

Definition at line 1845 of file SyFi.py.

01845                               :
01846         """rectangle(self, unsigned int i) -> Rectangle"""
01847         return _SyFi.Box_rectangle(self, *args)
01848 
    def repr(self, *args):

Rectangle SyFi::Box::rectangle ( unsigned int  i  )  const [virtual]

Reimplemented from SyFi::Polygon.

Definition at line 1127 of file Polygon.cpp.

References SyFi::istr(), and SyFi::Polygon::subscript.

01128         {
01129                 switch(i)
01130                 {
01131                         case 0: return Rectangle(p[4], p[6], istr(subscript,i));
01132                         case 1: return Rectangle(p[2], p[7], istr(subscript,i));
01133                         case 2: return Rectangle(p[1], p[6], istr(subscript,i));
01134                         case 3: return Rectangle(p[0], p[7], istr(subscript,i));
01135                         case 4: return Rectangle(p[0], p[5], istr(subscript,i));
01136                         case 5: return Rectangle(p[0], p[2], istr(subscript,i));
01137                 }
01138                 throw std::out_of_range("Rectangle index is out of range!");
01139         }

def SyFi::Box::repr (   self,
  args 
)

repr(self, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex
repr(self) -> GiNaC::ex

Reimplemented from SyFi::Polygon.

Definition at line 1849 of file SyFi.py.

01849                          :
01850         """
01851         repr(self, Repr_format format = SUBS_PERFORMED) -> GiNaC::ex
01852         repr(self) -> GiNaC::ex
01853         """
01854         return _SyFi.Box_repr(self, *args)
01855 
    def str(self):

ex SyFi::Box::repr ( Repr_format  format = SUBS_PERFORMED  )  const [virtual]

Implements SyFi::Polygon.

Definition at line 1141 of file Polygon.cpp.

References run::s, SyFi::t, and SyFi::x.

Referenced by _wrap_Box_repr__SWIG_1(), and main().

01142         {
01143                 lst ret;
01144                 GiNaC::symbol r("r"), s("s"), t("t");
01145                 ret.append( x == p[0].op(0) + r * (p[6].op(0) - p[0].op(0)) );
01146                 ret.append( y == p[0].op(1) + s * (p[6].op(1) - p[0].op(1)) );
01147                 ret.append( z == p[0].op(2) + t * (p[6].op(2) - p[0].op(2)) );
01148                 ret.append( lst(r,0,1) );
01149                 ret.append( lst(s,0,1) );
01150                 ret.append( lst(t,0,1) );
01151                 return ret;
01152         }

def SyFi::Box::str (   self  ) 

str(self) -> string

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1856 of file SyFi.py.

01856                  :
01857         """str(self) -> string"""
01858         return _SyFi.Box_str(self)
01859 
    def integrate(self, *args):

const string SyFi::Box::str (  )  const [virtual]

Implements SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1154 of file Polygon.cpp.

Referenced by _wrap_Box_str().

01155         {
01156                 std::ostringstream s;
01157                 //    s <<"Box("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<","<<p[4]<<","<<p[5]<<","<<p[6]<<","<<p[7]<<")";
01158                 s <<"Box";
01159                 return s.str();
01160         }


Member Data Documentation

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

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1836 of file SyFi.py.

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

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1817 of file SyFi.py.

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

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1818 of file SyFi.py.

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

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1814 of file SyFi.py.

SyFi::Box::__swig_destroy__ = _SyFi.delete_Box [static, private]

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1835 of file SyFi.py.

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

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1815 of file SyFi.py.

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

Reimplemented from SyFi::Polygon.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1812 of file SyFi.py.

Reimplemented in SyFi::ReferenceBox.

Definition at line 1834 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