|
Ardour
9.2-79-gba93f2fe52
|
#include <private.h>
Public Types | |
| typedef void(* | DestructorFunc) (void *) |
Public Member Functions | |
| Private (DestructorFunc destructor_func=&Private< T >::delete_ptr) | |
| T * | get () |
| void | set (T *data) |
| void | replace (T *data) |
Static Public Member Functions | |
| static void | delete_ptr (void *data) |
Private Member Functions | |
| Private (Private< T > const &)=delete | |
| Private< T > & | operator= (Private< T > const &)=delete |
Private Attributes | |
| GPrivate | _gobjext |
| typedef void(* PBD::Private< T >::DestructorFunc) (void *) |
|
inlineexplicit |
| destructor_func | Function pointer, or 0. If destructor_func is not 0 and the stored data pointer is not 0, this function is called when replace() is called and when the thread exits. |
|
privatedelete |
|
inlinestatic |
|
inline |
|
privatedelete |
|
inline |
Sets the pointer in the calling thread and calls destructor_func(). If a function pointer (and not 0) was specified in the constructor, and the stored data pointer before the call to replace() is not 0, then destructor_func() is called with this old pointer value.
@newin{2,32}
|
inline |
|
private |