#include <vector.h>
|
| vector () |
| Initializes the vector to empty.
|
|
| vector (const vector &obj) |
| Copy Constructor.
|
|
| vector (vector &&obj) |
| Move Constructor.
|
|
template<typename ... Args> |
| vector (Args &&...args) |
| Initializes and calls push_back for all elements given.
|
|
vector< T > & | operator= (const vector< T > &obj) |
| Copies the obj.
|
|
void | reserve (unsigned int amount) |
| allocates enough memory for the amount given.
|
|
void | resize (unsigned int newSize) |
|
void | push_back (T obj) |
| Adds the new item to the array.
|
|
void | clear () |
| clears the buffer
|
|
void | remove (int index) |
| removes the item at the index
|
|
T & | at (int index) |
| returns the item at the desired index.
|
|
T & | back () |
| gives the last item.
|
|
void | pop_back () |
| Removes the last item.
|
|
T * | data () |
| gives the internal buffer
|
|
unsigned int | length () |
| returns the amount of objects in the internal buffer.
|
|
bool | empty () |
| Returns if the size is <= 0.
|
|
unsigned int | maxLength () |
| returns the maximum amount of objects in our internal buffer
|
|
T & | operator[] (int i) |
| Returns the obj for the given index.
|
|
| ~vector () |
| Deletes the allocated objects.
|
|
iterator | begin () |
|
iterator | begin () const |
|
iterator | end () |
|
iterator | end () const |
|
iterator | cbegin () const |
|
iterator | cend () const |
|
◆ vector() [1/4]
Initializes the vector to empty.
◆ vector() [2/4]
◆ vector() [3/4]
◆ vector() [4/4]
template<typename T >
template<typename ... Args>
Initializes and calls push_back for all elements given.
◆ ~vector()
Deletes the allocated objects.
◆ at()
returns the item at the desired index.
◆ back()
◆ begin() [1/2]
◆ begin() [2/2]
◆ cbegin()
◆ cend()
◆ clear()
◆ data()
gives the internal buffer
◆ empty()
Returns if the size is <= 0.
◆ end() [1/2]
◆ end() [2/2]
◆ length()
returns the amount of objects in the internal buffer.
◆ maxLength()
returns the maximum amount of objects in our internal buffer
◆ operator=()
◆ operator[]()
Returns the obj for the given index.
◆ pop_back()
◆ push_back()
Adds the new item to the array.
◆ remove()
removes the item at the index
◆ reserve()
allocates enough memory for the amount given.
◆ resize()
The documentation for this class was generated from the following file: