VSTGUI 4.10 Graphical User Interface Framework not only for VST plugins

Public Member Functions | List of all members
ReferenceCounted< T > Class Template Reference

`#include <vstguibase.h>`

Inheritance diagram for ReferenceCounted< T >:

## Public Member Functions
| ReferenceCounted ()=default
virtual | ~ReferenceCounted () noexcept=default
| ReferenceCounted (const ReferenceCounted &)
ReferenceCounted & | operator= (const ReferenceCounted &)
virtual void | forget ()=0
| decrease refcount and delete object if refcount == 0 More...
virtual void | remember ()=0
| increase refcount More...

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

## Constructor & Destructor Documentation

## ◆ ReferenceCounted() [1/2]

ReferenceCounted | ( |  | ) |
| default

## ◆ ~ReferenceCounted()

virtual ~ReferenceCounted | ( |  | ) |
| virtual default noexcept

## ◆ ReferenceCounted() [2/2]

ReferenceCounted | ( | const ReferenceCounted< T > & |  | ) |
| inline

## Member Function Documentation

## ◆ forget()

void forget | ( |  | ) |
| inline override virtual

decrease refcount and delete object if refcount == 0

Implements IReference.

## ◆ getNbReference()

virtual int32_t getNbReference | ( |  | ) | const
| inline virtual

get refcount

## ◆ operator=()

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

## ◆ remember()

void remember | ( |  | ) |
| inline override virtual

increase refcount

Implements IReference.

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

- vstguibase.h