#include <cdefaultlist.h>
Inheritance diagram for cDefaultList:
cDefaultList acts as a "soft owner" (see object ownership discussion in cObject documentation). Do not subclass your own classes from cDefaultList.
Public Member Functions | |
Constructors, destructor, assignment. | |
cDefaultList (const cDefaultList &list) | |
cDefaultList (const char *name=NULL) | |
virtual | ~cDefaultList () |
cDefaultList & | operator= (const cDefaultList &list) |
Redefined cObject member functions | |
virtual cPolymorphic * | dup () const |
virtual bool | isSoftOwner () |
virtual std::string | info () const |
virtual void | forEachChild (cVisitor *v) |
virtual void | netPack (cCommBuffer *buffer) |
virtual void | netUnpack (cCommBuffer *buffer) |
Container functions. | |
int | defaultListItems () const |
cObject * | defaultListGet (int k) |
bool | defaultListContains (cObject *obj) const |
Protected Member Functions | |
Redefined cObject member functions | |
void | take (cObject *obj) |
void | drop (cObject *obj) |
Friends | |
class | cObject |
|
Copy constructor. Throws exception. |
|
Constructor.
|
|
Destructor. The contained objects will be deleted. |
|
Returns true if the set contains the given object, false otherwise.
|
|
Get the element at the given position. k must be between 0 and items()-1 (inclusive). Note that elements may move as the result of add() and remove() operations. If the index is out of bounds, NULL is returned. |
|
Returns the number of elements stored.
|
|
Redefined.
Reimplemented from cObject. |
|
Duplication. Throws exception. Reimplemented from cObject. Reimplemented in cCompoundModule, and cSimpleModule. |
|
Calls v->visit(this) for each contained object. See cObject for more details. Reimplemented from cObject. Reimplemented in cModule, and cSimpleModule. |
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cPolymorphic. Reimplemented in cCompoundModule, and cSimpleModule. |
|
Returns true.
Reimplemented from cObject. |
|
Packing and unpacking cannot be supported with this class. This method raises an error. Reimplemented from cObject. |
|
Packing and unpacking cannot be supported with this class. This method raises an error. Reimplemented from cObject. |
|
Assignment operator. Throws exception. |
|
Redefined.
Reimplemented from cObject. |