Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Class «osutil::AbstractList»

Skeletal implementation of the List interface.

public: AbstractList();

Constructor.

public: virtual ~AbstractList();

Destructor.

public: virtual bool add(int32 index, oscore::Object* obj);

Inserts the specified element at the specified position in this list.

Parameters:
index — position in this list.
obj — pointer to any object of system.

Returns:
true if element is inserted.

public: virtual bool add(oscore::Object* obj);

Adds the element to the end of this list.

Parameters:
obj — pointer to any object of system.

Returns:
true if element is added.

public: virtual void clear();

Removes all of the elements from this list.

public: virtual oscore::Object* get(int32 index);

Gets the element from this list by index.

Parameters:
index — position in this list.

Returns:
pointer to object of system in this list.

public: virtual bool remove(int32 index);

Removes the element from this list

Parameters:
index — position in this list.

Returns:
true if element is removed.

public: virtual bool remove(oscore::Object* obj);

Removes the element from this list.

Parameters:
obj — pointer to any object of system.

Returns:
true if element is removed.

public: virtual int32 size();

Returns the number of elements in this list.

Returns:
number of elements.

public: virtual oscore::Object** toArray();

Returns an array containing all links to the Objects of list.

You must call <code>delete[]</code> for return value after it using.

Returns:
pointer to pointer of objects, or NULL if no elements.

Back to class list