Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros
VuoPool.hh File Reference

Description

VuoPool interface and implementation.

Classes

class  VuoKeyedPool< KeyType, InstanceType >
 A pool of shared objects — one object per key. More...
 

Macros

#define VUOKEYEDPOOL(keyType, instanceType)   extern VuoKeyedPool<keyType, instanceType> * instanceType ## Pool
 Declares a VuoKeyedPool instance.
 
#define VUOKEYEDPOOL_DEFINE(keyType, instanceType, allocate)   VuoKeyedPool<keyType, instanceType> * instanceType ## Pool = new VuoKeyedPool<keyType, instanceType>(#instanceType, allocate)
 Defines a VuoKeyedPool instance.
 

Macro Definition Documentation

#define VUOKEYEDPOOL (   keyType,
  instanceType 
)    extern VuoKeyedPool<keyType, instanceType> * instanceType ## Pool

Declares a VuoKeyedPool instance.

#define VUOKEYEDPOOL_DEFINE (   keyType,
  instanceType,
  allocate 
)    VuoKeyedPool<keyType, instanceType> * instanceType ## Pool = new VuoKeyedPool<keyType, instanceType>(#instanceType, allocate)

Defines a VuoKeyedPool instance.

Parameters
keyTypeThe C or C++ type to be used as this pool's key.
instanceTypeThe C or C++ type for this pool's objects.
allocateA callback function to allocate and initialize a shared object. The deallocation function (passed to VuoRegister in the allocate function) should call removeSharedInstance before deinitializing and deallocating the object.