Public Member Functions | List of all members
Celartem::Observable Class Reference

#include <cel_observable.h>

Inheritance diagram for Celartem::Observable:
Inheritance graph
[legend]

Public Member Functions

virtual void notify ()
 
void attachObserver (Observer *inObserver)
 
void detachObserver (Observer *inObserver)
 
void detachAllObservers ()
 
- Public Member Functions inherited from Celartem::Referable
 Referable ()
 
void addRef () const
 
void releaseRef () const
 
size_t getReferenceCount () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Celartem::Referable
static void dumpDbgAllRefCount ()
 

Detailed Description

Observable is a class that provides the notification mechanism to several Observer class instances. This class is abstract class and constructors are hidden not to create the instances directly, you should inherit the class to use Observable feature.

Member Function Documentation

void Celartem::Observable::attachObserver ( Observer inObserver)

This method attaches the specified Observer instance.

Parameters
inObserverAn Observer instance to attach.
void Celartem::Observable::detachAllObservers ( )

This method detaches all the Observer instances which have been attached to this instance.

void Celartem::Observable::detachObserver ( Observer inObserver)

This method detaches the specified Observer instance.

Parameters
inObserverAn Observer instance to detach.
virtual void Celartem::Observable::notify ( )
virtual

This method invokes Observer::update of the attached observer instances.


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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo