Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QPtrVector< type > Class Template Reference

#include </home/clem/local/src/opie/qmake/include/qptrvector.h>

Inheritance diagram for QPtrVector< type >:

Inheritance graph
[legend]
Collaboration diagram for QPtrVector< type >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QPtrVector ()
 QPtrVector (uint size)
 QPtrVector (const QPtrVector< type > &v)
 ~QPtrVector ()
QPtrVector< type > & operator= (const QPtrVector< type > &v)
bool operator== (const QPtrVector< type > &v) const
type ** data () const
uint size () const
uint count () const
bool isEmpty () const
bool isNull () const
bool resize (uint size)
bool insert (uint i, const type *d)
bool remove (uint i)
typetake (uint i)
void clear ()
bool fill (const type *d, int size=-1)
void sort ()
int bsearch (const type *d) const
int findRef (const type *d, uint i=0) const
int find (const type *d, uint i=0) const
uint containsRef (const type *d) const
uint contains (const type *d) const
typeoperator[] (int i) const
typeat (uint i) const
void toList (QGList *list) const
template<>
void deleteItem (QPtrCollection::Item)

Private Member Functions

void deleteItem (Item d)

template<class type>
class QPtrVector< type >


Constructor & Destructor Documentation

template<class type>
QPtrVector< type >::QPtrVector  )  [inline]
 

Definition at line 54 of file qptrvector.h.

template<class type>
QPtrVector< type >::QPtrVector uint  size  )  [inline]
 

Definition at line 55 of file qptrvector.h.

template<class type>
QPtrVector< type >::QPtrVector const QPtrVector< type > &  v  )  [inline]
 

Definition at line 56 of file qptrvector.h.

template<class type>
QPtrVector< type >::~QPtrVector  )  [inline]
 

Definition at line 57 of file qptrvector.h.


Member Function Documentation

template<class type>
type* QPtrVector< type >::at uint  i  )  const [inline]
 

Reimplemented from QGVector.

Definition at line 84 of file qptrvector.h.

template<class type>
int QPtrVector< type >::bsearch const type d  )  const [inline]
 

Definition at line 74 of file qptrvector.h.

template<class type>
void QPtrVector< type >::clear  )  [inline, virtual]
 

Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.

See also:
setAutoDelete()

Reimplemented from QGVector.

Definition at line 70 of file qptrvector.h.

Referenced by QPtrVector< State >::~QPtrVector().

template<class type>
uint QPtrVector< type >::contains const type d  )  const [inline]
 

Definition at line 81 of file qptrvector.h.

template<class type>
uint QPtrVector< type >::containsRef const type d  )  const [inline]
 

Definition at line 79 of file qptrvector.h.

template<class type>
uint QPtrVector< type >::count  )  const [inline, virtual]
 

Returns the number of objects in the collection.

Reimplemented from QGVector.

Definition at line 63 of file qptrvector.h.

template<class type>
type** QPtrVector< type >::data void   )  const [inline]
 

Reimplemented from QGVector.

Definition at line 61 of file qptrvector.h.

template<>
void QPtrVector< void >::deleteItem QPtrCollection::Item   )  [inline]
 

Definition at line 99 of file qptrvector.h.

template<class type>
void QPtrVector< type >::deleteItem Item  d  )  [inline, private]
 

Definition at line 104 of file qptrvector.h.

References QPtrCollection::del_item, and type.

template<class type>
bool QPtrVector< type >::fill const type d,
int  size = -1
[inline]
 

Definition at line 71 of file qptrvector.h.

template<class type>
int QPtrVector< type >::find const type d,
uint  i = 0
const [inline]
 

Definition at line 77 of file qptrvector.h.

template<class type>
int QPtrVector< type >::findRef const type d,
uint  i = 0
const [inline]
 

Definition at line 75 of file qptrvector.h.

template<class type>
bool QPtrVector< type >::insert uint  i,
const type d
[inline]
 

Definition at line 67 of file qptrvector.h.

template<class type>
bool QPtrVector< type >::isEmpty  )  const [inline]
 

Definition at line 64 of file qptrvector.h.

template<class type>
bool QPtrVector< type >::isNull  )  const [inline]
 

Definition at line 65 of file qptrvector.h.

template<class type>
QPtrVector<type>& QPtrVector< type >::operator= const QPtrVector< type > &  v  )  [inline]
 

Definition at line 58 of file qptrvector.h.

template<class type>
bool QPtrVector< type >::operator== const QPtrVector< type > &  v  )  const [inline]
 

Definition at line 60 of file qptrvector.h.

template<class type>
type* QPtrVector< type >::operator[] int  i  )  const [inline]
 

Definition at line 83 of file qptrvector.h.

template<class type>
bool QPtrVector< type >::remove uint  i  )  [inline]
 

Reimplemented from QGVector.

Definition at line 68 of file qptrvector.h.

template<class type>
bool QPtrVector< type >::resize uint  size  )  [inline]
 

Reimplemented from QGVector.

Definition at line 66 of file qptrvector.h.

template<class type>
uint QPtrVector< type >::size  )  const [inline]
 

Reimplemented from QGVector.

Definition at line 62 of file qptrvector.h.

Referenced by QPtrVector< State >::fill(), and Qt3::QTextDocument::setRichTextMarginsInternal().

template<class type>
void QPtrVector< type >::sort  )  [inline]
 

Reimplemented from QGVector.

Definition at line 73 of file qptrvector.h.

template<class type>
type* QPtrVector< type >::take uint  i  )  [inline]
 

Reimplemented from QGVector.

Definition at line 69 of file qptrvector.h.

template<class type>
void QPtrVector< type >::toList QGList list  )  const [inline]
 

Reimplemented from QGVector.

Definition at line 85 of file qptrvector.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:48:21 2005 for OPIE by  doxygen 1.4.2