#include <FMArray.h>
Inheritance diagram for vector< T >:
Public Member Functions | |
vector () | |
Default constructor. | |
vector (size_t size) | |
Constructor: Builds a dynamically-sized array of the wanted size. | |
vector (size_t size, const T &defaultValue) | |
Constructor: Builds a dynamically-sized array of the wanted size. | |
vector (const std::vector ©) | |
Copy constructor. | |
vector (const T *values, size_t count) | |
Constructor: Builds a dynamically-sized array from a constant-sized array. | |
template<typename _T> | |
iterator | find (const _T &value) |
Retrieves an iterator for a given element. | |
template<typename _T> | |
const_iterator | find (const _T &value) const |
See above. | |
void | erase (iterator it) |
Removes the value at the given position within the list. | |
void | erase (iterator first, iterator last) |
Removes the value at the given position within the list. | |
bool | erase (const T &value) |
Removes a value contained within the list, once. | |
void | erase (size_t index) |
Removes an indexed value contained within the list. | |
bool | release (const T &value) |
Releases a value contained within a list. | |
bool | contains (const T &value) const |
Retrieves whether the list contains a given value. |
Built on top of the standard C++ vector class, this class improves on the interface by adding useful extra functionality, such as constructor that takes in a constant-sized array, comparison which a constant-sized array, erase and find functions that take in a value, etc.
|
Constructor: Builds a dynamically-sized array of the wanted size.
|
|
Constructor: Builds a dynamically-sized array of the wanted size.
|
|
Copy constructor.
|
|
Constructor: Builds a dynamically-sized array from a constant-sized array.
|
|
Retrieves whether the list contains a given value.
|
|
Removes an indexed value contained within the list.
|
|
Removes a value contained within the list, once.
|
|
Removes the value at the given position within the list.
|
|
Removes the value at the given position within the list.
|
|
Retrieves an iterator for a given element.
|
|
Releases a value contained within a list. Use this function only if your vector contains pointers and you are certain that there is no duplicate pointers within the list.
|