Back to index

nux  3.0.0
Public Member Functions | Public Attributes | Private Attributes
nux::PropertyChangedSignal< VALUE_TYPE > Class Template Reference

#include <Property.h>

Inheritance diagram for nux::PropertyChangedSignal< VALUE_TYPE >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PropertyChangedSignal ()
void DisableNotifications ()
void EnableNotifications ()
void EmitChanged (VALUE_TYPE const &new_value)

Public Attributes

sigc::signal< void, VALUE_TYPE
const & > 
changed

Private Attributes

bool notify_

Detailed Description

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

Definition at line 42 of file Property.h.


Constructor & Destructor Documentation

template<typename VALUE_TYPE >
nux::PropertyChangedSignal< VALUE_TYPE >::PropertyChangedSignal ( )

Definition at line 29 of file Property-inl.h.

  : notify_(true)
{}

Member Function Documentation

template<typename VALUE_TYPE >
void nux::PropertyChangedSignal< VALUE_TYPE >::DisableNotifications ( )

Definition at line 34 of file Property-inl.h.

{
  notify_ = false;
}
template<typename VALUE_TYPE>
void nux::PropertyChangedSignal< VALUE_TYPE >::EmitChanged ( VALUE_TYPE const &  new_value)

Definition at line 46 of file Property-inl.h.

{
  if (notify_)
    changed.emit(new_value);
}
template<typename VALUE_TYPE >
void nux::PropertyChangedSignal< VALUE_TYPE >::EnableNotifications ( )

Definition at line 40 of file Property-inl.h.

{
  notify_ = true;
}

Member Data Documentation

template<typename VALUE_TYPE>
sigc::signal<void, VALUE_TYPE const&> nux::PropertyChangedSignal< VALUE_TYPE >::changed

Definition at line 47 of file Property.h.

template<typename VALUE_TYPE>
bool nux::PropertyChangedSignal< VALUE_TYPE >::notify_ [private]

Definition at line 55 of file Property.h.


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