JUCE  v5.1.1-3-g1a0b28c73
JUCE API
MessageManager::AsyncCallInvoker< FunctionType > Struct Template Reference
Inheritance diagram for MessageManager::AsyncCallInvoker< FunctionType >:
Collaboration diagram for MessageManager::AsyncCallInvoker< FunctionType >:

Public Types

typedef ReferenceCountedObjectPtr< MessageBasePtr
 

Public Member Functions

 AsyncCallInvoker (FunctionType f)
 
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 messageCallback () override
 
bool post ()
 

Public Attributes

FunctionType callback
 

Protected Member Functions

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

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ AsyncCallInvoker()

template<typename FunctionType>
MessageManager::AsyncCallInvoker< FunctionType >::AsyncCallInvoker ( FunctionType  f)
inline

Member Function Documentation

◆ decReferenceCount()

void ReferenceCountedObject::decReferenceCount ( )
inlinenoexceptinherited

Decreases the object's reference count.

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

References jassert.

◆ decReferenceCountWithoutDeleting()

bool 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 ReferenceCountedObject::getReferenceCount ( ) const
inlinenoexceptinherited

Returns the object's current reference count.

◆ incReferenceCount()

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

◆ messageCallback()

template<typename FunctionType>
void MessageManager::AsyncCallInvoker< FunctionType >::messageCallback ( )
inlineoverridevirtual

◆ post()

bool MessageManager::MessageBase::post ( )
inherited

◆ resetReferenceCount()

void ReferenceCountedObject::resetReferenceCount ( )
inlineprotectednoexceptinherited

Resets the reference count to zero without deleting the object.

You should probably never need to use this!

Member Data Documentation

◆ callback

template<typename FunctionType>
FunctionType MessageManager::AsyncCallInvoker< FunctionType >::callback

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