#include <yateclass.h>
Inheritance diagram for ObjList:
Public Member Functions | |
ObjList () | |
virtual | ~ObjList () |
virtual void * | getObject (const String &name) const |
unsigned int | length () const |
unsigned int | count () const |
GenObject * | get () const |
GenObject * | set (const GenObject *obj, bool delold=true) |
ObjList * | next () const |
ObjList * | last () const |
ObjList * | skipNull () const |
ObjList * | skipNext () const |
ObjList * | operator+ (int index) const |
GenObject * | operator[] (int index) const |
GenObject * | operator[] (const String &str) const |
ObjList * | find (const GenObject *obj) const |
ObjList * | find (const String &str) const |
ObjList * | insert (const GenObject *obj, bool compact=true) |
ObjList * | append (const GenObject *obj, bool compact=true) |
GenObject * | remove (bool delobj=true) |
GenObject * | remove (GenObject *obj, bool delobj=true) |
void | clear () |
bool | autoDelete () |
void | setDelete (bool autodelete) |
A simple single-linked object list handling class
|
Creates a new, empty list. |
|
Destroys the list and everything in it. |
|
Append an object to the end of the list
|
|
Get the automatic delete flag
|
|
Clear the list and optionally delete all contained objects |
|
Get the number of non-null objects in the list
|
|
Get the item in the list that holds an object by String value
|
|
Get the item in the list that holds an object
|
|
Get the object associated to this list item
|
|
Get a pointer to a derived class given that class name
Reimplemented from GenObject. |
|
Insert an object at this point
|
|
Get the last item in the list
|
|
Get the number of elements in the list
|
|
Get the next item in the list
|
|
Pointer-like indexing operator
|
|
Array-like indexing operator
|
|
Array-like indexing operator
|
|
Delete the list item that holds a given object
|
|
Delete this list item
|
|
Set the object associated to this list item
|
|
Set the automatic delete flag
|
|
Advance in the list skipping over NULL holding items
|
|
Skip over NULL holding items in the list
|