Searched defs:RefPtr (Results 1 - 7 of 7) sorted by relevance

/external/chromium_org/skia/ext/
H A Drefptr.h17 // skia::RefPtr<SkShader> shader = skia::AdoptRef(SkGradientShader::Create());
21 // pass around the skia::RefPtr instead of the raw pointer. An example method
23 // void AMethodThatSavesAShader(const skia::RefPtr<SkShader>& shader) {
26 // skia::RefPtr<SkShader> member_refptr_;
28 // When returning a ref-counted pointer, also return the skia::RefPtr instead.
30 // skia::RefPtr<SkShader> MakeAShader() {
38 // skia::RefPtr<SkShader> shader = skia::SharePtr(paint.getShader());
41 // AdoptRef() the raw pointer immediately into a skia::RefPtr and always work
42 // with skia::RefPtr instances instead, the ref-counting will be taken care of
45 class RefPtr { class in namespace:skia
47 RefPtr() : ptr_(NULL) {} function in class:skia::RefPtr
49 RefPtr(const RefPtr& other) function in class:skia::RefPtr
55 RefPtr(const RefPtr<U>& other) function in class:skia::RefPtr
98 explicit RefPtr(T* ptr) : ptr_(ptr) {} function in class:skia::RefPtr
[all...]
/external/clang/test/SemaTemplate/
H A Dinstantiate-default-assignment-operator.cpp3 template<typename T> struct RefPtr { struct
4 RefPtr& operator=(const RefPtr&) { int a[sizeof(T) ? -1 : -1];} // expected-error 2 {{array with a negative size}} argument
5 RefPtr& operator=(const PassRefPtr<T>&);
8 struct A { RefPtr<int> a; }; // expected-note {{instantiation of member function 'RefPtr<int>::operator=' requested here}}
9 struct B : RefPtr<float> { }; // expected-note {{in instantiation of member function 'RefPtr<float>::operator=' requested here}}
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DRefPtr.h21 // RefPtr and PassRefPtr are documented at http://webkit.org/coding/RefPtr.html
34 template<typename T> class RefPtr { class in namespace:WTF
36 ALWAYS_INLINE RefPtr() : m_ptr(0) { } function in class:WTF::RefPtr
37 ALWAYS_INLINE RefPtr(T* ptr) : m_ptr(ptr) { refIfNotNull(ptr); } function in class:WTF::RefPtr
38 ALWAYS_INLINE explicit RefPtr(T& ref) : m_ptr(&ref) { m_ptr->ref(); } function in class:WTF::RefPtr
39 ALWAYS_INLINE RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { refIfNotNull(m_ptr); } function in class:WTF::RefPtr
40 template<typename U> RefPtr(const RefPtr< function in class:WTF::RefPtr
46 RefPtr(HashTableDeletedValueType) : m_ptr(hashTableDeletedValue()) { } function in class:WTF::RefPtr
82 template<typename T> template<typename U> inline RefPtr<T>::RefPtr(const PassRefPtr<U>& o, EnsurePtrConvertibleArgDefn(U, T)) function in class:WTF::RefPtr
[all...]
H A DWeakPtr.h31 #include "wtf/RefPtr.h"
92 typedef RefPtr<WeakReference<T> > (WeakPtr::*UnspecifiedBoolType); typedef in class:WTF::WeakPtr
96 RefPtr<WeakReference<T> > m_ref;
126 RefPtr<WeakReference<T> > m_ref;
/external/clang/test/CodeGenCXX/
H A Dvtable-available-externally.cpp81 // PR9114, test that we don't try to instantiate RefPtr<Node>.
84 template <class T> struct RefPtr { struct in namespace:Test4
86 ~RefPtr() {
99 RefPtr<Node> m;
103 RefPtr<B> b;
/external/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/
H A Dp12.cpp15 template<typename> struct RefPtr { }; struct in namespace:test0
19 template<typename T> struct PtrHash<RefPtr<T> > : PtrHash<T*> {
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/
H A Dp5.cpp47 struct RefPtr { struct

Completed in 2811 milliseconds