MoSync 3.3
ListenerSet.h File Reference

Safe container for listeners. More...

#include <maassert.h>
#include "Vector.h"

Classes

class  MAUtil::ListenerSet< T >
 A listener set. More...
struct  MAUtil::ListenerSet< T >::Combo
class  MAUtil::ListenerSet< T >::iterator
 An iterator for a listener set. More...

Namespaces

namespace  MAUtil
 

MoSync utility libraries.


Defines

#define ListenerSet_each(type, itr, set)   for(ListenerSet<type>::iterator itr = set.begin(); itr.hasNext(); ++itr)
#define ListenerSet_fire(type, listenerset, with)

Detailed Description

Safe container for listeners.

Author:
Fredrik Eldh

Define Documentation

#define ListenerSet_each (   type,
  itr,
  set 
)    for(ListenerSet<type>::iterator itr = set.begin(); itr.hasNext(); ++itr)
#define ListenerSet_fire (   type,
  listenerset,
  with 
)
Value:
if(listenerset.size()) {\
                listenerset.setRunning(true);\
                ListenerSet_each(type, i, listenerset) {\
                        i->with;\
                }\
                listenerset.setRunning(false);\
        }\
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines