dxd - dynax driver framework  2981
cross platform open source driver development framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dx::cf::__string< cf_object_t > Class Template Reference

RAII CFString class. More...

#include <dx_mach.h>

+ Inheritance diagram for dx::cf::__string< cf_object_t >:
+ Collaboration diagram for dx::cf::__string< cf_object_t >:

Public Member Functions

 __string (const char *value)
 
 __string (const std::string &value)
 
template<>
CFTypeID id ()
 
template<>
CFTypeID id ()
 
template<>
CFTypeID id ()
 
template<>
CFTypeID id ()
 
template<>
CFTypeID id ()
 
referenceinitialize (cf_object_t cf_object, bool retain=true)
 
 operator bool () const noexcept
 
 operator cf_object_t () const noexcept
 
 operator const char * () const
 
 operator double ()
 Skips whitespace; returns 0.0 on error. More...
 
 operator int ()
 Skips whitespace; returns 0 on error, MAX or -MAX on overflow. More...
 
 operator std::string () const
 
::CFMutableStringRef operator+ (const char *value) const noexcept
 
 operator::CFDataRef () const noexcept
 
 operator::CFTypeID () const noexcept
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if <!std::is_same<petty_t,::CFTypeRef>::value>::type>
 operator::CFTypeRef () const noexcept
 
__stringoperator= (const char *value)
 
__stringoperator= (const std::string &value)
 
referencerelease () noexcept
 
referenceretain () noexcept
 

Static Public Member Functions

::CFTypeID id ()
 

Protected Member Functions

 ~__string ()=default
 

Protected Attributes

cf_object_t cf_object = nullptr
 

Detailed Description

template<typename cf_object_t>
class dx::cf::__string< cf_object_t >

RAII CFString class.

externally created CFStrings are retained at construction/assignment during object life time and released on destruction/new assignment.

Constructor & Destructor Documentation

template<typename cf_object_t>
dx::cf::__string< cf_object_t >::~__string ( )
protecteddefault
template<typename cf_object_t>
dx::cf::__string< cf_object_t >::__string ( const char *  value)
inline
template<typename cf_object_t>
dx::cf::__string< cf_object_t >::__string ( const std::string &  value)
inline

Member Function Documentation

template<typename cf_object_t>
::CFTypeID dx::cf::reference< cf_object_t >::id ( )
staticinherited
template<>
CFTypeID dx::cf::reference<::CFDictionaryRef >::id ( )
inlineinherited
template<>
CFTypeID dx::cf::reference<::CFMutableDictionaryRef >::id ( )
inlineinherited
template<>
CFTypeID dx::cf::reference<::CFNumberRef >::id ( )
inlineinherited
template<>
CFTypeID dx::cf::reference<::CFStringRef >::id ( )
inlineinherited
template<>
CFTypeID dx::cf::reference<::CFURLRef >::id ( )
inlineinherited
template<typename cf_object_t>
reference& dx::cf::reference< cf_object_t >::initialize ( cf_object_t  cf_object,
bool  retain = true 
)
inlineinherited

+ Here is the caller graph for this function:

template<typename cf_object_t>
dx::cf::reference< cf_object_t >::operator bool ( ) const
inlinenoexceptinherited
template<typename cf_object_t>
dx::cf::reference< cf_object_t >::operator cf_object_t ( ) const
inlinenoexceptinherited
template<typename cf_object_t>
dx::cf::__string< cf_object_t >::operator const char * ( ) const
inline
template<typename cf_object_t>
dx::cf::__string< cf_object_t >::operator double ( )
inline

Skips whitespace; returns 0.0 on error.

template<typename cf_object_t>
dx::cf::__string< cf_object_t >::operator int ( )
inline

Skips whitespace; returns 0 on error, MAX or -MAX on overflow.

template<typename cf_object_t>
dx::cf::__string< cf_object_t >::operator std::string ( ) const
inline
template<typename cf_object_t>
::CFMutableStringRef dx::cf::__string< cf_object_t >::operator+ ( const char *  value) const
inlinenoexcept
template<typename cf_object_t>
dx::cf::__string< cf_object_t >::operator::CFDataRef ( ) const
inlinenoexcept
template<typename cf_object_t>
dx::cf::reference< cf_object_t >::operator::CFTypeID ( ) const
inlinenoexceptinherited
template<typename cf_object_t>
template<typename petty_t = cf_object_t, typename = typename std::enable_if <!std::is_same<petty_t,::CFTypeRef>::value>::type>
dx::cf::reference< cf_object_t >::operator::CFTypeRef ( ) const
inlinenoexceptinherited
template<typename cf_object_t>
__string& dx::cf::__string< cf_object_t >::operator= ( const char *  value)
inline
template<typename cf_object_t>
__string& dx::cf::__string< cf_object_t >::operator= ( const std::string &  value)
inline
template<typename cf_object_t>
reference& dx::cf::reference< cf_object_t >::release ( )
inlinenoexceptinherited

+ Here is the caller graph for this function:

template<typename cf_object_t>
reference& dx::cf::reference< cf_object_t >::retain ( )
inlinenoexceptinherited

+ Here is the caller graph for this function:

Member Data Documentation

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

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

(c) copyright 2009 dynamic acoustics e.U. generated on Tue Nov 19 2019

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.