dxd - dynax driver framework 2.6.0d210
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 () operator array<>
 dx_catchall_rethrow () const reference &retain() const noexcept
 dx_catchall_rethrow () reference &operator
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
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 value_t, typename = enable_if_convertible<value_t>>
::CFPropertyListRef operator() (const value_t &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
 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
string 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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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>>>
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
Here is the call graph for this function:

◆ 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

◆ 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

◆ 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

◆ 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
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:

Member Function Documentation

◆ copy()

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

create immutable dictionary copy

Here is the caller graph for this function:

◆ count()

template<typename cf_object_t>
::CFIndex cf::reference< cf_object_t >::count ( ) const
inlinenoexceptinherited
Here is the caller graph for this function:

◆ dx_catchall_rethrow() [1/3]

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

◆ dx_catchall_rethrow() [2/3]

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

◆ dx_catchall_rethrow() [3/3]

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

◆ equal()

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

◆ id() [1/24]

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

◆ id() [2/24]

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

◆ id() [3/24]

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

◆ id() [4/24]

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

◆ id() [5/24]

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

◆ id() [6/24]

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

◆ id() [7/24]

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

◆ id() [8/24]

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

◆ id() [9/24]

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

◆ id() [10/24]

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

◆ id() [11/24]

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

◆ id() [12/24]

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

◆ id() [13/24]

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

◆ id() [14/24]

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

◆ id() [15/24]

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

◆ id() [16/24]

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

◆ id() [17/24]

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

◆ id() [18/24]

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

◆ id() [19/24]

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

◆ id() [20/24]

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

◆ id() [21/24]

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

◆ id() [22/24]

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

◆ id() [23/24]

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

◆ id() [24/24]

CFTypeID cf::reference<::SecCodeRef >::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 caller graph for this function:

◆ operator bool()

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

◆ 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

◆ 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
Here is the call graph for this function:

◆ operator()() [1/3]

template<typename cf_object_t>
::CFPropertyListRef cf::dictionary<::CFDictionaryRef, cf_object_t >::operator() ( ::CFPropertyListRef dflt) const
inlinenoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [2/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
Here is the call graph for this function:

◆ operator()() [3/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
Here is the call graph for this function:

◆ operator::CFArrayRef()

template<typename cf_object_t>
cf::dictionary<::CFDictionaryRef, cf_object_t >::operator::CFArrayRef ( ) const
inline
Here is the call graph for this function:

◆ operator::CFPropertyListRef()

template<typename cf_object_t>
cf::dictionary<::CFDictionaryRef, cf_object_t >::operator::CFPropertyListRef ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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>
string cf::dictionary<::CFDictionaryRef, cf_object_t >::key
protected

◆ string

template<typename cf_object_t>
::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

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.