Thrive
Public Member Functions | List of all members
thrive::TouchableValue< T > Class Template Reference

A single touchable value. More...

#include <touchable.h>

Inheritance diagram for thrive::TouchableValue< T >:
thrive::Touchable

Public Member Functions

 TouchableValue (const T &value=T())
 Constructor. More...
 
TouchableValue & operator= (const T &value)
 Assignment operator. More...
 
 operator T () const
 Implicit cast operator. More...
 
T get () const
 Explicit "cast". More...
 
- Public Member Functions inherited from thrive::Touchable
bool hasChanges () const
 Whether this Touchable has unapplied changes.
 
void touch ()
 Marks the Touchable as changed.
 
void untouch ()
 Marks all changes as applied.
 

Additional Inherited Members

- Static Public Member Functions inherited from thrive::Touchable
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Detailed Description

template<typename T>
class thrive::TouchableValue< T >

A single touchable value.

Template Parameters
TThe type of the underlying value

Constructor & Destructor Documentation

template<typename T>
thrive::TouchableValue< T >::TouchableValue ( const T &  value = T())
inline

Constructor.

Parameters
valueThe initial value

Member Function Documentation

template<typename T>
T thrive::TouchableValue< T >::get ( ) const
inline

Explicit "cast".

Returns
The underlying value
template<typename T>
thrive::TouchableValue< T >::operator T ( ) const
inline

Implicit cast operator.

Returns
The underlying value
template<typename T>
TouchableValue& thrive::TouchableValue< T >::operator= ( const T &  value)
inline

Assignment operator.

Also calls Touchable::touch()

Parameters
valueThe new value
Returns

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