diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-23 21:18:29 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-23 22:39:54 -0200 |
commit | 982db27e691d4df0276b7e9fbfa471f53c8647a3 (patch) | |
tree | 2be4f01884dad561e171192445be88b60da031ab /tests/libsample/point.h | |
parent | fc9458dc83858ad76a5d589c3cd787ef5a1d5d16 (diff) |
Added visibility rules to libsample.
Diffstat (limited to 'tests/libsample/point.h')
-rw-r--r-- | tests/libsample/point.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/tests/libsample/point.h b/tests/libsample/point.h index 01570cff0..a81750391 100644 --- a/tests/libsample/point.h +++ b/tests/libsample/point.h @@ -38,7 +38,9 @@ #include "complex.h" #include <utility> -class Point +#include "libsamplemacros.h" + +class LIBSAMPLE_API Point { public: Point(int x = 0, int y = 0); @@ -63,12 +65,12 @@ public: Point operator+(const Point& other); Point operator-(const Point& other); - friend Point operator*(const Point& pt, double mult); - friend Point operator*(const Point& pt, int mult); - friend Point operator*(double mult, const Point& pt); - friend Point operator*(int mult, const Point& pt); - friend Point operator-(const Point& pt); - friend bool operator!(const Point& pt); + friend LIBSAMPLE_API Point operator*(const Point& pt, double mult); + friend LIBSAMPLE_API Point operator*(const Point& pt, int mult); + friend LIBSAMPLE_API Point operator*(double mult, const Point& pt); + friend LIBSAMPLE_API Point operator*(int mult, const Point& pt); + friend LIBSAMPLE_API Point operator-(const Point& pt); + friend LIBSAMPLE_API bool operator!(const Point& pt); Point& operator+=(Point &other); Point& operator-=(Point &other); @@ -80,17 +82,17 @@ private: double m_y; }; -Point operator*(const Point& pt, double mult); -Point operator*(const Point& pt, int mult); -Point operator*(double mult, const Point& pt); -Point operator*(int mult, const Point& pt); -Point operator-(const Point& pt); -bool operator!(const Point& pt); +LIBSAMPLE_API Point operator*(const Point& pt, double mult); +LIBSAMPLE_API Point operator*(const Point& pt, int mult); +LIBSAMPLE_API Point operator*(double mult, const Point& pt); +LIBSAMPLE_API Point operator*(int mult, const Point& pt); +LIBSAMPLE_API Point operator-(const Point& pt); +LIBSAMPLE_API bool operator!(const Point& pt); -Complex transmutePointIntoComplex(const Point& point); -Point transmuteComplexIntoPoint(const Complex& cpx); +LIBSAMPLE_API Complex transmutePointIntoComplex(const Point& point); +LIBSAMPLE_API Point transmuteComplexIntoPoint(const Complex& cpx); -Point operator*(const Point& pt, double multiplier); +LIBSAMPLE_API Point operator*(const Point& pt, double multiplier); #endif // POINT_H |