Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

nsTArray_base Class Reference

#include <nsTArray.h>

Inherited by nsTArray< E >, nsTArray< E * >, nsTArray< FontSetByLangEntry >, nsTArray< gfxFont * >, nsTArray< gfxFontFaceSrc >, nsTArray< gfxFontTestItem >, nsTArray< gfxGlyphExtents * >, nsTArray< GlyphRun >, nsTArray< Layer >, nsTArray< MilestoneEntry >, nsTArray< MorkColumn >, nsTArray< nsAlternativeCharCode >, nsTArray< nsARefreshObserver * >, nsTArray< nsAutoPtr< Block > >, nsTArray< nsCOMPtr< nsIDBChangeListener > >, nsTArray< nsCOMPtr< nsIUrlListener > >, nsTArray< nsCSSRuleProcessor * >, nsTArray< nsCSSValueGradientStop >, nsTArray< nsCString_external >, nsTArray< nsDelayedBlurOrFocusEvent >, nsTArray< nsDisplayItem * >, nsTArray< nsFontFaceRuleContainer >, nsTArray< nsICSSStyleSheet * >, nsTArray< nsIFolderListener * >, nsTArray< nsIFrame * >, nsTArray< nsISupports * >, nsTArray< nsISupports ** >, nsTArray< nsMsgDatabase * >, nsTArray< nsMsgDBEnumerator * >, nsTArray< nsMsgKey >, nsTArray< nsNameSpaceEntry >, nsTArray< nsRefPtr< gfxFont > >, nsTArray< nsRefPtr< gfxFontEntry > >, nsTArray< nsRefPtr< nsISMILAnimationElement > >, nsTArray< nsRefPtr< nsScriptLoader > >, nsTArray< nsRefPtr< nsXBLBinding > >, nsTArray< nsRuleNode * >, nsTArray< nsStyleContext * >, nsTArray< nsStyleGradientStop >, nsTArray< nsTransition >, nsTArray< PLHashEntry * >, nsTArray< PreloadInfo >, nsTArray< PresShellState >, nsTArray< PrimitiveInfo * >, nsTArray< PrimitiveInfo >, nsTArray< PRInt32 >, nsTArray< PRUint32 >, nsTArray< PRUint8 >, nsTArray< PRUnichar >, nsTArray< PtrBits >, nsTArray< Request >, nsTArray< SAXAttr >, nsTArray< short >, nsTArray< T * >, nsTArray< T >, and nsTArray< TextItem >.

Collaboration diagram for nsTArray_base:

List of all members.

Classes

struct  Header

Public Types

enum  { NoIndex = index_type(-1) }
typedef PRUint32 size_type
typedef PRUint32 index_type

Public Member Functions

size_type Length () const
PRBool IsEmpty () const
size_type Capacity () const

Protected Member Functions

 nsTArray_base ()
 ~nsTArray_base ()
PRBool EnsureCapacity (size_type capacity, size_type elementSize)
void ShrinkCapacity (size_type elementSize)
void ShiftData (index_type start, size_type oldLen, size_type newLen, size_type elementSize)
void IncrementLength (PRUint32 n)
PRBool InsertSlotsAt (index_type index, size_type count, size_type elementSize)
PRBool SwapArrayElements (nsTArray_base &other, size_type elementSize)
PRBool EnsureNotUsingAutoArrayBuffer (size_type elemSize)
PRBool IsAutoArray ()
HeaderGetAutoArrayBuffer ()
PRBool UsesAutoArrayBuffer ()

Protected Attributes

HeadermHdr

Static Protected Attributes

static Header sEmptyHdr

Member Typedef Documentation

typedef PRUint32 nsTArray_base::index_type

Reimplemented in nsTPtrArray< E >.

typedef PRUint32 nsTArray_base::size_type

Reimplemented in nsTPtrArray< E >.


Member Enumeration Documentation

anonymous enum
Enumerator:
NoIndex 

Constructor & Destructor Documentation

nsTArray_base::nsTArray_base (  )  [protected]
nsTArray_base::~nsTArray_base (  )  [protected]

Member Function Documentation

size_type nsTArray_base::Capacity (  )  const [inline]
PRBool nsTArray_base::EnsureCapacity ( size_type  capacity,
size_type  elementSize 
) [protected]
PRBool nsTArray_base::EnsureNotUsingAutoArrayBuffer ( size_type  elemSize  )  [protected]
Header* nsTArray_base::GetAutoArrayBuffer (  )  [inline, protected]
void nsTArray_base::IncrementLength ( PRUint32  n  )  [inline, protected]
PRBool nsTArray_base::InsertSlotsAt ( index_type  index,
size_type  count,
size_type  elementSize 
) [protected]
PRBool nsTArray_base::IsAutoArray (  )  [inline, protected]
PRBool nsTArray_base::IsEmpty (  )  const [inline]
size_type nsTArray_base::Length (  )  const [inline]
void nsTArray_base::ShiftData ( index_type  start,
size_type  oldLen,
size_type  newLen,
size_type  elementSize 
) [protected]
void nsTArray_base::ShrinkCapacity ( size_type  elementSize  )  [protected]
PRBool nsTArray_base::SwapArrayElements ( nsTArray_base other,
size_type  elementSize 
) [protected]
PRBool nsTArray_base::UsesAutoArrayBuffer (  )  [inline, protected]

Member Data Documentation

Header nsTArray_base::sEmptyHdr [static, protected]

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