Searched refs:Traits (Results 1 - 25 of 91) sorted by path

1234

/external/chromium_org/base/
H A Dlazy_instance.h5 // The LazyInstance<Type, Traits> class manages a single instance of Type,
123 template <typename Type, typename Traits = DefaultLazyInstanceTraits<Type> >
144 if (!Traits::kAllowedToAccessOnNonjoinableThread)
164 Traits::New(private_buf_.void_data()));
166 Traits::kRegisterOnExit ? OnExit : NULL);
199 LazyInstance<Type, Traits>* me =
200 reinterpret_cast<LazyInstance<Type, Traits>*>(lazy_instance);
201 Traits::Delete(me->instance());
H A Dscoped_generic.h54 template<typename T, typename Traits>
65 struct Data : public Traits {
67 Data(const T& in, const Traits& other) : Traits(other), generic(in) {}
73 typedef Traits traits_type;
110 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_));
136 Traits& get_traits() { return data_; }
137 const Traits& get_traits() const { return data_; }
158 template<class T, class Traits>
[all...]
/external/chromium_org/base/mac/
H A Dscoped_typeref.h18 // The Traits structure must provide the Retain and Release methods for type T.
48 template<typename T, typename Traits = ScopedTypeRefTraits<T>>
58 Traits::Retain(object_);
61 ScopedTypeRef(const ScopedTypeRef<T, Traits>& that)
64 Traits::Retain(object_);
69 Traits::Release(object_);
72 ScopedTypeRef& operator=(const ScopedTypeRef<T, Traits>& that) {
89 Traits::Retain(object);
91 Traits::Release(object_);
/external/chromium_org/base/memory/
H A Dref_counted.h149 template <class T, typename Traits> class RefCountedThreadSafe;
176 template <class T, typename Traits = DefaultRefCountedThreadSafeTraits<T> >
187 Traits::Destruct(static_cast<const T*>(this));
H A Dsingleton.h144 // The Singleton<Type, Traits, DifferentiatingType> class manages a single
193 // On every platform, if Traits::RAE is true, the singleton will be destroyed at
199 // If Traits::RAE is false, the singleton will not be freed at process exit,
200 // thus the singleton will be leaked if it is ever accessed. Traits::RAE
214 typename Traits = DefaultSingletonTraits<Type>,
232 if (!Traits::kAllowedToAccessOnNonjoinableThread)
251 Type* newval = Traits::New();
261 if (newval != NULL && Traits::kRegisterAtExit)
281 Traits::Delete(
288 template <typename Type, typename Traits, typenam
[all...]
H A Dsingleton_objc.h55 typename Traits = DefaultSingletonObjCTraits<Type>,
57 class SingletonObjC : public Singleton<Type, Traits, DifferentiatingType> {
/external/chromium_org/base/win/
H A Dscoped_handle.h33 template <class Traits, class Verifier>
38 typedef typename Traits::Handle Handle;
40 GenericScopedHandle() : handle_(Traits::NullHandle()) {}
42 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) {
47 GenericScopedHandle(RValue other) : handle_(Traits::NullHandle()) {
56 return Traits::IsHandleValid(handle_);
71 if (Traits::IsHandleValid(handle)) {
90 handle_ = Traits::NullHandle();
91 if (Traits::IsHandleValid(temp)) {
100 if (Traits
[all...]
/external/chromium_org/components/cloud_devices/common/
H A Ddescription_items.h25 // Traits should have following methods:
41 // Traits specifies how <VALUE> is stored in JSON and semantic validation.
42 template <class Option, class Traits>
79 // Traits specifies how <VALUE> is stored in JSON and semantic validation.
80 template <class Option, class Traits>
134 // Traits specifies how <VALUE> is stored in JSON and semantic validation.
135 template <class Traits>
158 // Traits specifies how <VALUE> is stored in JSON and semantic validation.
159 template <class Traits>
175 // Traits specifie
[all...]
H A Ddescription_items_inl.h19 template <class Option, class Traits>
20 ListCapability<Option, Traits>::ListCapability() {
24 template <class Option, class Traits>
25 ListCapability<Option, Traits>::~ListCapability() {
28 template <class Option, class Traits>
29 bool ListCapability<Option, Traits>::IsValid() const {
33 if (!Traits::IsValid(options_[i]))
39 template <class Option, class Traits>
40 bool ListCapability<Option, Traits>::LoadFrom(
44 description.GetListItem(Traits
[all...]
/external/chromium_org/mojo/public/cpp/bindings/
H A Darray.h26 Traits; typedef in class:mojo::Array
27 typedef typename Traits::ConstRefType ConstRefType;
28 typedef typename Traits::RefType RefType;
29 typedef typename Traits::StorageType StorageType;
30 typedef typename Traits::ForwardType ForwardType;
37 Traits::Initialize(&vec_);
39 ~Array() { Traits::Finalize(&vec_); }
63 Traits::Finalize(&vec_);
76 ConstRefType at(size_t offset) const { return Traits::at(&vec_, offset); }
79 RefType at(size_t offset) { return Traits
[all...]
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Darray_internal.h329 typedef ArrayDataTraits<T> Traits; typedef in class:mojo::internal::Array_Data
330 typedef typename Traits::StorageType StorageType;
331 typedef typename Traits::Ref Ref;
332 typedef typename Traits::ConstRef ConstRef;
338 if (num_elements > Traits::kMaxNumElements)
342 Traits::GetStorageSize(static_cast<uint32_t>(num_elements));
360 if (header->num_elements > Traits::kMaxNumElements ||
361 header->num_bytes < Traits::GetStorageSize(header->num_elements)) {
389 return Traits::ToRef(storage(), offset);
394 return Traits
[all...]
/external/chromium_org/ppapi/utility/
H A Dcompletion_callback_factory.h615 typedef internal::CallbackOutputTraits<Output> Traits; typedef in class:pp::CompletionCallbackFactory::DispatcherWithOutput0
620 Traits::Initialize(&output_);
625 Traits::Initialize(&output_);
628 // We must call Traits::StorageToPluginArg() even if we don't need to call
631 (object->*method_)(result, Traits::StorageToPluginArg(output_));
633 Traits::StorageToPluginArg(output_);
635 typename Traits::StorageType* output() {
641 typename Traits::StorageType output_;
668 typedef internal::CallbackOutputTraits<Output> Traits; typedef in class:pp::CompletionCallbackFactory::DispatcherWithOutput1
674 Traits
727 typedef internal::CallbackOutputTraits<Output> Traits; typedef in class:pp::CompletionCallbackFactory::DispatcherWithOutput2
793 typedef internal::CallbackOutputTraits<Output> Traits; typedef in class:pp::CompletionCallbackFactory::DispatcherWithOutput3
[all...]
/external/chromium_org/sync/internal_api/public/base/
H A Dordinal.h35 // The Traits class should look like the following:
57 template <typename Traits>
65 bool operator()(const Ordinal<Traits>& lhs,
66 const Ordinal<Traits>& rhs) const;
73 bool operator()(const Ordinal<Traits>& lhs,
74 const Ordinal<Traits>& rhs) const;
135 static const uint8 kZeroDigit = Traits::kZeroDigit;
136 static const uint8 kMaxDigit = Traits::kMaxDigit;
137 static const size_t kMinLength = Traits::kMinLength;
191 static Ordinal<Traits> CreateOrdinalBetwee
[all...]
H A Dordinal_unittest.cc260 template <typename Traits>
263 const Ordinal<Traits> ordinal1(ordinal_string1);
264 const Ordinal<Traits> ordinal2(ordinal_string2);
265 const Ordinal<Traits> between1 = ordinal1.CreateBetween(ordinal2);
266 const Ordinal<Traits> between2 = ordinal2.CreateBetween(ordinal1);
/external/chromium_org/sync/internal_api/public/util/
H A Dimmutable.h79 template <typename T, typename Traits>
81 : public base::RefCountedThreadSafe<ImmutableCore<T, Traits> > {
84 // primitive types and the case where Traits::Wrapper == T.
87 Traits::InitializeWrapper(&wrapper_);
91 Traits::InitializeWrapper(&wrapper_);
92 Traits::Swap(Traits::UnwrapMutable(&wrapper_), t);
96 return Traits::Unwrap(wrapper_);
101 Traits::DestroyWrapper(&wrapper_);
103 friend class base::RefCountedThreadSafe<ImmutableCore<T, Traits> >;
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DV8PersistentValueMap.h41 * A Traits class for v8::PersistentValueMap that uses wtf/HashMap as a
122 typedef V8PersistentValueMapTraits<KeyType, ValueType, is_weak> Traits; typedef in class:blink::V8PersistentValueMap
123 explicit V8PersistentValueMap(v8::Isolate* isolate) : v8::PersistentValueMap<KeyType, ValueType, Traits>(isolate) { }
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/
H A DV8TypedArrayCustom.h130 typedef TypedArrayTraits<TypedArray> Traits; typedef in class:blink::V8TypedArray
131 typedef typename Traits::V8Type V8Type;
155 v8::Local<v8::Object> wrapper = V8Type::New(v8Buffer.As<v8::ArrayBuffer>(), impl->byteOffset(), Traits::length(impl.get()));
164 ASSERT(Traits::IsInstance(object));
171 RefPtr<TypedArray> typedArray = TypedArray::create(arrayBuffer, view->ByteOffset(), Traits::length(view));
/external/chromium_org/third_party/WebKit/Source/platform/heap/
H A DHeap.h1590 template<typename T, typename Traits>
1593 CollectionBackingTraceTrait<WTF::ShouldBeTraced<Traits>::value, Traits::weakHandlingFlag, WTF::WeakPointersActWeak, T, Traits>::trace(visitor, t);
1630 template<typename T, typename Traits>
1632 typedef HeapVectorBacking<T, Traits> Type;
1763 typename Traits = HashTraits<Value> >
1764 class HeapHashCountedSet : public HashCountedSet<Value, HashFunctions, Traits, HeapAllocator> { };
1889 template<typename T, typename Traits>
1890 struct ThreadingTrait<HeapVectorBacking<T, Traits> > {
[all...]
H A DVisitor.h65 template<bool needsTracing, WTF::WeakHandlingFlag weakHandlingFlag, WTF::ShouldWeakPointersBeMarkedStrongly strongify, typename T, typename Traits> struct CollectionBackingTraceTrait;
487 template<typename T, typename Traits = WTF::VectorTraits<T> >
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DDefaultAllocator.h65 template<typename T, typename Traits>
136 template<typename T, typename Traits>
H A DHashCountedSet.h36 typename Traits = HashTraits<Value>,
40 typedef HashMap<Value, unsigned, HashFunctions, Traits, HashTraits<unsigned>, Allocator> ImplType;
137 template<typename Value, typename HashFunctions, typename Traits, typename Allocator, size_t inlineCapacity, typename VectorAllocator>
138 inline void copyToVector(const HashCountedSet<Value, HashFunctions, Traits, Allocator>& collection, Vector<Value, inlineCapacity, VectorAllocator>& vector)
140 typedef typename HashCountedSet<Value, HashFunctions, Traits, Allocator>::const_iterator iterator;
H A DHashSet.h168 template<typename Value, typename HashFunctions, typename Traits, typename Allocator>
169 inline bool HashSet<Value, HashFunctions, Traits, Allocator>::contains(ValuePeekInType value) const
174 template<typename Value, typename HashFunctions, typename Traits, typename Allocator>
176 typename HashSet<Value, HashFunctions, Traits, Allocator>::iterator
177 inline HashSet<Value, HashFunctions, Traits, Allocator>::find(const T& value) const
182 template<typename Value, typename HashFunctions, typename Traits, typename Allocator>
184 inline bool HashSet<Value, HashFunctions, Traits, Allocator>::contains(const T& value) const
195 template<typename Value, typename HashFunctions, typename Traits, typename Allocator>
197 inline typename HashSet<Value, HashFunctions, Traits, Allocator>::AddResult
198 HashSet<Value, HashFunctions, Traits, Allocato
[all...]
H A DHashTable.h92 template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits, typename Allocator>
94 template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits, typename Allocator>
96 template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits, typename Allocator>
105 template<typename Key, typename Value, typename Extractor, typename HashFunctions, typename Traits, typename KeyTraits, typename Allocator>
108 typedef HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator> HashTableType;
109 typedef HashTableIterator<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator> iterator;
110 typedef HashTableConstIterator<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator> const_iterator;
112 typedef typename Traits::IteratorConstGetType GetType;
115 friend class HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator>;
116 friend class HashTableIterator<Key, Value, Extractor, HashFunctions, Traits, KeyTrait
[all...]
H A DHashTraits.h206 template<typename Traits, bool hasEmptyValueFunction> struct HashTraitsEmptyValueChecker;
207 template<typename Traits> struct HashTraitsEmptyValueChecker<Traits, true> {
208 template<typename T> static bool isEmptyValue(const T& value) { return Traits::isEmptyValue(value); }
210 template<typename Traits> struct HashTraitsEmptyValueChecker<Traits, false> {
211 template<typename T> static bool isEmptyValue(const T& value) { return value == Traits::emptyValue(); }
213 template<typename Traits, typename T> inline bool isHashTraitsEmptyValue(const T& value)
215 return HashTraitsEmptyValueChecker<Traits, Traits
[all...]
H A DLinkedHashSet.h144 typedef TraitsArg Traits; typedef in class:WTF::LinkedHashSet
148 typedef LinkedHashSetTraits<Value, Traits, Allocator> NodeHashTraits;
331 typedef typename LinkedHashSetType::Traits Traits; typedef in class:WTF::LinkedHashSetIterator
373 typedef typename LinkedHashSetType::Traits Traits; typedef in class:WTF::LinkedHashSetConstIterator
613 template<typename Value, typename HashFunctions, typename Traits, typename Allocator>
614 typename LinkedHashSet<Value, HashFunctions, Traits, Allocator>::AddResult LinkedHashSet<Value, HashFunctions, Traits, Allocator>::add(ValuePeekInType value)

Completed in 9712 milliseconds

1234