| 1 |
#include <stdint.h> |
| 2 |
|
| 3 |
class E |
| 4 |
{ |
| 5 |
public: |
| 6 |
void Ref (void) const; |
| 7 |
void Unref (void) const; |
| 8 |
void Do (void); |
| 9 |
|
| 10 |
static E *CreateWithoutRef (void); |
| 11 |
static E *CreateWithRef (void); |
| 12 |
private: |
| 13 |
E (); |
| 14 |
~E (); |
| 15 |
mutable uint32_t m_count; |
| 16 |
}; |