Home | History | Annotate | Download | only in core

Lines Matching defs:const

26 template<typename T> inline void sk_ignore_unused_variable(const T&) { }
29 * SkTIsConst<T>::value is true if the type T is const.
34 static uint16_t test(const volatile void*);
36 static const bool value = (sizeof(uint16_t) == sizeof(test(t)));
40 /** SkTConstType<T, CONST>::type will be 'const T' if CONST is true, 'T' otherwise. */
41 template <typename T, bool CONST> struct SkTConstType {
45 typedef const T type;
60 // The intermediate char* has the same const-ness as D as this produces better error messages.
116 T* get() const { return fObj; }
117 T& operator*() const { SkASSERT(fObj); return *fObj; }
118 T* operator->() const { SkASSERT(fObj); return fObj; }
160 T* get() const { return fObj; }
161 T& operator*() const { SkASSERT(fObj); return *fObj; }
162 T* operator->() const { SkASSERT(fObj); return fObj; }
173 T* get() const { return fArray; }
218 T* get() const { return fArray; }
222 T& operator[](int index) const {
289 int count() const { return fCount; }
293 T* get() const { return fArray; }
297 T& operator[](int index) const {
339 T* get() const { return fPtr; }
345 operator const T*() const {
353 const T& operator[](int index) const {
409 T* get() const { return fPtr; }
415 operator const T*() const {
423 const T& operator[](int index) const {