Classes | Defines

nsTObserverArray.h File Reference

#include "nsTArray.h"
Include dependency graph for nsTObserverArray.h:
This graph shows which files directly or indirectly include this file:

Classes

class  nsTObserverArray_base
class  nsTObserverArray_base::Iterator_base
class  nsAutoTObserverArray< T, N >
 An array of observers. More...
class  nsAutoTObserverArray< T, N >::Iterator
class  nsAutoTObserverArray< T, N >::ForwardIterator
class  nsAutoTObserverArray< T, N >::EndLimitedIterator
class  nsTObserverArray< T >

Defines

#define NS_OBSERVER_ARRAY_NOTIFY_OBSERVERS(array_, obstype_, func_, params_)

Define Documentation

#define NS_OBSERVER_ARRAY_NOTIFY_OBSERVERS (   array_,
  obstype_,
  func_,
  params_ 
)
Value:
PR_BEGIN_MACRO                                                             \
    nsTObserverArray<obstype_ *>::ForwardIterator iter_(array_);             \
    nsCOMPtr<obstype_> obs_;                                                 \
    while (iter_.HasMore()) {                                                 \
      obs_ = iter_.GetNext();                                                \
      obs_ -> func_ params_ ;                                                \
    }                                                                        \
  PR_END_MACRO