Public Types | Public Member Functions | Protected Member Functions

nsTArray< E > Class Template Reference

#include <nsTArray.h>

Inheritance diagram for nsTArray< E >:
Collaboration diagram for nsTArray< E >:

List of all members.

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 , class Comparator >
PRBool GreatestIndexLtEq (const Item &item, const Comparator &comp, index_type *idx) const
template<class Item , class Comparator >
elem_typeInsertElementSorted (const Item &item, const Comparator &comp)
template<class Item >
elem_typeInsertElementSorted (const Item &item)
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 ()
template<class Item >
elem_typeMoveElementsFrom (nsTArray< Item > &array)
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)
template<class Item , class Comparator >
PRBool RemoveElementSorted (const Item &item, const Comparator &comp)
template<class Item >
PRBool RemoveElementSorted (const Item &item)
PRBool SwapElements (self_type &other)
PRBool SetCapacity (size_type capacity)
PRBool SetLength (size_type newLen)
void TruncateLength (size_type newLen)
PRBool EnsureLengthAtLeast (size_type minLen)
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)

Detailed Description

template<class E>
class nsTArray< E >

Returns:
True if the elements are equals; false otherwise.
True if (a < b); false otherwise.

Member Typedef Documentation

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

Reimplemented in nsTPtrArray< E >.


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>
template<class Item >
elem_type* nsTArray< E >::AppendElement ( const Item &  item  )  [inline]
template<class E>
elem_type* nsTArray< E >::AppendElement (  )  [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>
elem_type* nsTArray< E >::AppendElements ( size_type  count  )  [inline]
template<class E>
template<class Item >
void nsTArray< E >::AssignRange ( index_type  start,
size_type  count,
const Item *  values 
) [inline, protected]
template<class E>
template<class Item >
index_type nsTArray< E >::BinaryIndexOf ( const Item &  item  )  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>
void nsTArray< E >::Clear (  )  [inline]
template<class E>
void nsTArray< E >::Compact (  )  [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>
void nsTArray< E >::DestructRange ( index_type  start,
size_type  count 
) [inline, protected]
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 >::Elements (  )  [inline]
template<class E>
const elem_type* nsTArray< E >::Elements (  )  const [inline]
template<class E>
PRBool nsTArray< E >::EnsureLengthAtLeast ( size_type  minLen  )  [inline]
template<class E>
template<class Item , class Comparator >
PRBool nsTArray< E >::GreatestIndexLtEq ( const Item &  item,
const Comparator &  comp,
index_type idx 
) 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 >
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 >::InsertElementsAt ( index_type  index,
const nsTArray< Item > &  array 
) [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>
template<class Item >
elem_type* nsTArray< E >::InsertElementsAt ( index_type  index,
const Item *  array,
size_type  arrayLen 
) [inline]
template<class E>
elem_type* nsTArray< E >::InsertElementsAt ( index_type  index,
size_type  count 
) [inline]
template<class E>
template<class Item , class Comparator >
elem_type* nsTArray< E >::InsertElementSorted ( const Item &  item,
const Comparator &  comp 
) [inline]
template<class E>
template<class Item >
elem_type* nsTArray< E >::InsertElementSorted ( const Item &  item  )  [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 >
elem_type* nsTArray< E >::MoveElementsFrom ( nsTArray< Item > &  array  )  [inline]
template<class E>
nsTArray& nsTArray< E >::operator= ( const self_type other  )  [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 >
PRBool nsTArray< E >::RemoveElement ( const Item &  item  )  [inline]
template<class E>
template<class Item , class Comparator >
PRBool nsTArray< E >::RemoveElement ( const Item &  item,
const Comparator &  comp 
) [inline]
template<class E>
void nsTArray< E >::RemoveElementAt ( index_type  index  )  [inline]
template<class E>
void nsTArray< E >::RemoveElementsAt ( index_type  start,
size_type  count 
) [inline]
template<class E>
template<class Item >
PRBool nsTArray< E >::RemoveElementSorted ( const Item &  item  )  [inline]
template<class E>
template<class Item , class Comparator >
PRBool nsTArray< E >::RemoveElementSorted ( const Item &  item,
const Comparator &  comp 
) [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 >::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>
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>
PRBool nsTArray< E >::SetCapacity ( size_type  capacity  )  [inline]
template<class E>
PRBool nsTArray< E >::SetLength ( size_type  newLen  )  [inline]
template<class E>
void nsTArray< E >::Sort (  )  [inline]
template<class E>
template<class Comparator >
void nsTArray< E >::Sort ( const Comparator &  comp  )  [inline]
template<class E>
PRBool nsTArray< E >::SwapElements ( self_type other  )  [inline]
template<class E>
void nsTArray< E >::TruncateLength ( size_type  newLen  )  [inline]

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