VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
ReferenceCounted< T > Class Template Reference
+ Inheritance diagram for ReferenceCounted< T >:

Public Member Functions

 ReferenceCounted ()=default
 
virtual ~ReferenceCounted () noexcept=default
 
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
Reference Counting Methods
void forget () override
 decrease refcount and delete object if refcount == 0 More...
 
void remember () override
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
virtual void beforeDelete ()
 

Constructor & Destructor Documentation

◆ ReferenceCounted() [1/2]

ReferenceCounted ( )
default

◆ ~ReferenceCounted()

virtual ~ReferenceCounted ( )
virtualdefaultnoexcept

◆ ReferenceCounted() [2/2]

ReferenceCounted ( const ReferenceCounted< T > &  )
inline

Member Function Documentation

◆ beforeDelete()

virtual void beforeDelete ( )
inlinevirtual

◆ forget()

void forget ( )
inlineoverridevirtual

decrease refcount and delete object if refcount == 0

Implements IReference.

◆ getNbReference()

virtual int32_t getNbReference ( ) const
inlinevirtual

get refcount

◆ operator=()

ReferenceCounted& operator= ( const ReferenceCounted< T > &  )
inline

◆ remember()

void remember ( )
inlineoverridevirtual

increase refcount

Implements IReference.


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