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

FX::FXPtrList Class Reference

List of pointers. More...

#include <FXPtrList.h>

Inheritance diagram for FX::FXPtrList:
FX::FXPtrListOf< TYPE >

List of all members.

Public Member Functions

 FXPtrList ()
 Default constructor.
 FXPtrList (const FXPtrList &src)
 Copy constructor.
 FXPtrList (void *object)
 Construct and init with single object.
 FXPtrList (void *object, FXint n)
 Construct and init with n copies of object.
 FXPtrList (void **objects, FXint n)
 Construct and init with list of objects.
FXPtrListoperator= (const FXPtrList &orig)
 Assignment operator.
FXint no () const
 Return number of objects.
FXbool no (FXint num)
 Set number of objects.
void *& operator[] (FXint i)
 Indexing operator.
void *const & operator[] (FXint i) const
void *& at (FXint i)
 Indexing operator.
void *const & at (FXint i) const
void *& head ()
 First element in list.
void *const & head () const
void *& tail ()
 Last element in list.
void *const & tail () const
void ** data ()
 Access to content array.
void *const data () const
void adopt (FXPtrList &orig)
 Adopt objects from orig, leaving orig empty.
FXbool assign (void *object)
 Assign object to list.
FXbool assign (void *object, FXint n)
 Assign n copies of object to list.
FXbool assign (void **objects, FXint n)
 Assign n objects to list.
FXbool assign (const FXPtrList &objects)
 Assign objects to list.
FXbool insert (FXint pos, void *object)
 Insert object at certain position.
FXbool insert (FXint pos, void *object, FXint n)
 Insert n copies of object at specified position.
FXbool insert (FXint pos, void **objects, FXint n)
 Insert n objects at specified position.
FXbool insert (FXint pos, const FXPtrList &objects)
 Insert objects at specified position.
FXbool prepend (void *object)
 Prepend object.
FXbool prepend (void *object, FXint n)
 Prepend n copies of object.
FXbool prepend (void **objects, FXint n)
 Prepend n objects.
FXbool prepend (const FXPtrList &objects)
 Prepend objects.
FXbool append (void *object)
 Append object.
FXbool append (void *object, FXint n)
 Append n copies of object.
FXbool append (void **objects, FXint n)
 Append n objects.
FXbool append (const FXPtrList &objects)
 Append objects.
FXbool replace (FXint pos, void *object)
 Replace object at position by given object.
FXbool replace (FXint pos, FXint m, void *object, FXint n)
 Replaces the m objects at pos with n copies of object.
FXbool replace (FXint pos, FXint m, void **objects, FXint n)
 Replaces the m objects at pos with n objects.
FXbool replace (FXint pos, FXint m, const FXPtrList &objects)
 Replace the m objects at pos with objects.
FXbool erase (FXint pos)
 Remove object at pos.
FXbool erase (FXint pos, FXint n)
 Remove n objects at pos.
FXbool push (void *object)
 Push object to end.
FXbool pop ()
 Pop object from end.
FXbool remove (const void *object)
 Remove object.
FXint find (const void *object, FXint pos=0) const
 Find object in list, searching forward; return position or -1.
FXint rfind (const void *object, FXint pos=2147483647) const
 Find object in list, searching backward; return position or -1.
void clear ()
 Remove all objects.
virtual ~FXPtrList ()
 Destructor.

Protected Attributes

void ** ptr

Detailed Description

List of pointers.


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

Copyright © 1997-2011 Jeroen van der Zijp