dxd - dynax driver framework 2.1.0d69
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::cf::key_value_pairs< target_class_t > Class Template Referenceabstract

abstract base class for key-value pair types More...

#include <dx_mach.h>

Public Types

typedef std::map<::CFStringRef, ::CFTypeRef, __string<::CFStringRef >::less > container
 
typedef std::map<::CFStringRef, type<>, __string<::CFStringRef >::less > dx_container
 

Public Member Functions

 dx_catchall_rethrow () operator dx_container() const try
 
virtual target_class_t & erase (::CFStringRef key=nullptr)=0
 
target_class_t & erase (const char *key)
 
 operator container () const try
 
template<typename value_t , typename = enable_if_convertible<value_t>>
 operator value_t () const
 return POD from key_value_pair with conversion from CoreFoundation types
 
virtual::CFPropertyListRef operator() (::CFPropertyListRef dflt) const =0
 
template<typename value_t , typename = enable_if_convertible<value_t>>
value_t operator() (value_t dflt) const
 return POD from key_value_pair or return default value if not exists with conversion from CoreFoundation types
 
virtual operator::CFArrayRef () const noexcept=0
 
virtual operator::CFPropertyListRef () const =0
 
virtual target_class_t & operator= (::CFPropertyListRef key_values)=0
 
template<typename value_t , typename = enable_if_convertible<value_t>>
target_class_t & operator= (value_t value)
 write POD to key_value_pair with conversion to CoreFoundation types
 
virtual target_class_t operator[] (::CFStringRef key) const =0
 
template<typename key_t , typename = enable_if_convertible<key_t>>
target_class_t operator[] (key_t key) const
 return target_class_t from key_value_pair with conversion of key to CoreFoundation type
 
virtual ~key_value_pairs () noexcept=default
 

Detailed Description

template<typename target_class_t>
class dx::cf::key_value_pairs< target_class_t >

abstract base class for key-value pair types

Member Typedef Documentation

◆ container

template<typename target_class_t >
typedef std::map<::CFStringRef, ::CFTypeRef, __string<::CFStringRef>::less> dx::cf::key_value_pairs< target_class_t >::container

◆ dx_container

template<typename target_class_t >
typedef std::map<::CFStringRef, type<>, __string<::CFStringRef>::less> dx::cf::key_value_pairs< target_class_t >::dx_container

Constructor & Destructor Documentation

◆ ~key_value_pairs()

template<typename target_class_t >
virtual dx::cf::key_value_pairs< target_class_t >::~key_value_pairs ( )
virtualdefaultnoexcept

Member Function Documentation

◆ dx_catchall_rethrow()

template<typename target_class_t >
dx::cf::key_value_pairs< target_class_t >::dx_catchall_rethrow ( ) const
inline

◆ erase() [1/2]

template<typename target_class_t >
virtual target_class_t & dx::cf::key_value_pairs< target_class_t >::erase ( ::CFStringRef key = nullptr)
pure virtual

◆ erase() [2/2]

template<typename target_class_t >
target_class_t & dx::cf::key_value_pairs< target_class_t >::erase ( const char * key)
inline

◆ operator container()

template<typename target_class_t >
dx::cf::key_value_pairs< target_class_t >::operator container ( ) const
inline

◆ operator value_t()

template<typename target_class_t >
template<typename value_t , typename = enable_if_convertible<value_t>>
dx::cf::key_value_pairs< target_class_t >::operator value_t ( ) const
inline

return POD from key_value_pair with conversion from CoreFoundation types

◆ operator()() [1/2]

template<typename target_class_t >
virtual::CFPropertyListRef dx::cf::key_value_pairs< target_class_t >::operator() ( ::CFPropertyListRef dflt) const
pure virtual

◆ operator()() [2/2]

template<typename target_class_t >
template<typename value_t , typename = enable_if_convertible<value_t>>
value_t dx::cf::key_value_pairs< target_class_t >::operator() ( value_t dflt) const
inline

return POD from key_value_pair or return default value if not exists with conversion from CoreFoundation types

◆ operator::CFArrayRef()

template<typename target_class_t >
virtual dx::cf::key_value_pairs< target_class_t >::operator::CFArrayRef ( ) const
pure virtualnoexcept

◆ operator::CFPropertyListRef()

template<typename target_class_t >
virtual dx::cf::key_value_pairs< target_class_t >::operator::CFPropertyListRef ( ) const
pure virtual

◆ operator=() [1/2]

template<typename target_class_t >
virtual target_class_t & dx::cf::key_value_pairs< target_class_t >::operator= ( ::CFPropertyListRef key_values)
pure virtual

◆ operator=() [2/2]

template<typename target_class_t >
template<typename value_t , typename = enable_if_convertible<value_t>>
target_class_t & dx::cf::key_value_pairs< target_class_t >::operator= ( value_t value)
inline

write POD to key_value_pair with conversion to CoreFoundation types

◆ operator[]() [1/2]

template<typename target_class_t >
virtual target_class_t dx::cf::key_value_pairs< target_class_t >::operator[] ( ::CFStringRef key) const
pure virtual

◆ operator[]() [2/2]

template<typename target_class_t >
template<typename key_t , typename = enable_if_convertible<key_t>>
target_class_t dx::cf::key_value_pairs< target_class_t >::operator[] ( key_t key) const
inline

return target_class_t from key_value_pair with conversion of key to CoreFoundation type


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

(c) copyright 2009 dynamic acoustics e.U. generated on Mon May 20 2024

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.