SyFi  0.3
SyFi::ReferenceTriangle Class Reference

#include <Polygon.h>

Inheritance diagram for SyFi::ReferenceTriangle:
SyFi::Triangle SyFi::Polygon

List of all members.

Public Member Functions

 ReferenceTriangle (const std::string &subscript="")
 ReferenceTriangle (const ReferenceTriangle &triangle)
virtual ~ReferenceTriangle ()
virtual const std::string str () const
virtual GiNaC::ex integrate (GiNaC::ex f, Repr_format format=SUBS_PERFORMED)
virtual ReferenceTrianglecopy () const

Detailed Description

Definition at line 131 of file Polygon.h.


Constructor & Destructor Documentation

SyFi::ReferenceTriangle::ReferenceTriangle ( const std::string &  subscript = "")

Referenced by copy().

Definition at line 637 of file Polygon.cpp.

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

Definition at line 136 of file Polygon.h.

{}

Member Function Documentation

Reimplemented from SyFi::Triangle.

Definition at line 876 of file Polygon.cpp.

References ReferenceTriangle().

        {
                return new ReferenceTriangle(*this);
        }
ex SyFi::ReferenceTriangle::integrate ( GiNaC::ex  f,
Repr_format  format = SUBS_PERFORMED 
) [virtual]

Reimplemented from SyFi::Triangle.

Definition at line 647 of file Polygon.cpp.

References SyFi::x.

        {
                ex ret = GiNaC::eval_integ(
                        GiNaC::integral(y,0,1,
                        GiNaC::eval_integ(
                        GiNaC::integral(x,0,1-y,f))));
                return ret;
        }
const string SyFi::ReferenceTriangle::str ( ) const [virtual]

Reimplemented from SyFi::Triangle.

Definition at line 639 of file Polygon.cpp.

        {
                std::ostringstream s;
                //    s <<"ReferenceTriangle("<<p[0]<<","<<p[1]<<","<<p[2]<<")";
                s <<"ReferenceTriangle";
                return s.str();
        }

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator