|
quantities/onchipcommunication/IpGeometry.hGo to the documentation of this file.00001 //============================================================================ 00002 // Author : Alessandro Pinto <apinto@eecs.berkeley.edu> 00003 // University of California, Berkeley 00004 // 545 Cory Hall, Berkeley, CA 94720 00005 // Copyright : See COPYING file that comes with this distribution 00006 //============================================================================ 00007 00008 #ifndef IPGEOMETRY_H_ 00009 #define IPGEOMETRY_H_ 00010 00011 #include "../../core/Quantity.h" 00012 00013 namespace cosi { 00014 00015 namespace quantity { 00016 00017 namespace onchipcommunication { 00018 00019 class IpGeometry : public Quantity { 00020 RealQuantity mXl; 00021 RealQuantity mXr; 00022 RealQuantity mYt; 00023 RealQuantity mYb; 00024 RealQuantity mArea; 00025 public: 00026 IpGeometry(); 00027 virtual ~IpGeometry(); 00028 IpGeometry Get(); 00029 void Set(IpGeometry pP); 00030 00031 void SetXl(RealQuantity Xl); 00032 void SetXr(RealQuantity Xr); 00033 void SetYt(RealQuantity Yt); 00034 void SetYb(RealQuantity Yb); 00035 void SetArea(RealQuantity Area); 00036 00037 RealQuantity GetXl() const; 00038 RealQuantity GetXr() const; 00039 RealQuantity GetYt() const; 00040 RealQuantity GetYb() const; 00041 RealQuantity GetArea() const; 00042 00043 bool operator ==(const IpGeometry &pP) const; 00044 bool operator <(const IpGeometry &pP) const; 00045 00046 IpGeometry operator+(IpGeometry pT); 00047 IpGeometry operator-(IpGeometry pT); 00048 00049 friend std::ostream& operator <<(std::ostream &pOs, const IpGeometry &pP); 00050 00051 static std::string sQuantityType; 00052 static std::string sQuantityName; 00053 }; 00054 00055 } 00056 } 00057 } 00058 00059 #endif /*IPGEOMETRY_H_*/ Generated on Sun Sep 7 18:37:43 2008 for COSI by 1.5.4 |