plist::Primitive< T > Class Template Reference#include <plist.h>
Inheritance diagram for plist::Primitive< T >:
[legend]List of all members.
Detailed Description
template<typename T>
class plist::Primitive< T >
Implements type-specific functionality through template specialization, mainly involving value conversion and stringification formatting.
Provides smart-pointer style functionality for transparent access to the value storage, as well as automatic casting to and from the value type so you can almost always treat the Primitive as if it was the value itself.
Definition at line 242 of file plist.h.
|
Public Member Functions |
| Primitive () |
| constructor
|
| Primitive (const T &v) |
| constructor, automatic casting from the value type
|
Primitive & | operator= (const T &v) |
| assignment
|
const T & | operator * () const |
| smart pointer access to value
|
const T * | operator-> () const |
| smart pointer access to value
|
| operator T () const |
| automatic casting to the value type
|
Protected Attributes |
T | val |
| value storage
|
Constructor & Destructor Documentation
|
constructor
Definition at line 244 of file plist.h. |
|
constructor, automatic casting from the value type
Definition at line 245 of file plist.h. |
Member Function Documentation
template<typename T> |
const T& plist::Primitive< T >::operator * |
( |
|
) |
const [inline] |
|
|
smart pointer access to value
Definition at line 248 of file plist.h. |
|
automatic casting to the value type
Definition at line 251 of file plist.h. |
template<typename T> |
const T* plist::Primitive< T >::operator-> |
( |
|
) |
const [inline] |
|
|
smart pointer access to value
Definition at line 250 of file plist.h. |
|
assignment
Definition at line 246 of file plist.h. |
Member Data Documentation
|
value storage
Definition at line 269 of file plist.h.
Referenced by plist::Primitive< unsigned char >::get(), plist::Primitive< char >::get(), plist::Primitive< bool >::get(), plist::Primitive< unsigned char >::LoadXML(), plist::Primitive< char >::LoadXML(), plist::Primitive< bool >::LoadXML(), plist::Primitive< unsigned char >::operator *(), plist::Primitive< char >::operator *(), plist::Primitive< bool >::operator *(), plist::Primitive< T >::operator *(), plist::Primitive< unsigned char >::operator *=(), plist::Primitive< char >::operator *=(), plist::Primitive< bool >::operator bool(), plist::Primitive< char >::operator char(), plist::Primitive< T >::operator T(), plist::Primitive< unsigned char >::operator unsigned char(), plist::Primitive< unsigned char >::operator+=(), plist::Primitive< char >::operator+=(), plist::Primitive< unsigned char >::operator-=(), plist::Primitive< char >::operator-=(), plist::Primitive< unsigned char >::operator->(), plist::Primitive< char >::operator->(), plist::Primitive< bool >::operator->(), plist::Primitive< T >::operator->(), plist::Primitive< unsigned char >::operator/=(), plist::Primitive< char >::operator/=(), plist::Primitive< unsigned char >::operator=(), plist::Primitive< char >::operator=(), plist::Primitive< bool >::operator=(), plist::Primitive< T >::operator=(), plist::Primitive< unsigned char >::SaveXML(), plist::Primitive< char >::SaveXML(), plist::Primitive< bool >::SaveXML(), plist::Primitive< unsigned char >::set(), plist::Primitive< char >::set(), and plist::Primitive< bool >::set(). |
The documentation for this class was generated from the following file:
|