Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 617) sorted by relevance

12345678910>>...25

/external/webkit/JavaScriptCore/wtf/
DVector.h66 template <bool needsDestruction, typename T>
69 template<typename T>
70 struct VectorDestructor<false, T>
72 static void destruct(T*, T*) {}
75 template<typename T>
76 struct VectorDestructor<true, T>
78 static void destruct(T* begin, T* end)
80 for (T* cur = begin; cur != end; ++cur)
81 cur->~T();
85 template <bool needsInitialization, bool canInitializeWithMemset, typename T>
[all …]
DRefPtr.h32 template <typename T> class PassRefPtr;
36 template <typename T> class RefPtr : public FastAllocBase {
39 RefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } in RefPtr()
40 RefPtr(const RefPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->ref(); } in RefPtr()
51 ~RefPtr() { if (T* ptr = m_ptr) ptr->deref(); } in ~RefPtr()
53 …template <typename U> RefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { if (T* ptr = m_ptr) ptr->ref()… in RefPtr()
55 T* get() const { return m_ptr; } in get()
57 void clear() { if (T* ptr = m_ptr) ptr->deref(); m_ptr = 0; } in clear()
58 PassRefPtr<T> release() { PassRefPtr<T> tmp = adoptRef(m_ptr); m_ptr = 0; return tmp; } in release()
60 T& operator*() const { return *m_ptr; }
[all …]
DFastAllocBase.h123 template <typename T>
124 inline T* fastNew() in fastNew()
126 void* p = fastMalloc(sizeof(T)); in fastNew()
132 return ::new(p) T; in fastNew()
135 template <typename T, typename Arg1>
136 inline T* fastNew(Arg1 arg1) in fastNew()
138 void* p = fastMalloc(sizeof(T)); in fastNew()
144 return ::new(p) T(arg1); in fastNew()
147 template <typename T, typename Arg1, typename Arg2>
148 inline T* fastNew(Arg1 arg1, Arg2 arg2) in fastNew()
[all …]
DPassRefPtr.h28 template<typename T> class RefPtr;
29 template<typename T> class PassRefPtr;
30 template <typename T> PassRefPtr<T> adoptRef(T*);
32 template<typename T> class PassRefPtr {
35 PassRefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } in PassRefPtr()
46 PassRefPtr(const RefPtr<U>& o) : m_ptr(o.get()) { if (T* ptr = m_ptr) ptr->ref(); } in PassRefPtr()
48 T* get() const { return m_ptr; } in get()
50 void clear() { if (T* ptr = m_ptr) ptr->deref(); m_ptr = 0; } in clear()
51 T* releaseRef() const { T* tmp = m_ptr; m_ptr = 0; return tmp; } in releaseRef()
53 T& operator*() const { return *m_ptr; }
[all …]
DDeque.h40 template<typename T> class DequeIteratorBase;
41 template<typename T> class DequeIterator;
42 template<typename T> class DequeConstIterator;
43 template<typename T> class DequeReverseIterator;
44 template<typename T> class DequeConstReverseIterator;
46 template<typename T>
49 typedef DequeIterator<T> iterator;
50 typedef DequeConstIterator<T> const_iterator;
51 typedef DequeReverseIterator<T> reverse_iterator;
52 typedef DequeConstReverseIterator<T> const_reverse_iterator;
[all …]
DThreadSpecific.h62 template<typename T> class ThreadSpecific : public Noncopyable {
65 T* operator->();
66 operator T*();
67 T& operator*();
75 T* get();
76 void set(T*);
81 Data(T* value, ThreadSpecific<T>* owner) : value(value), owner(owner) {} in Data()
83 T* value;
84 ThreadSpecific<T>* owner;
101 template<typename T>
[all …]
DHashSet.h33 template<typename T> struct IdentityExtractor;
72 template<typename T, typename HashTranslator> iterator find(const T&);
73 template<typename T, typename HashTranslator> const_iterator find(const T&) const;
74 template<typename T, typename HashTranslator> bool contains(const T&) const;
86 template<typename T, typename HashTranslator> pair<iterator, bool> add(const T&);
98 template<typename T> struct IdentityExtractor {
99 static const T& extract(const T& t) { return t; } in extract()
102 template<typename ValueType, typename ValueTraits, typename T, typename Translator>
104 static unsigned hash(const T& key) { return Translator::hash(key); } in hash()
105 static bool equal(const ValueType& a, const T& b) { return Translator::equal(a, b); } in equal()
[all …]
DPassOwnPtr.h37 template <typename T> class OwnPtr;
39 template <typename T> class PassOwnPtr {
41 typedef typename RemovePointer<T>::Type ValueType;
68 PassOwnPtr& operator=(T*);
69 PassOwnPtr& operator=(const PassOwnPtr<T>&);
76 template <typename T> inline PassOwnPtr<T>& PassOwnPtr<T>::operator=(T* optr)
78 T* ptr = m_ptr;
86 template <typename T> inline PassOwnPtr<T>& PassOwnPtr<T>::operator=(const PassOwnPtr<T>& optr)
88 T* ptr = m_ptr;
96 …template <typename T> template <typename U> inline PassOwnPtr<T>& PassOwnPtr<T>::operator=(const P…
[all …]
/external/tesseract/ccutil/
Dgenericvector.h28 template <typename T>
39 GenericVector<T> &operator+=(const GenericVector& other);
40 GenericVector<T> &operator=(const GenericVector& other);
67 T &get(int index) const;
68 T &operator[](int index) const;
73 int get_index(T object) const;
76 bool contains(T object) const;
79 T contains_index(int index) const;
82 int push_back(T object);
83 void operator+=(T t);
[all …]
Dunicity_table.h32 template <typename T>
47 T get(int id) const;
52 int get_id(T object) const;
55 bool contains(T object) const;
58 T contains_id(int id) const;
61 int push_back(T object);
65 void set_clear_callback(Callback1<T>* cb);
69 void set_compare_callback(ResultCallback2<bool, T const &, T const &>* cb);
79 void move(UnicityTable<T>* from);
84 void write(FILE* f, Callback2<FILE*, T const &>* cb);
[all …]
/external/webkit/WebCore/platform/
DDeprecatedPtrList.h33 template <class T> class DeprecatedPtrListIterator;
35 template <class T> class DeprecatedPtrList {
47 T *at(unsigned n) { return (T *)impl.at(n); } in at()
49 bool insert(unsigned n, const T *item) { return impl.insert(n, item); } in insert()
52 bool remove(const T *item) { return impl.removeRef(item, del_item); } in remove()
55 bool removeRef(const T *item) { return impl.removeRef(item, del_item); } in removeRef()
57 T *getFirst() const { return (T *)impl.getFirst(); } in getFirst()
58 T *getLast() const { return (T *)impl.getLast(); } in getLast()
59 T *getNext() const { return (T *)impl.getNext(); } in getNext()
60 T *getPrev() const { return (T *)impl.getPrev(); } in getPrev()
[all …]
DCrossThreadCopier.h50 template<typename T> struct CrossThreadCopierPassThrough {
51 typedef T Type;
52 static Type copy(const T& parameter) in copy()
58 template<bool isConvertibleToInteger, typename T> struct CrossThreadCopierBase;
61 …template<typename T> struct CrossThreadCopierBase<true, T> : public CrossThreadCopierPassThrough<T
65 …template<typename T> struct CrossThreadCopierBase<false, T*> : public CrossThreadCopierPassThrough…
69 template<typename T> struct CrossThreadCopierBase<false, RefPtr<ThreadSafeShared<T> > > {
70 typedef PassRefPtr<T> Type;
71 static Type copy(const RefPtr<ThreadSafeShared<T> >& refPtr)
73 return PassRefPtr<T>(static_cast<T*>(refPtr.get()));
[all …]
/external/webkit/V8Binding/v8/src/
Dtoken.h50 #define TOKEN_LIST(T, K, F) \ argument
52 T(EOS, "EOS", 0) \
55 T(LPAREN, "(", 0) \
56 T(RPAREN, ")", 0) \
57 T(LBRACK, "[", 0) \
58 T(RBRACK, "]", 0) \
59 T(LBRACE, "{", 0) \
60 T(RBRACE, "}", 0) \
61 T(COLON, ":", 0) \
62 T(SEMICOLON, ";", 0) \
[all …]
Dutils.h40 template <typename T>
41 static inline bool IsPowerOf2(T x) { in IsPowerOf2()
57 template <typename T>
58 static inline intptr_t OffsetFrom(T x) { in OffsetFrom()
59 return x - static_cast<T>(0); in OffsetFrom()
66 template <typename T>
67 static inline T AddressFrom(intptr_t x) { in AddressFrom()
68 return static_cast<T>(0) + x; in AddressFrom()
73 template <typename T>
74 static inline T RoundDown(T x, int m) { in RoundDown()
[all …]
Dlist-inl.h37 template<typename T, class P>
38 void List<T, P>::Add(const T& element) { in Add()
42 List<T, P>::ResizeAdd(element); in Add()
47 template<typename T, class P>
48 void List<T, P>::AddAll(const List<T, P>& other) { in AddAll() argument
60 template<typename T, class P>
61 void List<T, P>::ResizeAdd(const T& element) { in ResizeAdd()
66 template<typename T, class P>
67 void List<T, P>::ResizeAddInternal(const T& element) { in ResizeAddInternal()
74 T temp = element; in ResizeAddInternal()
[all …]
/external/skia/include/core/
DSkTemplates.h36 template <typename T, void (*P)(T*)> class SkAutoTCallVProc : SkNoncopyable {
38 SkAutoTCallVProc(T* obj): fObj(obj) {} in SkAutoTCallVProc()
40 T* detach() { T* obj = fObj; fObj = NULL; return obj; } in detach()
42 T* fObj;
53 template <typename T, int (*P)(T*)> class SkAutoTCallIProc : SkNoncopyable {
55 SkAutoTCallIProc(T* obj): fObj(obj) {} in SkAutoTCallIProc()
57 T* detach() { T* obj = fObj; fObj = NULL; return obj; } in detach()
59 T* fObj;
62 template <typename T> class SkAutoTDelete : SkNoncopyable {
64 SkAutoTDelete(T* obj) : fObj(obj) {} in SkAutoTDelete()
[all …]
DSkTDArray.h22 template <typename T> class SkTDArray {
31 SkTDArray(const T src[], size_t count) { in SkTDArray()
40 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray()
44 memcpy(fArray, src, sizeof(T) * count); in SkTDArray()
48 SkTDArray(const SkTDArray<T>& src) { in SkTDArray()
54 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
61 SkTDArray<T>& operator=(const SkTDArray<T>& src) {
64 SkTDArray<T> tmp(src.fArray, src.fCount);
67 memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
74 friend int operator==(const SkTDArray<T>& a, const SkTDArray<T>& b) {
[all …]
/external/webkit/JavaScriptCore/API/
DJSRetainPtr.h40 template <typename T> class JSRetainPtr {
43 JSRetainPtr(T ptr) : m_ptr(ptr) { if (ptr) JSRetain(ptr); } in JSRetainPtr()
45 JSRetainPtr(AdoptTag, T ptr) : m_ptr(ptr) { } in JSRetainPtr()
47 JSRetainPtr(const JSRetainPtr& o) : m_ptr(o.m_ptr) { if (T ptr = m_ptr) JSRetain(ptr); } in JSRetainPtr()
49 ~JSRetainPtr() { if (T ptr = m_ptr) JSRelease(ptr); } in ~JSRetainPtr()
51 …template <typename U> JSRetainPtr(const JSRetainPtr<U>& o) : m_ptr(o.get()) { if (T ptr = m_ptr) J… in JSRetainPtr()
53 T get() const { return m_ptr; } in get()
55 T releaseRef() { T tmp = m_ptr; m_ptr = 0; return tmp; } in releaseRef()
57 T operator->() const { return m_ptr; }
62 typedef T JSRetainPtr::*UnspecifiedBoolType;
[all …]
/external/opencore/oscl/oscl/osclproc/src/
Doscl_double_list.inl19 template <class T>
20 OSCL_INLINE OsclDoubleList<T>::OsclDoubleList()
22 template <class T>
23 OSCL_INLINE OsclDoubleList<T>::OsclDoubleList(int32 anOffset)
26 template <class T>
27 OSCL_INLINE void OsclDoubleList<T>::InsertHead(T &aRef)
31 template <class T>
32 OSCL_INLINE void OsclDoubleList<T>::InsertTail(T &aRef)
36 template <class T>
37 OSCL_INLINE bool OsclDoubleList<T>::IsHead(const T *aPtr) const
[all …]
/external/expat/xmlwf/
Dxmlwf.c25 #define NSSEP T('\001')
33 case T('&'): in characterData()
34 fputts(T("&amp;"), fp); in characterData()
36 case T('<'): in characterData()
37 fputts(T("&lt;"), fp); in characterData()
39 case T('>'): in characterData()
40 fputts(T("&gt;"), fp); in characterData()
44 fputts(T("&#xD;"), fp); in characterData()
47 case T('"'): in characterData()
48 fputts(T("&quot;"), fp); in characterData()
[all …]
/external/webkit/WebCore/dom/
DDocPtr.h27 template <class T> class DocPtr {
30 DocPtr(T *ptr) : m_ptr(ptr) { if (ptr) ptr->selfOnlyRef(); } in DocPtr()
31 DocPtr(const DocPtr &o) : m_ptr(o.m_ptr) { if (T *ptr = m_ptr) ptr->selfOnlyRef(); } in DocPtr()
32 ~DocPtr() { if (T *ptr = m_ptr) ptr->selfOnlyDeref(); } in ~DocPtr()
34 …template <class U> DocPtr(const DocPtr<U> &o) : m_ptr(o.get()) { if (T *ptr = m_ptr) ptr->selfOnly… in DocPtr()
36 void resetSkippingRef(T *o) { m_ptr = o; } in resetSkippingRef()
38 T *get() const { return m_ptr; } in get()
40 T &operator*() const { return *m_ptr; }
41 T *operator->() const { return m_ptr; }
48 typedef T * (DocPtr::*UnspecifiedBoolType)() const;
[all …]
/external/webkit/WebCore/platform/win/
DCOMPtr.h47 template <typename T> class COMPtr {
50 COMPtr(T* ptr) : m_ptr(ptr) { if (m_ptr) m_ptr->AddRef(); } in COMPtr()
51 COMPtr(AdoptCOMTag, T* ptr) : m_ptr(ptr) { } in COMPtr()
52 COMPtr(const COMPtr& o) : m_ptr(o.m_ptr) { if (T* ptr = m_ptr) ptr->AddRef(); } in COMPtr()
65 T* get() const { return m_ptr; } in get()
66 T* releaseRef() { T* tmp = m_ptr; m_ptr = 0; return tmp; } in releaseRef()
68 T& operator*() const { return *m_ptr; }
69 T* operator->() const { return m_ptr; }
71 T** operator&() { ASSERT(!m_ptr); return &m_ptr; }
76 typedef T* (COMPtr::*UnspecifiedBoolType)() const;
[all …]
/external/opencore/oscl/oscl/osclbase/src/
Doscl_exclusive_ptr.h68 template<class T> class OsclExclusivePtr
71 T* _Ptr;
79 explicit OsclExclusivePtr(T* inPtr = 0) : _Ptr(inPtr) {}; in _Ptr()
88 OsclExclusivePtr(OsclExclusivePtr<T>& _Y): _Ptr(_Y.release()) {}; in OsclExclusivePtr()
104 OsclExclusivePtr<T>& operator=(OsclExclusivePtr<T>& _Y)
135 T& operator*() const
147 T *operator->() const
156 T *get() const in get()
166 T *release() in release()
168 T *tmp = _Ptr; in release()
[all …]
/external/webkit/JavaScriptCore/runtime/
DProtect.h66 template <class T> class ProtectedPtr {
69 ProtectedPtr(T* ptr);
75 T* get() const { return m_ptr; } in get()
76 operator T*() const { return m_ptr; }
78 T* operator->() const { return m_ptr; }
84 ProtectedPtr& operator=(T*);
87 T* m_ptr;
113 template <class T> inline ProtectedPtr<T>::ProtectedPtr(T* ptr) in ProtectedPtr()
119 template <class T> inline ProtectedPtr<T>::ProtectedPtr(const ProtectedPtr& o) in ProtectedPtr()
125 template <class T> inline ProtectedPtr<T>::~ProtectedPtr() in ~ProtectedPtr()
[all …]
/external/opencore/oscl/oscl/osclmemory/src/
Doscl_mem.h173 #define OSCL_CLEANUP_BASE_CLASS(T) _OSCL_CLEANUP_BASE_CLASS(T) argument
193 #define OSCL_ALLOC_NEW(T_allocator, T, params) new(T_allocator.allocate(1)) T params argument
195 #define OSCL_ALLOC_NEW(T_allocator, T, params) new(T_allocator.allocate_fl(1,__FILE__,__LINE__)) T argument
197 #define OSCL_ALLOC_NEW(T_allocator, T, params) new(T_allocator.allocate(1)) T params argument
222 …SCL_TRAP_ALLOC_NEW(T_ptr,T_allocator,T,params) _OSCL_TRAP_NEW(T_allocator.allocate(1),T_allocator.… argument
224 …LOC_NEW(T_ptr,T_allocator,T,params) _OSCL_TRAP_NEW(T_allocator.allocate_fl(1,__FILE__,__LINE__),T_… argument
226 …SCL_TRAP_ALLOC_NEW(T_ptr,T_allocator,T,params) _OSCL_TRAP_NEW(T_allocator.allocate(1),T_allocator.… argument
238 #define OSCL_ALLOC_DELETE(ptr, T_allocator, T) \ argument
240 ptr->~T();\
516 #define OSCL_NEW( T, params) new T params argument
[all …]

12345678910>>...25