Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::Primitive< T > Class Template Reference

#include <plist.h>

Inheritance diagram for plist::Primitive< T >:

Inheritance graph
[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
Primitiveoperator= (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

val
 value storage


Constructor & Destructor Documentation

template<typename T>
plist::Primitive< T >::Primitive  )  [inline]
 

constructor

Definition at line 244 of file plist.h.

template<typename T>
plist::Primitive< T >::Primitive const T &  v  )  [inline]
 

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.

template<typename T>
plist::Primitive< T >::operator T  )  const [inline]
 

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.

template<typename T>
Primitive& plist::Primitive< T >::operator= const T &  v  )  [inline]
 

assignment

Definition at line 246 of file plist.h.


Member Data Documentation

template<typename T>
T plist::Primitive< T >::val [protected]
 

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:

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:14 2005 by Doxygen 1.4.4