Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::Primitive< T > Class Template Reference

#include <plistPrimitives.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 36 of file plistPrimitives.h.

Public Member Functions

 Primitive ()
 constructor
 Primitive (const T &v)
 constructor, provides automatic casting from the value type
Primitiveoperator= (const T &v)
 assignment from value type (template specializations add in-place modiciation (e.g. +=, *=))
Primitiveoperator+= (const T &v)
 add in-place
Primitiveoperator-= (const T &v)
 subtract in-place
Primitiveoperator *= (const T &v)
 multiply in-place
Primitiveoperator/= (const T &v)
 divide in-place
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
virtual Primitive< T > * clone () const __attribute__((warn_unused_result))
 implements the clone function for Primitive<T>

Protected Attributes

val
 value storage

Classes

struct  conversion_policy


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

Tekkotsu v3.0
Generated Fri May 11 20:09:10 2007 by Doxygen 1.4.7