FX::FXObjectList Class Reference

#include <FXObjectList.h>

Inheritance diagram for FX::FXObjectList:

Inheritance graph
[legend]

List of all members.


Detailed Description

List of pointers to objects.

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 ()

Protected Attributes

FXObject ** ptr

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]

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

FXObject** FX::FXObjectList::data (  )  const [inline]

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.


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

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:07:59 2008 for TnFOX by doxygen v1.5.6