aboutsummaryrefslogtreecommitdiff
path: root/src/signals.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-12-16 23:54:13 +0000
committerMike Buland <eichlan@xagasoft.com>2009-12-16 23:54:13 +0000
commit0d3d73fb0cacd3d1cf7eb8b83ba87f8b740b871a (patch)
tree5e5933681454276d73ceb4ce18719244c9c76d18 /src/signals.h
parentafac5804b069e5eb76c799e9edd2eaeff0d99b94 (diff)
downloadlibbu++-0d3d73fb0cacd3d1cf7eb8b83ba87f8b740b871a.tar.gz
libbu++-0d3d73fb0cacd3d1cf7eb8b83ba87f8b740b871a.tar.bz2
libbu++-0d3d73fb0cacd3d1cf7eb8b83ba87f8b740b871a.tar.xz
libbu++-0d3d73fb0cacd3d1cf7eb8b83ba87f8b740b871a.zip
Signals is even safer and works even better. Also, OptParser is nearly done.
Now I just have to come up with a way to modify data that you already have, that sure was a nice feature of the old one, even if it was implemented in a silly way.
Diffstat (limited to 'src/signals.h')
-rw-r--r--src/signals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/signals.h b/src/signals.h
index 3f892b8..075e5bf 100644
--- a/src/signals.h
+++ b/src/signals.h
@@ -89,7 +89,7 @@ namespace Bu
89 bool isSet() const { return pCb != NULL; } 89 bool isSet() const { return pCb != NULL; }
90 operator bool() const { return isSet(); } 90 operator bool() const { return isSet(); }
91 91
92 Signal0 &operator=( const Signal0 &rhs ) 92 Signal0<ret> &operator=( const Signal0<ret> &rhs )
93 { 93 {
94 pCb = rhs.pCb->clone(); 94 pCb = rhs.pCb->clone();
95 return *this; 95 return *this;
@@ -198,7 +198,7 @@ namespace Bu
198 bool isSet() const { return pCb != NULL; } 198 bool isSet() const { return pCb != NULL; }
199 operator bool() const { return isSet(); } 199 operator bool() const { return isSet(); }
200 200
201 Signal1 &operator=( const Signal1 &rhs ) 201 Signal1<ret, p1t> &operator=( const Signal1<ret, p1t> &rhs )
202 { 202 {
203 pCb = rhs.pCb->clone(); 203 pCb = rhs.pCb->clone();
204 return *this; 204 return *this;
@@ -307,7 +307,7 @@ namespace Bu
307 bool isSet() const { return pCb != NULL; } 307 bool isSet() const { return pCb != NULL; }
308 operator bool() const { return isSet(); } 308 operator bool() const { return isSet(); }
309 309
310 Signal2 &operator=( const Signal2 &rhs ) 310 Signal2<ret, p1t, p2t> &operator=( const Signal2<ret, p1t, p2t> &rhs )
311 { 311 {
312 pCb = rhs.pCb->clone(); 312 pCb = rhs.pCb->clone();
313 return *this; 313 return *this;
@@ -416,7 +416,7 @@ namespace Bu
416 bool isSet() const { return pCb != NULL; } 416 bool isSet() const { return pCb != NULL; }
417 operator bool() const { return isSet(); } 417 operator bool() const { return isSet(); }
418 418
419 Signal3 &operator=( const Signal3 &rhs ) 419 Signal3<ret, p1t, p2t, p3t> &operator=( const Signal3<ret, p1t, p2t, p3t> &rhs )
420 { 420 {
421 pCb = rhs.pCb->clone(); 421 pCb = rhs.pCb->clone();
422 return *this; 422 return *this;
@@ -525,7 +525,7 @@ namespace Bu
525 bool isSet() const { return pCb != NULL; } 525 bool isSet() const { return pCb != NULL; }
526 operator bool() const { return isSet(); } 526 operator bool() const { return isSet(); }
527 527
528 Signal4 &operator=( const Signal4 &rhs ) 528 Signal4<ret, p1t, p2t, p3t, p4t> &operator=( const Signal4<ret, p1t, p2t, p3t, p4t> &rhs )
529 { 529 {
530 pCb = rhs.pCb->clone(); 530 pCb = rhs.pCb->clone();
531 return *this; 531 return *this;
@@ -634,7 +634,7 @@ namespace Bu
634 bool isSet() const { return pCb != NULL; } 634 bool isSet() const { return pCb != NULL; }
635 operator bool() const { return isSet(); } 635 operator bool() const { return isSet(); }
636 636
637 Signal5 &operator=( const Signal5 &rhs ) 637 Signal5<ret, p1t, p2t, p3t, p4t, p5t> &operator=( const Signal5<ret, p1t, p2t, p3t, p4t, p5t> &rhs )
638 { 638 {
639 pCb = rhs.pCb->clone(); 639 pCb = rhs.pCb->clone();
640 return *this; 640 return *this;