Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
List of void pointers. More...
#include <FXPtrList.h>
Public Member Functions | |
FXPtrList () | |
Default constructor. | |
FXPtrList (const FXPtrList &other) | |
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. | |
FXPtrList & | operator= (const FXPtrList &other) |
Assignment operator. | |
FXPtrList & | adopt (FXPtrList &other) |
Adopt objects from other, leaving other empty. | |
FXival | no () const |
Return number of objects. | |
FXbool | no (FXival num) |
Set number of objects. | |
FXptr & | operator[] (FXival i) |
Indexing operator. | |
FXptr const & | operator[] (FXival i) const |
FXptr & | at (FXival i) |
Indexing operator. | |
FXptr const & | at (FXival i) const |
FXptr & | head () |
First element in list. | |
FXptr const & | head () const |
FXptr & | tail () |
Last element in list. | |
FXptr const & | tail () const |
FXptr * | data () |
Access to content array. | |
const FXptr * | data () const |
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. | |
FXbool | clear () |
Remove all objects. | |
~FXPtrList () | |
Destructor. | |
Protected Attributes | |
FXptr * | ptr |
List of void pointers.
Copyright © 1997-2022 Jeroen van der Zijp |