00001 00009 #ifndef _QUADRATURE_POINT_BASSO_H_ 00010 #define _QUADRATURE_POINT_BASSO_H_ 00011 00012 // sttd includes 00013 #include <iostream> 00014 00015 // Basso includes 00016 #include "basso.h" 00017 #include "Point.h" 00018 00019 namespace basso { 00020 00022 class QuadraturePoint 00023 { 00024 00025 public: 00026 QuadraturePoint( ) : pt(), wt(0.0) { } 00027 QuadraturePoint( Point p, Numeric w ) : pt(p), wt(w) { } 00028 00029 ~QuadraturePoint() { } 00030 00032 const Point &point() const { return pt; } 00034 const Point &Pt() const { return pt; } 00035 00037 const Numeric &weight() const { return wt; } 00039 const Numeric &Wt() const { return wt; } 00040 00041 private: 00042 Point pt; 00043 Numeric wt; 00044 00045 }; 00046 00047 std::ostream &operator << ( std::ostream &out, const QuadraturePoint &pt ) 00048 { 00049 out << "{ " << pt.point() << " , " << pt.weight() << " }"; 00050 return out; 00051 } 00052 00053 } // end namespace 00054 00055 #endif