Classes | Public Types | Public Member Functions | Protected Attributes

nsAutoTObserverArray< T, N > Class Template Reference

#include <nsTObserverArray.h>

Inheritance diagram for nsAutoTObserverArray< T, N >:
Collaboration diagram for nsAutoTObserverArray< T, N >:

List of all members.

Classes

class  EndLimitedIterator
class  ForwardIterator
class  Iterator

Public Types

typedef T elem_type
typedef nsTArray< T > array_type

Public Member Functions

 nsAutoTObserverArray ()
size_type Length () const
PRBool IsEmpty () const
elem_typeElementAt (index_type i)
const elem_typeElementAt (index_type i) const
elem_typeSafeElementAt (index_type i, elem_type &def)
const elem_typeSafeElementAt (index_type i, const elem_type &def) const
template<class Item >
PRBool Contains (const Item &item) const
template<class Item >
index_type IndexOf (const Item &item, index_type start=0) const
template<class Item >
PRBool PrependElementUnlessExists (const Item &item)
template<class Item >
elem_typeAppendElement (const Item &item)
elem_typeAppendElement ()
template<class Item >
PRBool AppendElementUnlessExists (const Item &item)
void RemoveElementAt (index_type index)
template<class Item >
PRBool RemoveElement (const Item &item)
void Clear ()

Protected Attributes

nsAutoTArray< T, N > mArray

template<class T, PRUint32 N>
class nsAutoTObserverArray< T, N >


Member Typedef Documentation

template<class T, PRUint32 N>
typedef nsTArray<T> nsAutoTObserverArray< T, N >::array_type
template<class T, PRUint32 N>
typedef T nsAutoTObserverArray< T, N >::elem_type

Constructor & Destructor Documentation

template<class T, PRUint32 N>
nsAutoTObserverArray< T, N >::nsAutoTObserverArray (  )  [inline]

Member Function Documentation

template<class T, PRUint32 N>
template<class Item >
elem_type* nsAutoTObserverArray< T, N >::AppendElement ( const Item &  item  )  [inline]
template<class T, PRUint32 N>
elem_type* nsAutoTObserverArray< T, N >::AppendElement (  )  [inline]
template<class T, PRUint32 N>
template<class Item >
PRBool nsAutoTObserverArray< T, N >::AppendElementUnlessExists ( const Item &  item  )  [inline]
template<class T, PRUint32 N>
void nsAutoTObserverArray< T, N >::Clear (  )  [inline]
template<class T, PRUint32 N>
template<class Item >
PRBool nsAutoTObserverArray< T, N >::Contains ( const Item &  item  )  const [inline]
template<class T, PRUint32 N>
const elem_type& nsAutoTObserverArray< T, N >::ElementAt ( index_type  i  )  const [inline]
template<class T, PRUint32 N>
elem_type& nsAutoTObserverArray< T, N >::ElementAt ( index_type  i  )  [inline]
template<class T, PRUint32 N>
template<class Item >
index_type nsAutoTObserverArray< T, N >::IndexOf ( const Item &  item,
index_type  start = 0 
) const [inline]
template<class T, PRUint32 N>
PRBool nsAutoTObserverArray< T, N >::IsEmpty (  )  const [inline]
template<class T, PRUint32 N>
size_type nsAutoTObserverArray< T, N >::Length (  )  const [inline]
template<class T, PRUint32 N>
template<class Item >
PRBool nsAutoTObserverArray< T, N >::PrependElementUnlessExists ( const Item &  item  )  [inline]
template<class T, PRUint32 N>
template<class Item >
PRBool nsAutoTObserverArray< T, N >::RemoveElement ( const Item &  item  )  [inline]
template<class T, PRUint32 N>
void nsAutoTObserverArray< T, N >::RemoveElementAt ( index_type  index  )  [inline]
template<class T, PRUint32 N>
elem_type& nsAutoTObserverArray< T, N >::SafeElementAt ( index_type  i,
elem_type def 
) [inline]
template<class T, PRUint32 N>
const elem_type& nsAutoTObserverArray< T, N >::SafeElementAt ( index_type  i,
const elem_type def 
) const [inline]

Member Data Documentation

template<class T, PRUint32 N>
nsAutoTArray<T, N> nsAutoTObserverArray< T, N >::mArray [protected]

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