Version: 9.15.0
RefCount Class Reference

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

#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...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RefCount() [1/2]

RefCount::RefCount ( )
inline

constructor

◆ RefCount() [2/2]

RefCount::RefCount ( const RefCount )
inline

copy constructor

◆ ~RefCount()

virtual RefCount::~RefCount ( )
inlinevirtual

destructor

Member Function Documentation

◆ downcount()

void RefCount::downcount ( )
inline

decrements reference counter

◆ operator=()

RefCount& RefCount::operator= ( const RefCount )
inline

operator= (does not change counter)

◆ refcount()

int RefCount::refcount ( ) const
inline

get reference counter value

◆ upcount()

void RefCount::upcount ( )
inline

increments reference counter

Member Data Documentation

◆ crefs

unsigned long RefCount::crefs
private

reference counter


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