glv::ChangedValue< T > Class Template Reference

Generic index/value struct for widget notifications. More...

#include <glv_observer_pattern.h>

List of all members.

Public Member Functions

 ChangedValue (const T &v, int i=0)
value () const
 Get value.
int index () const
 Get index of value.


Detailed Description

template<class T>
class glv::ChangedValue< T >

Generic index/value struct for widget notifications.

Since some widgets have multiple values, an index is used to specify which element corresponds to the update. If a widget only has one value, an index of zero is used.


Constructor & Destructor Documentation

template<class T>
glv::ChangedValue< T >::ChangedValue ( const T &  v,
int  i = 0 
) [inline]

Parameters:
[in] v value
[in] i index of value


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

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5