Last change
on this file since 88 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
797 bytes
|
Rev | Line | |
---|
[88] | 1 | #ifndef _REFERENCE_COUNTER_ |
---|
| 2 | #define _REFERENCE_COUNTER_ |
---|
| 3 | |
---|
| 4 | namespace morpheo { |
---|
| 5 | namespace ReferenceCountersUtils { |
---|
| 6 | |
---|
| 7 | //**********************************Class Declaration********************************************// |
---|
| 8 | |
---|
| 9 | template< typename reference_counter_type> class IReferenceCounter { |
---|
| 10 | public: |
---|
| 11 | virtual inline ~IReferenceCounter(void) = 0; |
---|
| 12 | |
---|
| 13 | virtual reference_counter_type attach(void) = 0; |
---|
| 14 | virtual reference_counter_type detach(void) = 0; |
---|
| 15 | }; |
---|
| 16 | |
---|
| 17 | //**********************************Inline implementation*****************************************// |
---|
| 18 | |
---|
| 19 | template < typename reference_counter_type> |
---|
| 20 | IReferenceCounter<reference_counter_type>::~IReferenceCounter(void) {} |
---|
| 21 | |
---|
| 22 | } // end of ReferenceCountersUtils namespace. |
---|
| 23 | } // end of morpheo namespace. |
---|
| 24 | |
---|
| 25 | #endif // end of _REFERENCE_COUNTER_ |
---|
Note: See
TracBrowser
for help on using the repository browser.