Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

RegisterEffect Class Reference

#include <effects.h>

List of all members.

Public Types

typedef list< Effect * > EffectList
typedef EffectList::iterator iterator

Public Member Functions

 RegisterEffect (Effect *effect)

Static Public Member Functions

iterator begin (void)
iterator end (void)


Detailed Description

A somewhat hackish way of automatically making a list of Effects.

Each effect type in the hierarchy should create a dummy global instance of this class, passing a pointer to a dummy global instance of the Effect class. The RegisterEffect constructor adds each pointer to a list, which is then iterated through when we need to construct static lists for each Effect in the hierarchy.

See also:
Scene::generate_handlers()


Constructor & Destructor Documentation

RegisterEffect::RegisterEffect Effect effect  ) 
 

This adds the passed effect to the list of effects.

Note: the effect_list must be NULL before this constructor is called.

See also:
effect.cpp
Parameters:
effect the effect to add.


Member Function Documentation

RegisterEffect::iterator RegisterEffect::begin void   )  [static]
 

Returns:
an iterator to the beginning of the list of effects.

RegisterEffect::iterator RegisterEffect::end void   )  [static]
 

Returns:
an iterator to the end of the list of effects.


The documentation for this class was generated from the following files:
Generated on Sat Mar 13 15:00:11 2004 by doxygen 1.3.5