globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::Changeable Class Reference

Superclass of all objects that want others to signal that they have changed. More...

#include <globjects/include/globjects/base/Changeable.h>

Inheritance diagram for globjects::Changeable:
globjects::AbstractStringSource globjects::Program globjects::ProgramBinary globjects::Shader globjects::AbstractStringSourceDecorator globjects::CompositeStringSource globjects::File globjects::StaticStringSource globjects::StringTemplate

Public Member Functions

 Changeable ()
 
virtual ~Changeable ()
 
void changed () const
 
void registerListener (ChangeListener *listener)
 
void deregisterListener (ChangeListener *listener)
 

Protected Attributes

std::set< ChangeListener * > m_listeners
 

Detailed Description

Superclass of all objects that want others to signal that they have changed.

It implements the observer pattern. Listeners to the subclass change can be registered using registerListener() and deregistered using deregisterListener().

See also
ChangeListener

Constructor & Destructor Documentation

globjects::Changeable::Changeable ( )
virtual globjects::Changeable::~Changeable ( )
virtual

Member Function Documentation

void globjects::Changeable::changed ( ) const
void globjects::Changeable::registerListener ( ChangeListener listener)
void globjects::Changeable::deregisterListener ( ChangeListener listener)

Member Data Documentation

std::set<ChangeListener *> globjects::Changeable::m_listeners
protected

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