Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
VSTWrapper::ResourceHandle Struct Reference

#include <VSTWrapper.h>

Public Member Functions

 ResourceHandle (CFBundleRef pHandle=nullptr, CFBundleRefNum num=0)
 
ResourceHandleoperator= (ResourceHandle &&other)
 
 ~ResourceHandle ()
 
void reset ()
 

Public Attributes

CFBundleRef mpHandle {}
 
CFBundleRefNum mNum {}
 

Detailed Description

Definition at line 237 of file VSTWrapper.h.

Constructor & Destructor Documentation

◆ ResourceHandle()

VSTWrapper::ResourceHandle::ResourceHandle ( CFBundleRef  pHandle = nullptr,
CFBundleRefNum  num = 0 
)
inline

Definition at line 238 of file VSTWrapper.h.

240 : mpHandle{ pHandle }, mNum{ num }
241 {}

◆ ~ResourceHandle()

VSTWrapper::ResourceHandle::~ResourceHandle ( )
inline

Definition at line 252 of file VSTWrapper.h.

Member Function Documentation

◆ operator=()

ResourceHandle & VSTWrapper::ResourceHandle::operator= ( ResourceHandle &&  other)
inline

Definition at line 242 of file VSTWrapper.h.

243 {
244 if (this != &other) {
245 mpHandle = other.mpHandle;
246 mNum = other.mNum;
247 other.mpHandle = nullptr;
248 other.mNum = 0;
249 }
250 return *this;
251 }

References mpHandle.

◆ reset()

void VSTWrapper::ResourceHandle::reset ( )

Definition at line 232 of file VSTWrapper.cpp.

233{
234 if (mpHandle)
235 CFBundleCloseBundleResourceMap(mpHandle, mNum);
236 mpHandle = nullptr;
237 mNum = 0;
238}

References mNum, and mpHandle.

Referenced by VSTWrapper::ResetModuleAndHandle().

Here is the caller graph for this function:

Member Data Documentation

◆ mNum

CFBundleRefNum VSTWrapper::ResourceHandle::mNum {}

Definition at line 256 of file VSTWrapper.h.

Referenced by reset().

◆ mpHandle

CFBundleRef VSTWrapper::ResourceHandle::mpHandle {}

Definition at line 255 of file VSTWrapper.h.

Referenced by operator=(), and reset().


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