Searched refs:CFNumberTraits (Results 1 – 1 of 1) sorted by relevance
64 template<typename NumberType> struct CFNumberTraits { static const unsigned Type; }; argument65 template<> struct CFNumberTraits<int> { static const unsigned Type = kCFNumberSInt32Type; }; argument66 template<> struct CFNumberTraits<LONGLONG> { static const unsigned Type = kCFNumberLongLongType; }; struct67 template<> struct CFNumberTraits<float> { static const unsigned Type = kCFNumberFloat32Type; }; argument83 CFNumberGetValue(static_cast<CFNumberRef>(value), CFNumberTraits<NumberType>::Type, &val); in numberValueForPreferencesValue()93 …return RetainPtr<CFNumberRef>(AdoptCF, CFNumberCreate(0, CFNumberTraits<NumberType>::Type, &value)… in cfNumber()