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

FX::FXObjectList Class Reference

List of pointers to objects. More...

#include <FXObjectList.h>

Inheritance diagram for FX::FXObjectList:
FX::FXObjectListOf< TYPE >

List of all members.

Public Member Functions

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

Protected Attributes

FXObject ** ptr

Detailed Description

List of pointers to objects.


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

Copyright © 1997-2016 Jeroen van der Zijp