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

FX::FXObjectList Class Reference

#include <FXObjectList.h>

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

Public Member Functions

 FXObjectList ()
 
 FXObjectList (const FXObjectList &orig)
 
 FXObjectList (FXObject *object)
 
 FXObjectList (FXObject **objects, FXint n)
 
FXObjectListoperator= (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
 
FXObjectListassign (FXObject *object)
 
FXObjectListassign (FXObject **objects, FXint n)
 
FXObjectListassign (FXObjectList &objects)
 
FXObjectListinsert (FXint pos, FXObject *object)
 
FXObjectListinsert (FXint pos, FXObject **objects, FXint n)
 
FXObjectListinsert (FXint pos, FXObjectList &objects)
 
FXObjectListprepend (FXObject *object)
 
FXObjectListprepend (FXObject **objects, FXint n)
 
FXObjectListprepend (FXObjectList &objects)
 
FXObjectListappend (FXObject *object)
 
FXObjectListappend (FXObject **objects, FXint n)
 
FXObjectListappend (FXObjectList &objects)
 
FXObjectListreplace (FXint pos, FXObject *object)
 
FXObjectListreplace (FXint pos, FXint m, FXObject **objects, FXint n)
 
FXObjectListreplace (FXint pos, FXint m, FXObjectList &objects)
 
FXObjectListerase (FXint pos)
 
FXObjectListerase (FXint pos, FXint n)
 
FXObjectListremove (const FXObject *object)
 
FXint find (const FXObject *object, FXint pos=0) const
 
FXint rfind (const FXObject *object, FXint pos=2147483647) const
 
FXObjectListclear ()
 
void save (FXStream &store) const
 
void load (FXStream &store)
 
virtual ~FXObjectList ()
 

Detailed Description

List of pointers to objects.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

FXObject* const& FX::FXObjectList::operator[] ( FXint  i) const
inline
FXObject*& FX::FXObjectList::at ( FXint  i)
inline

Indexing operator.

FXObject* const& FX::FXObjectList::at ( FXint  i) const
inline
FXObject** FX::FXObjectList::data ( ) const
inline

Access to content array.

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.

Copyright © 1997-2005 Jeroen van der Zijp