Lines Matching refs:TYPE
456 // this class just serves as a namespace so TYPE::moveReferences can stay
464 template <typename TYPE>
466 virtual size_t getReferenceTypeSize() const { return sizeof( sp<TYPE> ); }
468 sp<TYPE> const* sptr(reinterpret_cast<sp<TYPE> const*>(p));
469 return static_cast<typename TYPE::basetype *>(sptr->get());
473 template <typename TYPE>
475 virtual size_t getReferenceTypeSize() const { return sizeof( wp<TYPE> ); }
477 wp<TYPE> const* sptr(reinterpret_cast<wp<TYPE> const*>(p));
478 return static_cast<typename TYPE::basetype *>(sptr->unsafe_get());
483 template<typename TYPE> static inline
484 void move_references(sp<TYPE>* d, sp<TYPE> const* s, size_t n) {
485 memmove(d, s, n*sizeof(sp<TYPE>));
486 StrongReferenceCast<TYPE> caster;
487 TYPE::moveReferences(d, s, n, caster);
489 template<typename TYPE> static inline
490 void move_references(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
491 memmove(d, s, n*sizeof(wp<TYPE>));
492 WeakReferenceCast<TYPE> caster;
493 TYPE::moveReferences(d, s, n, caster);
504 template<typename TYPE> inline
505 void move_forward_type(sp<TYPE>* d, sp<TYPE> const* s, size_t n) {
509 template<typename TYPE> inline
510 void move_backward_type(sp<TYPE>* d, sp<TYPE> const* s, size_t n) {
514 template<typename TYPE> inline
515 void move_forward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
519 template<typename TYPE> inline
520 void move_backward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {