dxd - dynax driver framework 2.6.0d184
cross platform open source driver development framework
Loading...
Searching...
No Matches
cf::dictionary<::CFDictionaryRef, cf_object_t > Class Template Reference

#include <cf_dictionary.h>

+ Inheritance diagram for cf::dictionary<::CFDictionaryRef, cf_object_t >:
+ Collaboration diagram for cf::dictionary<::CFDictionaryRef, cf_object_t >:

Public Member Functions

::CFDictionaryRef copy () const noexcept
 create immutable dictionary copy
 
::CFIndex count () const noexcept
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
constexpr dictionary (::CFDictionaryRef cf_dictionary, ::CFStringRef key=nullptr)
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
 dictionary (::CFStringRef key, ::CFPropertyListRef properties=nullptr, const ::CFDictionaryKeyCallBacks *key_callbacks=&string, const ::CFDictionaryValueCallBacks *value_callbacks=nullptr)
 
template<typename value_t , typename = enable_if_convertible<value_t>>
 dictionary (::CFStringRef key, value_t value)
 
 dictionary (const dictionary<::CFDictionaryRef > &copy)
 create a dictionary copy The keys and values from the dictionary are copied as pointers into the new dictionary. However, the keys and values are also retained by the new dictionary. The count of the new dictionary is the same as the count of cf_dictionary. The new dictionary uses the same callbacks as cf_dictionary.
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
 dictionary (const std::initializer_list< std::pair<::CFStringRef, ::CFPropertyListRef > > &key_value_pairs, const ::CFDictionaryKeyCallBacks *key_callbacks=&string, const ::CFDictionaryValueCallBacks *value_callbacks=nullptr)
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
 dictionary (const std::map<::CFStringRef, ::CFPropertyListRef > &key_value_pairs, const ::CFDictionaryKeyCallBacks *key_callbacks=&string, const ::CFDictionaryValueCallBacks *value_callbacks=nullptr)
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
 dictionary (const std::map<::CFStringRef, cf::type<> > &key_value_pairs, const ::CFDictionaryKeyCallBacks *key_callbacks=&string, const ::CFDictionaryValueCallBacks *value_callbacks=nullptr)
 
template<typename key_t , typename = enable_if_convertible<key_t>>
 dictionary (key_t key, ::CFPropertyListRef properties)
 
template<typename key_t , typename value_t , typename = enable_if_convertible<key_t>, typename = enable_if_convertible<value_t>>
 dictionary (key_t key, value_t value)
 
 dx_catchall_rethrow () const reference &retain() const noexcept
 
 dx_catchall_rethrow () operator array<>
 
 dx_catchall_rethrow () virtual operator bool() const
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
CFTypeID id () noexcept
 
referenceinitialize (cf_object_t cf_object, bool retain=true) try
 
 operator bool () const noexcept override
 
 operator cf_object_t () const noexcept
 
dx_catchall_rethrow() typedef std operator container () const try
 
template<typename value_t , typename = std::enable_if_t< is_convertible<value_t>() || is_compatible<value_t>(), value_t>>
 operator value_t () const
 
::CFPropertyListRef operator() (::CFPropertyListRef dflt) const noexcept
 
template<typename result_t , typename value_t = result_t, typename = enable_if_convertible<value_t>>
result_t operator() (const value_t &dflt) const noexcept
 
template<typename value_t , typename = enable_if_convertible<value_t>>
::CFPropertyListRef operator() (const value_t &dflt) const noexcept
 
 operator::CFArrayRef () const try
 
 operator::CFPropertyListRef () const
 
 operator::CFTypeID () const noexcept
 
bool operator== (::CFDictionaryRef dictionary) const noexcept
 
bool operator== (const dictionary &dictionary) const noexcept
 
referencerelease () noexcept
 

Static Public Member Functions

::CFTypeID id () noexcept
 

Static Protected Member Functions

static Boolean equal (const void *key1, const void *key2)
 

Protected Attributes

cf_object_t cf_object = nullptr
 
cf::type< const char * > key
 

Static Protected Attributes

static constexpr ::CFDictionaryKeyCallBacks string {.equal= &equal,}
 

Constructor & Destructor Documentation

◆ dictionary() [1/9]

template<typename cf_object_t >
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( const dictionary<::CFDictionaryRef > & copy)
inline

create a dictionary copy The keys and values from the dictionary are copied as pointers into the new dictionary. However, the keys and values are also retained by the new dictionary. The count of the new dictionary is the same as the count of cf_dictionary. The new dictionary uses the same callbacks as cf_dictionary.

https://developer.apple.com/documentation/corefoundation/1516796-cfdictionarycreatecopy?language=objc

◆ dictionary() [2/9]

template<typename cf_object_t >
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
constexpr cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( ::CFDictionaryRef cf_dictionary,
::CFStringRef key = nullptr )
inlineconstexpr

◆ dictionary() [3/9]

template<typename cf_object_t >
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( ::CFStringRef key,
::CFPropertyListRef properties = nullptr,
const ::CFDictionaryKeyCallBacks * key_callbacks = &string,
const ::CFDictionaryValueCallBacks * value_callbacks = nullptr )
inline

◆ dictionary() [4/9]

template<typename cf_object_t >
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( const std::map<::CFStringRef, ::CFPropertyListRef > & key_value_pairs,
const ::CFDictionaryKeyCallBacks * key_callbacks = &string,
const ::CFDictionaryValueCallBacks * value_callbacks = nullptr )
inline
+ Here is the call graph for this function:

◆ dictionary() [5/9]

template<typename cf_object_t >
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( const std::initializer_list< std::pair<::CFStringRef, ::CFPropertyListRef > > & key_value_pairs,
const ::CFDictionaryKeyCallBacks * key_callbacks = &string,
const ::CFDictionaryValueCallBacks * value_callbacks = nullptr )
inline
+ Here is the call graph for this function:

◆ dictionary() [6/9]

template<typename cf_object_t >
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <std::is_same_v<petty_t, ::CFDictionaryRef>>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( const std::map<::CFStringRef, cf::type<> > & key_value_pairs,
const ::CFDictionaryKeyCallBacks * key_callbacks = &string,
const ::CFDictionaryValueCallBacks * value_callbacks = nullptr )
inline
+ Here is the call graph for this function:

◆ dictionary() [7/9]

template<typename cf_object_t >
template<typename key_t , typename = enable_if_convertible<key_t>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( key_t key,
::CFPropertyListRef properties )
inline

◆ dictionary() [8/9]

template<typename cf_object_t >
template<typename value_t , typename = enable_if_convertible<value_t>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( ::CFStringRef key,
value_t value )
inline

◆ dictionary() [9/9]

template<typename cf_object_t >
template<typename key_t , typename value_t , typename = enable_if_convertible<key_t>, typename = enable_if_convertible<value_t>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::dictionary ( key_t key,
value_t value )
inline

Member Function Documentation

◆ copy()

template<typename cf_object_t >
::CFDictionaryRef cf::dictionary<::CFDictionaryRef, cf_object_t >::copy ( ) const
inlinenoexcept

create immutable dictionary copy

◆ count()

template<typename cf_object_t >
::CFIndex cf::reference< cf_object_t >::count ( ) const
inlinenoexceptinherited

◆ dx_catchall_rethrow() [1/3]

template<typename cf_object_t >
cf::reference< cf_object_t >::dx_catchall_rethrow ( ) const &
inlinenoexceptinherited

◆ dx_catchall_rethrow() [2/3]

template<typename cf_object_t >
cf::dictionary<::CFDictionaryRef, cf_object_t >::dx_catchall_rethrow ( )
inline

◆ dx_catchall_rethrow() [3/3]

template<typename cf_object_t >
cf::reference< cf_object_t >::dx_catchall_rethrow ( ) const
inlineinherited
+ Here is the call graph for this function:

◆ equal()

template<typename cf_object_t >
static Boolean cf::dictionary<::CFDictionaryRef, cf_object_t >::equal ( const void * key1,
const void * key2 )
inlinestaticprotected

◆ id() [1/21]

template<typename cf_object_t >
::CFTypeID cf::reference< cf_object_t >::id ( )
staticnoexceptinherited
+ Here is the caller graph for this function:

◆ id() [2/21]

CFTypeID cf::reference<::CFDictionaryRef >::id ( )
inlinenoexceptinherited

◆ id() [3/21]

CFTypeID cf::reference<::CFMutableDictionaryRef >::id ( )
inlinenoexceptinherited

◆ id() [4/21]

CFTypeID cf::reference<::CFNumberRef >::id ( )
inlinenoexceptinherited

◆ id() [5/21]

CFTypeID cf::reference<::CFStringRef >::id ( )
inlinenoexceptinherited

◆ id() [6/21]

CFTypeID cf::reference<::CFMutableStringRef >::id ( )
inlinenoexceptinherited

◆ id() [7/21]

CFTypeID cf::reference<::CFArrayRef >::id ( )
inlinenoexceptinherited

◆ id() [8/21]

CFTypeID cf::reference<::CFMutableArrayRef >::id ( )
inlinenoexceptinherited

◆ id() [9/21]

CFTypeID cf::reference<::CFURLRef >::id ( )
inlinenoexceptinherited

◆ id() [10/21]

CFTypeID cf::reference<::CFBundleRef >::id ( )
inlinenoexceptinherited

◆ id() [11/21]

CFTypeID cf::reference<::CFDataRef >::id ( )
inlinenoexceptinherited

◆ id() [12/21]

CFTypeID cf::reference<::CFUUIDRef >::id ( )
inlinenoexceptinherited

◆ id() [13/21]

CFTypeID cf::reference<::CFReadStreamRef >::id ( )
inlinenoexceptinherited

◆ id() [14/21]

CFTypeID cf::reference<::CFRunLoopRef >::id ( )
inlinenoexceptinherited

◆ id() [15/21]

CFTypeID cf::reference<::CFRunLoopSourceRef >::id ( )
inlinenoexceptinherited

◆ id() [16/21]

CFTypeID cf::reference<::CFRunLoopObserverRef >::id ( )
inlinenoexceptinherited

◆ id() [17/21]

CFTypeID cf::reference<::CFErrorRef >::id ( )
inlinenoexceptinherited

◆ id() [18/21]

CFTypeID cf::reference<::CFBooleanRef >::id ( )
inlinenoexceptinherited

◆ id() [19/21]

CFTypeID cf::reference<::CFTypeRef >::id ( )
inlinenoexceptinherited

◆ id() [20/21]

CFTypeID cf::reference<::SCPreferencesRef >::id ( )
inlinenoexceptinherited

◆ id() [21/21]

CFTypeID cf::reference<::SecCertificateRef >::id ( )
inlinenoexceptinherited

◆ initialize()

template<typename cf_object_t >
reference & cf::reference< cf_object_t >::initialize ( cf_object_t cf_object,
bool retain = true )
inlineinherited
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator bool()

template<typename cf_object_t >
cf::dictionary<::CFDictionaryRef, cf_object_t >::operator bool ( ) const
inlineoverridenoexcept

◆ operator cf_object_t()

template<typename cf_object_t >
cf::reference< cf_object_t >::operator cf_object_t ( ) const
inlinenoexceptinherited

◆ operator container()

template<typename cf_object_t >
dx_catchall_rethrow() typedef std cf::dictionary<::CFDictionaryRef, cf_object_t >::operator container ( ) const
inline
+ Here is the call graph for this function:

◆ operator value_t()

template<typename cf_object_t >
template<typename value_t , typename = std::enable_if_t< is_convertible<value_t>() || is_compatible<value_t>(), value_t>>
cf::dictionary<::CFDictionaryRef, cf_object_t >::operator value_t ( ) const
inline

◆ operator()() [1/3]

template<typename cf_object_t >
::CFPropertyListRef cf::dictionary<::CFDictionaryRef, cf_object_t >::operator() ( ::CFPropertyListRef dflt) const
inlinenoexcept

◆ operator()() [2/3]

template<typename cf_object_t >
template<typename result_t , typename value_t = result_t, typename = enable_if_convertible<value_t>>
result_t cf::dictionary<::CFDictionaryRef, cf_object_t >::operator() ( const value_t & dflt) const
inlinenoexcept

◆ operator()() [3/3]

template<typename cf_object_t >
template<typename value_t , typename = enable_if_convertible<value_t>>
::CFPropertyListRef cf::dictionary<::CFDictionaryRef, cf_object_t >::operator() ( const value_t & dflt) const
inlinenoexcept

◆ operator::CFArrayRef()

template<typename cf_object_t >
cf::dictionary<::CFDictionaryRef, cf_object_t >::operator::CFArrayRef ( ) const
inline

◆ operator::CFPropertyListRef()

template<typename cf_object_t >
cf::dictionary<::CFDictionaryRef, cf_object_t >::operator::CFPropertyListRef ( ) const
inline

◆ operator::CFTypeID()

template<typename cf_object_t >
cf::reference< cf_object_t >::operator::CFTypeID ( ) const
inlineexplicitnoexceptinherited

◆ operator==() [1/2]

template<typename cf_object_t >
bool cf::dictionary<::CFDictionaryRef, cf_object_t >::operator== ( ::CFDictionaryRef dictionary) const
inlinenoexcept
+ Here is the call graph for this function:

◆ operator==() [2/2]

template<typename cf_object_t >
bool cf::dictionary<::CFDictionaryRef, cf_object_t >::operator== ( const dictionary<::CFDictionaryRef, cf_object_t > & dictionary) const
inlinenoexcept
+ Here is the call graph for this function:

◆ release()

template<typename cf_object_t >
reference & cf::reference< cf_object_t >::release ( )
inlinenoexceptinherited
+ Here is the caller graph for this function:

Member Data Documentation

◆ cf_object

template<typename cf_object_t >
cf_object_t cf::reference< cf_object_t >::cf_object = nullptr
protectedinherited

◆ key

template<typename cf_object_t >
cf::type<const char*> cf::dictionary<::CFDictionaryRef, cf_object_t >::key
protected

◆ string

template<typename cf_object_t >
constexpr ::CFDictionaryKeyCallBacks cf::dictionary<::CFDictionaryRef, cf_object_t >::string {.equal= &equal,}
staticprotected

The documentation for this class was generated from the following file:

(c) copyright 2009 dynamic acoustics e.U. generated on Tue Dec 16 2025

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.