nux-1.16.0
nux::Property< VALUE_TYPE > Class Template Reference

A read/write property that stores the value type. More...

#include <NuxCore/Property.h>

Inheritance diagram for nux::Property< VALUE_TYPE >:
nux::PropertyChangedSignal< VALUE_TYPE > nux::SerializableProperty< VALUE_TYPE >

List of all members.

Public Types

typedef VALUE_TYPE ValueType
typedef PropertyChangedSignal
< VALUE_TYPE > 
SignalBase
typedef sigc::slot< bool,
VALUE_TYPE &, VALUE_TYPE const & > 
SetterFunction

Public Member Functions

 Property (VALUE_TYPE const &initial)
 Property (VALUE_TYPE const &initial, SetterFunction setter_function)
VALUE_TYPE operator= (VALUE_TYPE const &value)
 operator VALUE_TYPE () const
VALUE_TYPE operator() () const
VALUE_TYPE operator() (VALUE_TYPE const &value)
VALUE_TYPE Get () const
VALUE_TYPE Set (VALUE_TYPE const &value)
void SetSetterFunction (SetterFunction setter_function)

Detailed Description

template<typename VALUE_TYPE>
class nux::Property< VALUE_TYPE >

A read/write property that stores the value type.

The default setter emits the changed event if and only if the value changes. A custom setter can be provided by passing in a setter function using sigc::mem_fun or sigc::ptr_fun.

Definition at line 66 of file Property.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends