| GPL_Reference | public |
GPL_Reference::operator=(). Return the list.
GPL_Boolean operator==(const GPL_List<T> & list) const
Return TRUE if the list contains the same elements in the same
order as list and FALSE otherwise.
GPL_Boolean operator!=(const GPL_List<T> & list) const
Return FALSE if the list contains the same elements in the same
order as list and TRUE otherwise.
T & operator[](const unsigned long i)
Return a reference to the i-th element in the list, counting from
zero. This method blindly steps into the data and is invalid if the
object is null or the index out-of-bounds. This method makes a private
copy of the data first, since the caller may modify the internal state.
const T & operator[](const unsigned long i) const
Return a reference to the i-th element in the list, counting from
zero. This method blindly steps into the data and is invalid if the
object is null or the index out-of-bounds.
unsigned long GetSize(void) const
Return the number of elements for which the list has storage.
unsigned long GetCount(void) const
Return the number of elements in the list.
const T & GetElement(const unsigned long i) const
Return a reference to the i-th element in the list, counting from
zero. This method blindly steps into the data and is invalid if the
object is null or the index out-of-bounds.
virtual long Compare(const GPL_List<T> & list) const
Perform an element-by-element comparison of this list with list.
Return 0 if the elements are identical and anything but 0 otherwise.
GPL_Boolean Contains(const T & data) const
Return TRUE if the list contains the element data.
long Find(const T & data) const
Return the position of data in the list and -1 if data is
not in the list.
void Clear(void)
Remove all elements from the list.
void SetElement(const T & data, const unsigned long i)
Set the element at location i to be element. This method
blindly steps into the data and is invalid if the object is null or the
index out-of-bounds. This method makes a private copy of the data
first, since the caller may modify the internal state.
void Insert(const T & data, const unsigned long at = 0)
Insert the element data into the list at position at.
void Append(const T & data)
Append the element data to the list at the end.
void Remove(const unsigned long i)
Removes the i-th element of the list. Behavior is undefined if
i is greater than or equal to the number of elements in the list.
virtual void DataChanged(void)
This method is hook for sub-classes to use to know when the internal
state of an object has changed.