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

FX::FXPtrListOf< TYPE > Class Template Reference

List to pointers to TYPE. More...

#include <FXPtrList.h>

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

List of all members.

Public Member Functions

 FXPtrListOf ()
 Default constructor.
 FXPtrListOf (const FXPtrListOf< TYPE > &src)
 Copy constructor.
 FXPtrListOf (TYPE *object)
 Construct and init with single object.
 FXPtrListOf (TYPE *object, FXival n)
 Construct and init with n copies of object.
 FXPtrListOf (TYPE **objects, FXival n)
 Construct and init with list of objects.
FXPtrListOf< TYPE > & operator= (const FXPtrListOf< TYPE > &src)
 Assignment operator.
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
FXPtrListOf< TYPE > & adopt (FXPtrListOf< TYPE > &src)
 Adopt objects from orig, leaving orig empty.
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 FXPtrListOf< 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 FXPtrListOf< 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 FXPtrListOf< 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 FXPtrListOf< 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 FXPtrListOf< 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::FXPtrList
 FXPtrList ()
 Default constructor.
 FXPtrList (const FXPtrList &src)
 Copy constructor.
 FXPtrList (FXptr object)
 Construct and init with single object.
 FXPtrList (FXptr object, FXival n)
 Construct and init with n copies of object.
 FXPtrList (FXptr *objects, FXival n)
 Construct and init with list of objects.
FXPtrListoperator= (const FXPtrList &src)
 Assignment operator.
FXival no () const
 Return number of objects.
FXbool no (FXival num)
 Set number of objects.
FXPtrListadopt (FXPtrList &src)
 Adopt objects from src, leaving src empty.
FXival find (FXptr object, FXival pos=0) const
 Find object in list, searching forward; return position or -1.
FXival rfind (FXptr object, FXival pos=2147483647) const
 Find object in list, searching backward; return position or -1.
FXbool assign (FXptr object)
 Assign object to list.
FXbool assign (FXptr object, FXival n)
 Assign n copies of object to list.
FXbool assign (FXptr *objects, FXival n)
 Assign n objects to list.
FXbool assign (const FXPtrList &objects)
 Assign objects to list.
FXbool insert (FXival pos, FXptr object)
 Insert object at certain position.
FXbool insert (FXival pos, FXptr object, FXival n)
 Insert n copies of object at specified position.
FXbool insert (FXival pos, FXptr *objects, FXival n)
 Insert n objects at specified position.
FXbool insert (FXival pos, const FXPtrList &objects)
 Insert objects at specified position.
FXbool prepend (FXptr object)
 Prepend object.
FXbool prepend (FXptr object, FXival n)
 Prepend n copies of object.
FXbool prepend (FXptr *objects, FXival n)
 Prepend n objects.
FXbool prepend (const FXPtrList &objects)
 Prepend objects.
FXbool append (FXptr object)
 Append object.
FXbool append (FXptr object, FXival n)
 Append n copies of object.
FXbool append (FXptr *objects, FXival n)
 Append n objects.
FXbool append (const FXPtrList &objects)
 Append objects.
FXbool replace (FXival pos, FXptr object)
 Replace object at position by given object.
FXbool replace (FXival pos, FXival m, FXptr object, FXival n)
 Replaces the m objects at pos with n copies of object.
FXbool replace (FXival pos, FXival m, FXptr *objects, FXival n)
 Replaces the m objects at pos with n objects.
FXbool replace (FXival pos, FXival m, const FXPtrList &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 (FXptr object)
 Remove object.
FXbool push (FXptr object)
 Push object to end.
FXbool pop ()
 Pop object from end.
void clear ()
 Remove all objects.
 ~FXPtrList ()
 Destructor.

Additional Inherited Members

- Protected Attributes inherited from FX::FXPtrList
FXptr * ptr

Detailed Description

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

List to pointers to TYPE.


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

Copyright © 1997-2016 Jeroen van der Zijp