Changeset 14:3caa1d3122db in xplcommon for src/xplcommon/posix/WaitableBuffer.h
- Timestamp:
- 12/29/12 10:03:12 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/WaitableBuffer.h
r6 r14 35 35 #include "../Failable.h" 36 36 37 #include "BufferedWaitable.h" 38 37 39 //------------------------------------------------------------------------------ 38 40 39 41 namespace xplcommon { namespace posix { 40 41 //------------------------------------------------------------------------------42 43 class BufferedWaitable;44 42 45 43 //------------------------------------------------------------------------------ … … 49 47 */ 50 48 class WaitableBuffer : public ::xplcommon::Buffer, 51 public ::xplcommon::Failable 49 public ::xplcommon::FailableReference<WaitableBuffer> 52 50 { 53 51 protected: … … 62 60 */ 63 61 WaitableBuffer(size_t capacity, BufferedWaitable* waitable); 62 63 private: 64 /** 65 * Get the failable object. 66 */ 67 const ::xplcommon::Failable& getFailable() const; 68 69 /** 70 * Get the failable object. 71 */ 72 ::xplcommon::Failable& getFailable(); 73 74 friend class FailableReference<WaitableBuffer>; 64 75 }; 65 76 … … 77 88 //------------------------------------------------------------------------------ 78 89 90 inline const ::xplcommon::Failable& WaitableBuffer::getFailable() const 91 { 92 return waitable; 93 } 94 95 //------------------------------------------------------------------------------ 96 97 inline ::xplcommon::Failable& WaitableBuffer::getFailable() 98 { 99 return waitable; 100 } 101 102 //------------------------------------------------------------------------------ 103 79 104 } /* namespace xplcommon::posix */ } /* namespace xplcommon */ 80 105
Note:
See TracChangeset
for help on using the changeset viewer.