11 #ifndef __UT_PtrProxy__
12 #define __UT_PtrProxy__
21 template <
typename utObj>
63 int getId()
const {
return myId; }
65 operator const utObj *()
const
68 return (
const utObj *)
v;
92 template <
typename utObj>
162 operator const utObj *()
const
167 return static_cast<const utObj *
>(
v);
176 return static_cast<utObj *
>(
v);
static int isValid(int id)
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
void reset(const UT_PtrProxy< utObj > &ptr)
static int allocProxy(void *ptr)
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
static void deReferenceProxy(int id)
static void referenceProxy(int id)
unsigned int getReferences() const
static void * lookupProxy(int id)
UT_RefProxy(const UT_PtrProxy< utObj > &ptr)
static unsigned getReferenceCount(int id)
UT_PtrProxy< utObj > & operator=(const UT_PtrProxy< utObj > ©)=delete
static void freeProxy(int &id)
UT_RefProxy< utObj > & operator=(const UT_RefProxy< utObj > ©)
UT_RefProxy(UT_RefProxy< utObj > &&src)
UT_PtrProxy< utObj > & operator=(UT_PtrProxy< utObj > &&src)
UT_RefProxy< utObj > & operator=(UT_RefProxy< utObj > &&src)
void reset(int id=UT_ProxyPointer::nullId())
UT_RefProxy(const UT_RefProxy< utObj > ©)
static void swizzlePointer(int id, void *ptr)
UT_PtrProxy(UT_PtrProxy< utObj > &&src)