#include <FXObjectList.h>
Public Member Functions | |
FXObjectList () | |
FXObjectList (const FXObjectList &orig) | |
FXObjectList (FXObject *object) | |
FXObjectList (FXObject **objects, FXint n) | |
FXObjectList & | operator= (const FXObjectList &orig) |
FXint | no () const |
void | no (FXint num) |
FXObject *& | operator[] (FXint i) |
FXObject *const & | operator[] (FXint i) const |
FXObject *& | at (FXint i) |
FXObject *const & | at (FXint i) const |
FXObject ** | data () const |
FXObjectList & | assign (FXObject *object) |
FXObjectList & | assign (FXObject **objects, FXint n) |
FXObjectList & | assign (FXObjectList &objects) |
FXObjectList & | insert (FXint pos, FXObject *object) |
FXObjectList & | insert (FXint pos, FXObject **objects, FXint n) |
FXObjectList & | insert (FXint pos, FXObjectList &objects) |
FXObjectList & | prepend (FXObject *object) |
FXObjectList & | prepend (FXObject **objects, FXint n) |
FXObjectList & | prepend (FXObjectList &objects) |
FXObjectList & | append (FXObject *object) |
FXObjectList & | append (FXObject **objects, FXint n) |
FXObjectList & | append (FXObjectList &objects) |
FXObjectList & | replace (FXint pos, FXObject *object) |
FXObjectList & | replace (FXint pos, FXint m, FXObject **objects, FXint n) |
FXObjectList & | replace (FXint pos, FXint m, FXObjectList &objects) |
FXObjectList & | erase (FXint pos) |
FXObjectList & | erase (FXint pos, FXint n) |
FXObjectList & | remove (const FXObject *object) |
FXint | find (const FXObject *object, FXint pos=0) const |
FXint | rfind (const FXObject *object, FXint pos=2147483647) const |
FXObjectList & | clear () |
void | save (FXStream &store) const |
void | load (FXStream &store) |
virtual | ~FXObjectList () |
Protected Attributes | |
FXObject ** | ptr |
FX::FXObjectList::FXObjectList | ( | ) |
Default constructor.
FX::FXObjectList::FXObjectList | ( | const FXObjectList & | orig | ) |
Copy constructor.
FX::FXObjectList::FXObjectList | ( | FXObject * | object | ) |
Construct and init with single object.
FX::FXObjectList::FXObjectList | ( | FXObject ** | objects, | |
FXint | n | |||
) |
Construct and init with list of objects.
virtual FX::FXObjectList::~FXObjectList | ( | ) | [virtual] |
Destructor.
FXObjectList& FX::FXObjectList::operator= | ( | const FXObjectList & | orig | ) |
Assignment operator.
FXint FX::FXObjectList::no | ( | ) | const [inline] |
Return number of objects.
void FX::FXObjectList::no | ( | FXint | num | ) |
Set number of objects.
FXObject*& FX::FXObjectList::operator[] | ( | FXint | i | ) | [inline] |
Indexing operator.
Reimplemented in FX::FXObjectListOf< TYPE >, FX::FXObjectListOf< FX::FXListItem >, FX::FXObjectListOf< FX::FXGLObject >, FX::FXObjectListOf< FX::FXHeaderItem >, and FX::FXObjectListOf< FX::FXIconItem >.
FXObject*& FX::FXObjectList::at | ( | FXint | i | ) | [inline] |
Indexing operator.
Reimplemented in FX::FXObjectListOf< TYPE >, FX::FXObjectListOf< FX::FXListItem >, FX::FXObjectListOf< FX::FXGLObject >, FX::FXObjectListOf< FX::FXHeaderItem >, and FX::FXObjectListOf< FX::FXIconItem >.
FXObject** FX::FXObjectList::data | ( | ) | const [inline] |
Access to content array.
Reimplemented in FX::FXObjectListOf< TYPE >, FX::FXObjectListOf< FX::FXListItem >, FX::FXObjectListOf< FX::FXGLObject >, FX::FXObjectListOf< FX::FXHeaderItem >, and FX::FXObjectListOf< FX::FXIconItem >.
FXObjectList& FX::FXObjectList::assign | ( | FXObject * | object | ) |
Assign object p to list.
FXObjectList& FX::FXObjectList::assign | ( | FXObject ** | objects, | |
FXint | n | |||
) |
Assign n objects to list.
FXObjectList& FX::FXObjectList::assign | ( | FXObjectList & | objects | ) |
Assign objects to list.
FXObjectList& FX::FXObjectList::insert | ( | FXint | pos, | |
FXObject * | object | |||
) |
Insert object at certain position.
FXObjectList& FX::FXObjectList::insert | ( | FXint | pos, | |
FXObject ** | objects, | |||
FXint | n | |||
) |
Insert n objects at specified position.
FXObjectList& FX::FXObjectList::insert | ( | FXint | pos, | |
FXObjectList & | objects | |||
) |
Insert objects at specified position.
FXObjectList& FX::FXObjectList::prepend | ( | FXObject * | object | ) |
Prepend object.
FXObjectList& FX::FXObjectList::prepend | ( | FXObject ** | objects, | |
FXint | n | |||
) |
Prepend n objects.
FXObjectList& FX::FXObjectList::prepend | ( | FXObjectList & | objects | ) |
Prepend objects.
FXObjectList& FX::FXObjectList::append | ( | FXObject * | object | ) |
Append object.
FXObjectList& FX::FXObjectList::append | ( | FXObject ** | objects, | |
FXint | n | |||
) |
Append n objects.
FXObjectList& FX::FXObjectList::append | ( | FXObjectList & | objects | ) |
Append objects.
FXObjectList& FX::FXObjectList::replace | ( | FXint | pos, | |
FXObject * | object | |||
) |
Replace object at position by given object.
FXObjectList& FX::FXObjectList::replace | ( | FXint | pos, | |
FXint | m, | |||
FXObject ** | objects, | |||
FXint | n | |||
) |
Replaces the m objects at pos with n objects.
FXObjectList& FX::FXObjectList::replace | ( | FXint | pos, | |
FXint | m, | |||
FXObjectList & | objects | |||
) |
Replace the m objects at pos with objects.
FXObjectList& FX::FXObjectList::erase | ( | FXint | pos | ) |
Remove object at pos.
FXObjectList& FX::FXObjectList::erase | ( | FXint | pos, | |
FXint | n | |||
) |
Remove n objects at pos.
FXObjectList& FX::FXObjectList::remove | ( | const FXObject * | object | ) |
Remove object.
FXint FX::FXObjectList::find | ( | const FXObject * | object, | |
FXint | pos = 0 | |||
) | const |
Find object in list, searching forward; return position or -1.
FXint FX::FXObjectList::rfind | ( | const FXObject * | object, | |
FXint | pos = 2147483647 | |||
) | const |
Find object in list, searching backward; return position or -1.
FXObjectList& FX::FXObjectList::clear | ( | ) |
Remove all objects.
void FX::FXObjectList::save | ( | FXStream & | store | ) | const |
Save to a stream.
void FX::FXObjectList::load | ( | FXStream & | store | ) |
Load from a stream.