![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Array of some generic type. More...
#include <FXArray.h>
Public Member Functions | |
| FXArray () | |
| Create as empty. | |
| FXArray (FXint n) | |
| Create with given size n. | |
| FXArray (const FXArray< EType > &src) | |
| Create initialized from another array. | |
| FXArray (const EType &src, FXint n) | |
| Create initialized with n copies of object. | |
| FXArray (const EType *src, FXint n) | |
| Create initialized with array of n objects. | |
| FXint | no () const |
| Return number of elements. | |
| FXbool | no (FXint n) |
| Change number of elements to n. | |
| FXArray< EType > & | operator= (const FXArray< EType > &src) |
| Assign from another list. | |
| EType & | operator[] (FXint i) |
| Index into array. | |
| const EType & | operator[] (FXint i) const |
| EType & | at (FXint i) |
| Index into list. | |
| const EType & | at (FXint i) const |
| EType & | head () |
| First element in list. | |
| const EType & | head () const |
| EType & | tail () |
| Last element in list. | |
| const EType & | tail () const |
| EType * | data () |
| Return pointer to list. | |
| const EType * | data () const |
| void | adopt (FXArray< EType > &src) |
| Adopt array from source. | |
| FXbool | assign (const EType &src) |
| Assign object p to list. | |
| FXbool | assign (const EType &src, FXint n) |
| Assign n copies of object to list. | |
| FXbool | assign (const EType *src, FXint n) |
| Assign n objects to list. | |
| FXbool | assign (const FXArray< EType > &src) |
| Assign n objects to list. | |
| FXbool | insert (FXint pos, const EType &src) |
| Insert an object. | |
| FXbool | insert (FXint pos, const EType &src, FXint n) |
| Insert n copies of object at specified position. | |
| FXbool | insert (FXint pos, const EType *src, FXint n) |
| Insert n objects at specified position. | |
| FXbool | insert (FXint pos, const FXArray< EType > &src) |
| Insert n objects at specified position. | |
| FXbool | prepend (const EType &src) |
| Prepend object. | |
| FXbool | prepend (const EType &src, FXint n) |
| Prepend n copies of object. | |
| FXbool | prepend (const EType *src, FXint n) |
| Prepend n objects. | |
| FXbool | prepend (const FXArray< EType > &src) |
| Prepend n objects. | |
| FXbool | append (const EType &src) |
| Append object. | |
| FXbool | append (const EType &src, FXint n) |
| Append n copies of object. | |
| FXbool | append (const EType *src, FXint n) |
| Append n objects. | |
| FXbool | append (const FXArray< EType > &src) |
| Append n objects. | |
| FXbool | replace (FXint pos, const EType &src) |
| Replace an object. | |
| FXbool | replace (FXint pos, FXint m, const EType &src, FXint n) |
| Replace the m objects at pos with n copies of src. | |
| FXbool | replace (FXint pos, FXint m, const EType *src, FXint n) |
| Replace m objects at pos by n objects from src. | |
| FXbool | replace (FXint pos, FXint m, const FXArray< EType > &src) |
| Replace m objects at pos by objects from src. | |
| FXbool | erase (FXint pos) |
| Remove object at pos. | |
| FXbool | erase (FXint pos, FXint n) |
| Remove n objects starting at pos. | |
| FXbool | push (const EType &src) |
| Push object to end. | |
| FXbool | pop () |
| Pop object from end. | |
| void | clear () |
| Remove all objects. | |
| ~FXArray () | |
| Delete data. | |
Array of some generic type.
|
|