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

FX::FXObjectListOf< TYPE > Class Template Reference

List to pointers to objects of TYPE. More...

#include <FXObjectList.h>

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

List of all members.

Public Member Functions

 FXObjectListOf ()
 Default constructor.
 FXObjectListOf (const FXObjectListOf< TYPE > &src)
 Copy constructor.
 FXObjectListOf (TYPE *object)
 Construct and init with single object.
 FXObjectListOf (TYPE *object, FXival n)
 Construct and init with n copies of object.
 FXObjectListOf (TYPE **objects, FXival n)
 Construct and init with list of objects.
FXObjectListOf< TYPE > & operator= (const FXObjectListOf< TYPE > &orig)
 Assignment operator.
FXObjectListOf< TYPE > & adopt (FXObjectListOf< TYPE > &src)
 Adopt objects from src, leaving src empty.
TYPE *& operator[] (FXival i)
 Indexing operator.
TYPE *const & operator[] (FXival i) const
TYPE *& at (FXival i)
 Indexing operator.
TYPE *const & at (FXival i) const
TYPE *& head ()
 First element in list.
TYPE *const & head () const
TYPE *& tail ()
 Last element in list.
TYPE *const & tail () const
TYPE ** data ()
 Access to content array.
TYPE *const * data () const
FXival find (TYPE *object, FXival pos=0) const
 Find object in list, searching forward; return position or -1.
FXival rfind (TYPE *object, FXival pos=2147483647) const
 Find object in list, searching backward; return position or -1.
FXbool assign (TYPE *object)
 Assign object to list.
FXbool assign (TYPE *object, FXival n)
 Assign n copies of object to list.
FXbool assign (TYPE **objects, FXival n)
 Assign n objects to list.
FXbool assign (const FXObjectListOf< TYPE > &objects)
 Assign objects to list.
FXbool insert (FXival pos, TYPE *object)
 Insert object at certain position.
FXbool insert (FXival pos, TYPE *object, FXival n)
 Insert n copies of object at specified position.
FXbool insert (FXival pos, TYPE **objects, FXival n)
 Insert n objects at specified position.
FXbool insert (FXival pos, const FXObjectListOf< TYPE > &objects)
 Insert objects at specified position.
FXbool prepend (TYPE *object)
 Prepend object.
FXbool prepend (TYPE *object, FXival n)
 Prepend n copies of object.
FXbool prepend (TYPE **objects, FXival n)
 Prepend n objects.
FXbool prepend (const FXObjectListOf< TYPE > &objects)
 Prepend objects.
FXbool append (TYPE *object)
 Append object.
FXbool append (TYPE *object, FXival n)
 Append n copies of object.
FXbool append (TYPE **objects, FXival n)
 Append n objects.
FXbool append (const FXObjectListOf< TYPE > &objects)
 Append objects.
FXbool replace (FXival pos, TYPE *object)
 Replace object at position by given object.
FXbool replace (FXival pos, FXival m, TYPE *object, FXival n)
 Replaces the m objects at pos with n copies of object.
FXbool replace (FXival pos, FXival m, TYPE **objects, FXival n)
 Replaces the m objects at pos with n objects.
FXbool replace (FXival pos, FXival m, const FXObjectListOf< TYPE > &objects)
 Replace the m objects at pos with objects.
FXbool remove (TYPE *object)
 Remove object.
FXbool push (TYPE *object)
 Push object to end.
- Public Member Functions inherited from FX::FXObjectList
 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.
FXObjectListadopt (FXObjectList &orig)
 Adopt objects from orig, leaving orig empty.
FXival no () const
 Return number of objects.
FXbool no (FXival num)
 Set number of objects.
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.

Additional Inherited Members

- Protected Attributes inherited from FX::FXObjectList
FXObject ** ptr

Detailed Description

template<typename TYPE>
class FX::FXObjectListOf< TYPE >

List to pointers to objects of TYPE.


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

Copyright © 1997-2016 Jeroen van der Zijp