Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RefCount Class Reference

Base counter class what children using in SmartPtr class how template.

#include <SUIT_SmartPtr.h>

Inheritance diagram for RefCount:
Inheritance graph

Public Member Functions

 RefCount ()
 constructor More...
 
 RefCount (const RefCount &)
 copy constructor More...
 
virtual ~RefCount ()
 destructor More...
 
RefCountoperator= (const RefCount &)
 operator= (does not change counter) More...
 
void upcount ()
 increments reference counter More...
 
void downcount ()
 decrements reference counter More...
 
int refcount () const
 get reference counter value More...
 

Private Attributes

unsigned long crefs
 reference counter More...
 

Constructor & Destructor Documentation

RefCount::RefCount ( )
inline
RefCount::RefCount ( const RefCount )
inline
virtual RefCount::~RefCount ( )
inlinevirtual

Member Function Documentation

void RefCount::downcount ( )
inline
RefCount& RefCount::operator= ( const RefCount )
inline
int RefCount::refcount ( ) const
inline
void RefCount::upcount ( )
inline

Member Data Documentation

unsigned long RefCount::crefs
private

The documentation for this class was generated from the following file: