#include <FUTracker.h>
Inheritance diagram for FUTrackedList< ObjectClass >:
Public Types | |
typedef fm::pvector< ObjectClass > | Parent |
Defines the parent class to the pointer array. | |
typedef ObjectClass * | item |
Defines the item pointer type contained by the pointer array. | |
typedef const ObjectClass * | const_item |
Defines the constant-version of the item pointer type contained by the pointer array. | |
typedef item * | iterator |
Defines the item pointer iterator for the pointer array. | |
typedef const_item * | const_iterator |
Defines the constant-version of the item pointer iterator for the pointer array. | |
Public Member Functions | |
virtual | ~FUTrackedList () |
Destructor. | |
void | clear () |
Clears the object tracked by this object list. | |
ObjectClass *& | front () |
Retrieves the first element of the container. | |
const ObjectClass *& | front () const |
See above. | |
ObjectClass *& | back () |
Retrieves the last element of the container. | |
const ObjectClass *& | back () const |
See above. | |
ObjectClass * | at (size_t index) |
Retrieves an indexed object in the list. | |
const ObjectClass * | at (size_t index) const |
See above. | |
template<class INTEGER> | |
ObjectClass * | operator[] (INTEGER index) |
See above. | |
template<class INTEGER> | |
const ObjectClass * | operator[] (INTEGER index) const |
See above. | |
iterator | begin () |
Retrieves an iterator for the first element in the list. | |
const_iterator | begin () const |
See above. | |
iterator | end () |
Retrieves an iterator for the element after the last element in the list. | |
const_iterator | end () const |
See above. | |
iterator | find (const ObjectClass *item) |
Retrieves an iterator for a given element in the list. | |
const_iterator | find (const ObjectClass *item) const |
See above. | |
void | push_back (ObjectClass *object) |
Adds an object to the container's containment list. | |
iterator | insert (iterator _iterator, ObjectClass *object) |
Inserts an object in the container's containment list. | |
void | insert (size_t index, ObjectClass *object) |
Inserts an object in the container's containment list. | |
template<class _It> | |
void | insert (iterator _where, _It _startIterator, _It _endIterator) |
Inserts a list of object in the container's containment list. | |
void | pop_back () |
Removes the last value of the tracked object list. | |
iterator | erase (iterator _it) |
Removes the value at the given position within the list. | |
void | erase (iterator first, iterator last) |
Removes a range of values from the list. | |
void | erase (size_t first, size_t last) |
Removes a range of values from the list. | |
bool | erase (const ObjectClass *value) |
Removes a value contained within the list, once. | |
void | erase (size_t index) |
Removes an indexed value contained within the list. | |
virtual bool | TracksObject (const FUTrackable *object) const |
Retrieves whether an object is contained by this container. | |
FUTrackedList< ObjectClass > & | operator= (const FUTrackedList< ObjectClass > &other) |
Clones a list of tracked objects. | |
bool | empty () const |
Inherited from pvector. | |
size_t | size () const |
Inherited from pvector. | |
void | reserve (size_t count) |
Inherited from pvector. | |
bool | contains (const ObjectClass *value) const |
Inherited from pvector. | |
bool | release (const ObjectClass *value) |
Releases a value contained within a list. | |
void | pop_front () |
Removes the first value of the tracked object list. | |
Protected Member Functions | |
virtual void | OnObjectReleased (FUTrackable *object) |
Removes an object from the container's containment list. |
Based on top of our modified version of the STL vector class, this contained object list holds pointers to some FUTrackable derived class and automatically removes objects when they are deleted.
|
Retrieves an indexed object in the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Retrieves the last element of the container.
Reimplemented from fm::pvector< ObjectClass >. |
|
Retrieves an iterator for the first element in the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Retrieves an iterator for the element after the last element in the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Removes an indexed value contained within the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Removes a value contained within the list, once.
Reimplemented from fm::pvector< ObjectClass >. |
|
Removes a range of values from the list.
Reimplemented from fm::vector< const void *, true >. |
|
Removes a range of values from the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Removes the value at the given position within the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Retrieves an iterator for a given element in the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Retrieves the first element of the container.
Reimplemented from fm::pvector< ObjectClass >. |
|
Inserts a list of object in the container's containment list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Inserts an object in the container's containment list.
|
|
Inserts an object in the container's containment list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Removes an object from the container's containment list.
Implements FUTracker. |
|
Clones a list of tracked objects. This list will stop tracking all its current tracked objects and will start tracking the objects within the other list.
|
|
Adds an object to the container's containment list.
|
|
Releases a value contained within a list. Use this function only if there is no duplicate pointers within the list.
Reimplemented from fm::pvector< ObjectClass >. |
|
Retrieves whether an object is contained by this container.
Reimplemented from FUTracker. |