nsTArray< E > Class Template Reference

#include <nsTArray.h>

Inheritance diagram for nsTArray< E >:

Inheritance graph
[legend]
Collaboration diagram for nsTArray< E >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class E>
class nsTArray< E >

Returns:
True if the elements are equals; false otherwise.

True if (a < b); false otherwise.


Public Types

typedef E elem_type
typedef nsTArray< E > self_type
typedef nsTArrayElementTraits< E > elem_traits

Public Member Functions

 ~nsTArray ()
 nsTArray ()
 nsTArray (size_type capacity)
 nsTArray (const self_type &other)
nsTArrayoperator= (const self_type &other)
elem_typeElements ()
const elem_typeElements () 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
elem_typeoperator[] (index_type i)
const elem_typeoperator[] (index_type i) const
template<class Item, class Comparator>
PRBool Contains (const Item &item, const Comparator &comp) const
template<class Item>
PRBool Contains (const Item &item) const
template<class Item, class Comparator>
index_type IndexOf (const Item &item, index_type start, const Comparator &comp) const
template<class Item>
index_type IndexOf (const Item &item, index_type start=0) const
template<class Item, class Comparator>
index_type LastIndexOf (const Item &item, index_type start, const Comparator &comp) const
template<class Item>
index_type LastIndexOf (const Item &item, index_type start=NoIndex) const
template<class Item, class Comparator>
index_type BinaryIndexOf (const Item &item, const Comparator &comp) const
template<class Item>
index_type BinaryIndexOf (const Item &item) const
template<class Item>
elem_typeReplaceElementsAt (index_type start, size_type count, const Item *array, size_type arrayLen)
template<class Item>
elem_typeReplaceElementsAt (index_type start, size_type count, const nsTArray< Item > &array)
template<class Item>
elem_typeReplaceElementsAt (index_type start, size_type count, const Item &item)
template<class Item>
elem_typeInsertElementsAt (index_type index, const Item *array, size_type arrayLen)
template<class Item>
elem_typeInsertElementsAt (index_type index, const nsTArray< Item > &array)
template<class Item>
elem_typeInsertElementAt (index_type index, const Item &item)
elem_typeInsertElementAt (index_type index)
template<class Item>
elem_typeAppendElements (const Item *array, size_type arrayLen)
template<class Item>
elem_typeAppendElements (const nsTArray< Item > &array)
template<class Item>
elem_typeAppendElement (const Item &item)
elem_typeAppendElements (size_type count)
elem_typeAppendElement ()
void RemoveElementsAt (index_type start, size_type count)
void RemoveElementAt (index_type index)
void Clear ()
template<class Item, class Comparator>
PRBool RemoveElement (const Item &item, const Comparator &comp)
template<class Item>
PRBool RemoveElement (const Item &item)
PRBool SwapElements (self_type &other)
PRBool SetCapacity (size_type capacity)
PRBool SetLength (size_type newLen)
elem_typeInsertElementsAt (index_type index, size_type count)
template<class Item>
elem_typeInsertElementsAt (index_type index, size_type count, const Item &item)
void Compact ()
template<class Comparator>
void Sort (const Comparator &comp)
void Sort ()

Protected Member Functions

void DestructRange (index_type start, size_type count)
template<class Item>
void AssignRange (index_type start, size_type count, const Item *values)

Member Typedef Documentation

template<class E>
typedef E nsTArray< E >::elem_type

Reimplemented in txOwningArray< E >, nsAutoTArray< E, N >, nsTPtrArray< E >, nsAutoTPtrArray< E, N >, txOwningArray< txPattern >, txOwningArray< txNodeTest >, txOwningArray< Expr >, nsAutoTArray< nsIAddrDBListener *, N >, nsAutoTArray< nsTreeRows::Link, 8 >, nsAutoTArray< nsCOMPtr< nsIMsgSendListener >, N >, nsAutoTArray< nsAbManager::abListener, N >, nsAutoTArray< nsDisplayListBuilder::PresShellState, 8 >, nsAutoTArray< nsTextFrame *, 50 >, nsAutoTArray< nsIDocumentObserver *, N >, nsAutoTArray< imgRequestProxy *, N >, nsAutoTArray< XPCJSContextInfo, 16 >, nsAutoTArray< nsDisplayItem *, 100 >, nsAutoTArray< nsCOMPtr< nsIMsgSearchNotify >, N >, nsAutoTArray< unsigned short, 100 >, nsAutoTArray< tagGOFFSET, 2 *AVERAGE_ITEM_LENGTH >, nsAutoTArray< unsigned long long, AVERAGE_ITEM_LENGTH+1 >, nsAutoTArray< nsPermissionEntry, 1 >, nsAutoTArray< CharacterPosition, 80 >, nsAutoTArray< BuildTextRunsScanner::MappedFlow, 10 >, nsAutoTArray< gfxTextRun::GlyphRun, 1 >, nsAutoTArray< nsCOMPtr< nsIMsgComposeStateListener >, N >, nsAutoTArray< octet, 256 >, nsAutoTArray< nsIFolderListener *, N >, nsAutoTArray< nsCOMPtr< nsIDBChangeListener >, N >, nsAutoTArray< tag_SCRIPT_VISATTR, unsigned(ESTIMATE_MAX_GLYPHS(AVERAGE_ITEM_LENGTH))>, nsAutoTArray< nsLineBreaker::TextItem, 2 >, nsAutoTArray< T, N >, nsAutoTArray< nsMsgMailSession::folderListener, N >, nsAutoTArray< nsGlyphTable *, 16 >, nsAutoTArray< unsigned long long, unsigned(ESTIMATE_MAX_GLYPHS(AVERAGE_ITEM_LENGTH))>, nsAutoTArray< nsIFrame *, 100 >, nsAutoTArray< nsAutoPtr< BuildTextRunsScanner::BreakSink >, 10 >, nsAutoTArray< octet, 8 >, nsAutoTArray< unsigned, 2 *AVERAGE_ITEM_LENGTH >, nsAutoTArray< nsCOMPtr< nsICSSLoaderObserver >, N >, nsAutoTArray< gfxGlyphExtents *, 1 >, nsAutoTArray< nsListenerStruct, N >, nsTPtrArray< txPattern >, nsTPtrArray< PtrInfo >, nsTPtrArray< txNodeTest >, nsTPtrArray< txStripSpaceTest >, nsTPtrArray< Expr >, nsTPtrArray< nsTableRowGroupFrame >, nsTPtrArray< nsAttrValue::EnumTable >, and nsAutoTPtrArray< nsTableRowGroupFrame, 8 >.

template<class E>
typedef nsTArray<E> nsTArray< E >::self_type

template<class E>
typedef nsTArrayElementTraits<E> nsTArray< E >::elem_traits


Constructor & Destructor Documentation

template<class E>
nsTArray< E >::~nsTArray (  )  [inline]

template<class E>
nsTArray< E >::nsTArray (  )  [inline]

template<class E>
nsTArray< E >::nsTArray ( size_type  capacity  )  [inline, explicit]

template<class E>
nsTArray< E >::nsTArray ( const self_type other  )  [inline]


Member Function Documentation

template<class E>
nsTArray& nsTArray< E >::operator= ( const self_type other  )  [inline]

template<class E>
elem_type* nsTArray< E >::Elements (  )  [inline]

template<class E>
const elem_type* nsTArray< E >::Elements (  )  const [inline]

template<class E>
elem_type& nsTArray< E >::ElementAt ( index_type  i  )  [inline]

template<class E>
const elem_type& nsTArray< E >::ElementAt ( index_type  i  )  const [inline]

template<class E>
elem_type& nsTArray< E >::SafeElementAt ( index_type  i,
elem_type def 
) [inline]

template<class E>
const elem_type& nsTArray< E >::SafeElementAt ( index_type  i,
const elem_type def 
) const [inline]

template<class E>
elem_type& nsTArray< E >::operator[] ( index_type  i  )  [inline]

template<class E>
const elem_type& nsTArray< E >::operator[] ( index_type  i  )  const [inline]

template<class E>
template<class Item, class Comparator>
PRBool nsTArray< E >::Contains ( const Item &  item,
const Comparator &  comp 
) const [inline]

template<class E>
template<class Item>
PRBool nsTArray< E >::Contains ( const Item &  item  )  const [inline]

template<class E>
template<class Item, class Comparator>
index_type nsTArray< E >::IndexOf ( const Item &  item,
index_type  start,
const Comparator &  comp 
) const [inline]

template<class E>
template<class Item>
index_type nsTArray< E >::IndexOf ( const Item &  item,
index_type  start = 0 
) const [inline]

template<class E>
template<class Item, class Comparator>
index_type nsTArray< E >::LastIndexOf ( const Item &  item,
index_type  start,
const Comparator &  comp 
) const [inline]

template<class E>
template<class Item>
index_type nsTArray< E >::LastIndexOf ( const Item &  item,
index_type  start = NoIndex 
) const [inline]

template<class E>
template<class Item, class Comparator>
index_type nsTArray< E >::BinaryIndexOf ( const Item &  item,
const Comparator &  comp 
) const [inline]

template<class E>
template<class Item>
index_type nsTArray< E >::BinaryIndexOf ( const Item &  item  )  const [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::ReplaceElementsAt ( index_type  start,
size_type  count,
const Item *  array,
size_type  arrayLen 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::ReplaceElementsAt ( index_type  start,
size_type  count,
const nsTArray< Item > &  array 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::ReplaceElementsAt ( index_type  start,
size_type  count,
const Item &  item 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::InsertElementsAt ( index_type  index,
const Item *  array,
size_type  arrayLen 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::InsertElementsAt ( index_type  index,
const nsTArray< Item > &  array 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::InsertElementAt ( index_type  index,
const Item &  item 
) [inline]

template<class E>
elem_type* nsTArray< E >::InsertElementAt ( index_type  index  )  [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::AppendElements ( const Item *  array,
size_type  arrayLen 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::AppendElements ( const nsTArray< Item > &  array  )  [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::AppendElement ( const Item &  item  )  [inline]

template<class E>
elem_type* nsTArray< E >::AppendElements ( size_type  count  )  [inline]

template<class E>
elem_type* nsTArray< E >::AppendElement (  )  [inline]

template<class E>
void nsTArray< E >::RemoveElementsAt ( index_type  start,
size_type  count 
) [inline]

template<class E>
void nsTArray< E >::RemoveElementAt ( index_type  index  )  [inline]

template<class E>
void nsTArray< E >::Clear (  )  [inline]

template<class E>
template<class Item, class Comparator>
PRBool nsTArray< E >::RemoveElement ( const Item &  item,
const Comparator &  comp 
) [inline]

template<class E>
template<class Item>
PRBool nsTArray< E >::RemoveElement ( const Item &  item  )  [inline]

template<class E>
PRBool nsTArray< E >::SwapElements ( self_type other  )  [inline]

template<class E>
PRBool nsTArray< E >::SetCapacity ( size_type  capacity  )  [inline]

template<class E>
PRBool nsTArray< E >::SetLength ( size_type  newLen  )  [inline]

template<class E>
elem_type* nsTArray< E >::InsertElementsAt ( index_type  index,
size_type  count 
) [inline]

template<class E>
template<class Item>
elem_type* nsTArray< E >::InsertElementsAt ( index_type  index,
size_type  count,
const Item &  item 
) [inline]

template<class E>
void nsTArray< E >::Compact (  )  [inline]

template<class E>
template<class Comparator>
void nsTArray< E >::Sort ( const Comparator &  comp  )  [inline]

template<class E>
void nsTArray< E >::Sort (  )  [inline]

template<class E>
void nsTArray< E >::DestructRange ( index_type  start,
size_type  count 
) [inline, protected]

template<class E>
template<class Item>
void nsTArray< E >::AssignRange ( index_type  start,
size_type  count,
const Item *  values 
) [inline, protected]


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

Generated Mozilla by doxygen 1.5.6