Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXArray< TYPE > Class Template Reference

Array of some generic type. More...

#include <FXArray.h>

List of all members.

Public Member Functions

 FXArray ()
 FXArray (FXint n)
 FXArray (const FXArray< TYPE > &src)
 FXArray (const TYPE &src, FXint n)
 FXArray (const TYPE *src, FXint n)
FXint no () const
bool no (FXint n)
FXArray< TYPE > & operator= (const FXArray< TYPE > &src)
TYPE & operator[] (FXint i)
const TYPE & operator[] (FXint i) const
TYPE & at (FXint i)
const TYPE & at (FXint i) const
TYPE * data () const
FXArray< TYPE > & adopt (FXArray< TYPE > &src)
FXArray< TYPE > & assign (const TYPE &src)
FXArray< TYPE > & assign (const TYPE &src, FXint n)
FXArray< TYPE > & assign (const TYPE *src, FXint n)
FXArray< TYPE > & assign (const FXArray< TYPE > &src)
FXArray< TYPE > & insert (FXint pos, const TYPE &src)
FXArray< TYPE > & insert (FXint pos, const TYPE &src, FXint n)
FXArray< TYPE > & insert (FXint pos, const TYPE *src, FXint n)
FXArray< TYPE > & insert (FXint pos, const FXArray< TYPE > &src)
FXArray< TYPE > & prepend (const TYPE &src)
FXArray< TYPE > & prepend (const TYPE &src, FXint n)
FXArray< TYPE > & prepend (const TYPE *src, FXint n)
FXArray< TYPE > & prepend (const FXArray< TYPE > &src)
FXArray< TYPE > & append (const TYPE &src)
FXArray< TYPE > & append (const TYPE &src, FXint n)
FXArray< TYPE > & append (const TYPE *src, FXint n)
FXArray< TYPE > & append (const FXArray< TYPE > &src)
FXArray< TYPE > & erase (FXint pos)
FXArray< TYPE > & erase (FXint pos, FXint n)
FXArray< TYPE > & clear ()
 ~FXArray ()


Detailed Description

template<class TYPE>
class FX::FXArray< TYPE >

Array of some generic type.


Constructor & Destructor Documentation

template<class TYPE>
FX::FXArray< TYPE >::FXArray  )  [inline]
 

Create as empty.

template<class TYPE>
FX::FXArray< TYPE >::FXArray FXint  n  )  [inline]
 

Create with given size n.

template<class TYPE>
FX::FXArray< TYPE >::FXArray const FXArray< TYPE > &  src  )  [inline]
 

Create initialized from another array.

template<class TYPE>
FX::FXArray< TYPE >::FXArray const TYPE &  src,
FXint  n
[inline]
 

Create initialized with n copies of object.

template<class TYPE>
FX::FXArray< TYPE >::FXArray const TYPE *  src,
FXint  n
[inline]
 

Create initialized with array of n objects.

template<class TYPE>
FX::FXArray< TYPE >::~FXArray  )  [inline]
 

Delete data.


Member Function Documentation

template<class TYPE>
FXint FX::FXArray< TYPE >::no  )  const [inline]
 

Return number of elements.

template<class TYPE>
bool FX::FXArray< TYPE >::no FXint  n  )  [inline]
 

Change number of elements to n.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::operator= const FXArray< TYPE > &  src  )  [inline]
 

Assign from another list.

template<class TYPE>
TYPE& FX::FXArray< TYPE >::operator[] FXint  i  )  [inline]
 

Index into array.

template<class TYPE>
const TYPE& FX::FXArray< TYPE >::operator[] FXint  i  )  const [inline]
 

template<class TYPE>
TYPE& FX::FXArray< TYPE >::at FXint  i  )  [inline]
 

Index into list.

template<class TYPE>
const TYPE& FX::FXArray< TYPE >::at FXint  i  )  const [inline]
 

template<class TYPE>
TYPE* FX::FXArray< TYPE >::data  )  const [inline]
 

Return pointer to list.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::adopt FXArray< TYPE > &  src  )  [inline]
 

Adopt array from source.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::assign const TYPE &  src  )  [inline]
 

Assign object p to list.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::assign const TYPE &  src,
FXint  n
[inline]
 

Assign n copies of object to list.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::assign const TYPE *  src,
FXint  n
[inline]
 

Assign n objects to list.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::assign const FXArray< TYPE > &  src  )  [inline]
 

Assign n objects to list.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::insert FXint  pos,
const TYPE &  src
[inline]
 

Insert an object.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::insert FXint  pos,
const TYPE &  src,
FXint  n
[inline]
 

Insert n copies of object at specified position.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::insert FXint  pos,
const TYPE *  src,
FXint  n
[inline]
 

Insert n objects at specified position.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::insert FXint  pos,
const FXArray< TYPE > &  src
[inline]
 

Insert n objects at specified position.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::prepend const TYPE &  src  )  [inline]
 

Prepend object.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::prepend const TYPE &  src,
FXint  n
[inline]
 

Prepend n copies of object.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::prepend const TYPE *  src,
FXint  n
[inline]
 

Prepend n objects.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::prepend const FXArray< TYPE > &  src  )  [inline]
 

Prepend n objects.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::append const TYPE &  src  )  [inline]
 

Append object.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::append const TYPE &  src,
FXint  n
[inline]
 

Append n copies of object.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::append const TYPE *  src,
FXint  n
[inline]
 

Append n objects.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::append const FXArray< TYPE > &  src  )  [inline]
 

Append n objects.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::erase FXint  pos  )  [inline]
 

Remove object at pos.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::erase FXint  pos,
FXint  n
[inline]
 

Remove n objects starting at pos.

template<class TYPE>
FXArray<TYPE>& FX::FXArray< TYPE >::clear  )  [inline]
 

Remove all objects.

Copyright © 1997-2005 Jeroen van der Zijp