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

FXObjectList Class Reference

List of pointers to objects.

#include <FXObjectList.h>

Inheritance diagram for FXObjectList:

FXObjectListOf< TYPE > List of all members.

Public Methods

 FXObjectList ()
 Default constructor.

 FXObjectList (const FXObjectList &orig)
 Copy constructor.

FXObjectList & operator= (const FXObjectList &orig)
 Assignment operator.

FXint no () const
 Return number of elements.

void no (FXint n)
 Set number of elements.

FXint size () const
 Return size of list.

void size (FXint m)
 Set max number of elements.

FXObject *& operator[] (FXint i)
 Indexing operator.

FXObject *const & operator[] (FXint i) const
FXObject *& list (FXint i)
 Access to list.

FXObject *const & list (FXint i) const
FXObject ** list () const
 Access to content array.

void insert (FXint pos, FXObject *p)
 Insert element at certain position.

void prepend (FXObject *p)
 Prepend element.

void append (FXObject *p)
 Append element.

void replace (FXint pos, FXObject *p)
 Replace element.

void remove (FXint pos)
 Remove element at pos.

void remove (const FXObject *p)
 Remove element p.

FXint findf (const FXObject *p, FXint pos=0) const
 Find object in list, searching forward; return position or -1.

FXint findb (const FXObject *p, FXint pos=2147483647) const
 Find object in list, searching backward; return position or -1.

void clear ()
 Remove all elements.

void save (FXStream &store) const
 Save to a stream.

void load (FXStream &store)
 Load from a stream.

virtual ~FXObjectList ()
 Destructor.