Odyssey::VariableProxy< TypeT > Class Template Reference

Wraps a variable and notifies a delegate when the variable is changed. More...

#include <VariableProxy.h>

List of all members.

Public Types

typedef TypeT type_t

Public Member Functions

 VariableProxy (TypeT &value)
 operator TypeT () const
TypeT & operator * ()
const TypeT & operator * () const
template<class T>
VariableProxyoperator= (T t)

Public Attributes

Delegate ValueWrittenEvent


Detailed Description

template<class TypeT>
class Odyssey::VariableProxy< TypeT >

Wraps a variable and notifies a delegate when the variable is changed.

This class is meant to wrap around class or global variables. It can be exposed more than what it wraps, and allows access and write privelages to the variable. It's main intent is to allow access to variables, while giving the application a hook to be notified when the variable is updated.


Member Typedef Documentation

template<class TypeT>
typedef TypeT Odyssey::VariableProxy< TypeT >::type_t
 


Constructor & Destructor Documentation

template<class TypeT>
Odyssey::VariableProxy< TypeT >::VariableProxy TypeT &  value  )  [inline]
 


Member Function Documentation

template<class TypeT>
const TypeT& Odyssey::VariableProxy< TypeT >::operator *  )  const [inline]
 

template<class TypeT>
TypeT& Odyssey::VariableProxy< TypeT >::operator *  )  [inline]
 

template<class TypeT>
Odyssey::VariableProxy< TypeT >::operator TypeT  )  const [inline]
 

template<class TypeT>
template<class T>
VariableProxy& Odyssey::VariableProxy< TypeT >::operator= t  )  [inline]
 


Member Data Documentation

template<class TypeT>
Delegate Odyssey::VariableProxy< TypeT >::ValueWrittenEvent
 


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:53 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO