JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::OpenGLContext::AsyncWorkerFunctor< FunctionType > Struct Template Reference
Inheritance diagram for juce::OpenGLContext::AsyncWorkerFunctor< FunctionType >:
Collaboration diagram for juce::OpenGLContext::AsyncWorkerFunctor< FunctionType >:

Public Types

using Ptr = ReferenceCountedObjectPtr< AsyncWorker >
 

Public Member Functions

 AsyncWorkerFunctor (FunctionType functorToUse)
 
void decReferenceCount () noexcept
 Decreases the object's reference count. More...
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count. More...
 
int getReferenceCount () const noexcept
 Returns the object's current reference count. More...
 
void incReferenceCount () noexcept
 Increments the object's reference count. More...
 
void operator() (OpenGLContext &callerContext) override
 

Public Attributes

FunctionType functor
 

Protected Member Functions

void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object. More...
 

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ AsyncWorkerFunctor()

template<typename FunctionType >
juce::OpenGLContext::AsyncWorkerFunctor< FunctionType >::AsyncWorkerFunctor ( FunctionType  functorToUse)
inline

Member Function Documentation

◆ decReferenceCount()

void juce::ReferenceCountedObject::decReferenceCount ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will be deleted.

References jassert.

◆ decReferenceCountWithoutDeleting()

bool juce::ReferenceCountedObject::decReferenceCountWithoutDeleting ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.

References jassert.

◆ getReferenceCount()

int juce::ReferenceCountedObject::getReferenceCount ( ) const
inlinenoexceptinherited

Returns the object's current reference count.

◆ incReferenceCount()

void juce::ReferenceCountedObject::incReferenceCount ( )
inlinenoexceptinherited

Increments the object's reference count.

This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.

◆ operator()()

template<typename FunctionType >
void juce::OpenGLContext::AsyncWorkerFunctor< FunctionType >::operator() ( OpenGLContext callerContext)
inlineoverridevirtual

◆ resetReferenceCount()

void juce::ReferenceCountedObject::resetReferenceCount ( )
inlineprotectednoexceptinherited

Resets the reference count to zero without deleting the object.

You should probably never need to use this!

Member Data Documentation

◆ functor

template<typename FunctionType >
FunctionType juce::OpenGLContext::AsyncWorkerFunctor< FunctionType >::functor

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