Searched defs:SwigMovePointer (Results 1 – 3 of 3) sorted by relevance
18 struct SwigMovePointer { struct in SwigValueWrapper19 T *ptr;20 SwigMovePointer(T *p) : ptr(p) { } in SwigMovePointer() argument21 ~SwigMovePointer() { delete ptr; } in ~SwigMovePointer()22 …ointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } in operator =()
17 struct SwigMovePointer { struct in SwigValueWrapper18 T *ptr;19 SwigMovePointer(T *p) : ptr(p) { } in SwigMovePointer() function20 ~SwigMovePointer() { delete ptr; } in ~SwigMovePointer()21 …ointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } in operator =()