Home
last modified time | relevance | path

Searched defs:SwigMovePointer (Results 1 – 3 of 3) sorted by relevance

/external/marisa-trie/bindings/perl/
Dmarisa-swig_wrap.cxx18 struct SwigMovePointer { struct in SwigValueWrapper
19 T *ptr;
20 SwigMovePointer(T *p) : ptr(p) { } in SwigMovePointer() argument
21 ~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 =()
/external/marisa-trie/bindings/ruby/
Dmarisa-swig_wrap.cxx17 struct SwigMovePointer { struct in SwigValueWrapper
18 T *ptr;
19 SwigMovePointer(T *p) : ptr(p) { } in SwigMovePointer() argument
20 ~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 =()
/external/marisa-trie/bindings/python/
Dmarisa-swig_wrap.cxx18 struct SwigMovePointer { struct in SwigValueWrapper
19 T *ptr;
20 SwigMovePointer(T *p) : ptr(p) { } in SwigMovePointer() argument
21 ~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 =()