|
iterator | begin () |
local | begin () |
const_iterator | begin () const |
local | begin () |
iterator | end () |
var | end () |
local | end () |
const_iterator | end () const |
local | end () |
const_iterator | cbegin () const |
local | cbegin () |
const_iterator | cend () const |
local | cend () |
reverse_iterator | rbegin () |
local | rbegin () |
const_reverse_iterator | rbegin () const |
local | rbegin () |
reverse_iterator | rend () |
var | rend () |
local | rend () |
const_reverse_iterator | rend () const |
local | rend () |
const_reverse_iterator | crbegin () const |
local | crbegin () |
const_reverse_iterator | crend () const |
local | crend () |
| Vector () |
| Constructor. More...
|
|
| Vector () |
| Constructor. More...
|
|
| Vector () |
| Constructor. More...
|
|
| Vector (ssize_t capacity) |
| Constructor with a capacity. More...
|
|
| Vector ( var capacity) |
| Constructor with a capacity. More...
|
|
| Vector ( local capacity) |
| Constructor with a capacity. More...
|
|
| ~Vector () |
| Destructor. More...
|
|
| Vector (const Vector< T > &other) |
| Copy constructor. More...
|
|
| Vector ( var other) |
| Copy constructor. More...
|
|
| Vector ( local other) |
| Copy constructor. More...
|
|
| Vector (Vector< T > &&other) |
| Move constructor. More...
|
|
Vector< T > & | operator= (const Vector< T > &other) |
| Copy assignment operator. More...
|
|
var | operator= ( var other) |
| Copy assignment operator. More...
|
|
local | operator= ( local other) |
| Copy assignment operator. More...
|
|
Vector< T > & | operator= (Vector< T > &&other) |
| Move assignment operator. More...
|
|
var | operator= ( var other) |
| Move assignment operator. More...
|
|
local | operator= ( local other) |
| Move assignment operator. More...
|
|
void | reserve (ssize_t n) |
| Request a change in capacity. More...
|
|
var | reserve ( var n) |
| Request a change in capacity. More...
|
|
local | reserve ( local n) |
| Request a change in capacity. More...
|
|
ssize_t | capacity () const |
| Returns the size of the storage space currently allocated for the vector, expressed in terms of elements. More...
|
|
ssize_t | size () const |
| Returns the number of elements in the vector. More...
|
|
bool | empty () const |
| Returns whether the vector is empty (i.e. More...
|
|
ssize_t | max_size () const |
| Returns the maximum number of elements that the vector can hold. More...
|
|
ssize_t | getIndex (T object) const |
| Returns index of a certain object, return UINT_MAX if doesn't contain the object. More...
|
|
local | getIndex ( local object) |
| Returns index of a certain object, return UINT_MAX if doesn't contain the object. More...
|
|
const_iterator | find (T object) const |
| Find the object in the vector. More...
|
|
var | find ( var object) |
| Find the object in the vector. More...
|
|
local | find ( local object) |
| Find the object in the vector. More...
|
|
iterator | find (T object) |
T | at (ssize_t index) const |
| Returns the element at position 'index' in the vector. More...
|
|
var | at ( var index) |
| Returns the element at position 'index' in the vector. More...
|
|
local | at ( local index) |
| Returns the element at position 'index' in the vector. More...
|
|
T | front () const |
| Returns the first element in the vector. More...
|
|
T | back () const |
| Returns the last element of the vector. More...
|
|
var | back () |
| Returns the last element of the vector. More...
|
|
local | back () |
| Returns the last element of the vector. More...
|
|
T | getRandomObject () const |
| Returns a random element of the vector. More...
|
|
var | getRandomObject () |
| Returns a random element of the vector. More...
|
|
local | getRandomObject () |
| Returns a random element of the vector. More...
|
|
bool | contains (T object) const |
| Returns a Boolean value that indicates whether object is present in vector. More...
|
|
var | contains ( var object) |
| Returns a Boolean value that indicates whether object is present in vector. More...
|
|
local | contains ( local object) |
| Returns a Boolean value that indicates whether object is present in vector. More...
|
|
bool | equals (const Vector< T > &other) |
| Returns true if the two vectors are equal. More...
|
|
var | equals ( var other) |
| Returns true if the two vectors are equal. More...
|
|
local | equals ( local other) |
| Returns true if the two vectors are equal. More...
|
|
void | pushBack (T object) |
| Adds a new element at the end of the vector, after its current last element. More...
|
|
void | pushBack (const Vector< T > &other) |
| Push all elements of an existing vector to the end of current vector. More...
|
|
void | insert (ssize_t index, T object) |
| Insert a certain object at a certain index. More...
|
|
void | popBack () |
| Removes the last element in the vector, effectively reducing the container size by one, decrease the referece count of the deleted object. More...
|
|
var | popBack () |
| Removes the last element in the vector, effectively reducing the container size by one, decrease the referece count of the deleted object. More...
|
|
local | popBack () |
| Removes the last element in the vector, effectively reducing the container size by one, decrease the referece count of the deleted object. More...
|
|
void | eraseObject (T object, bool removeAll=false) |
| Remove a certain object in Vector. More...
|
|
iterator | erase (iterator position) |
| Removes from the vector with an iterator. More...
|
|
iterator | erase (iterator first, iterator last) |
| Removes from the vector with a range of elements ( [first, last) ). More...
|
|
iterator | erase (ssize_t index) |
| Removes from the vector with an index. More...
|
|
void | clear () |
| Removes all elements from the vector (which are destroyed), leaving the container with a size of 0. More...
|
|
void | swap (T object1, T object2) |
| Swap two elements. More...
|
|
void | swap (ssize_t index1, ssize_t index2) |
| Swap two elements with certain indexes. More...
|
|
void | replace (ssize_t index, T object) |
| Replace object at index with another object. More...
|
|
var | replace ( var index, var object) |
| Replace object at index with another object. More...
|
|
local | replace ( local index, local object) |
| Replace object at index with another object. More...
|
|
void | reverse () |
| reverses the vector More...
|
|
var | reverse () |
| reverses the vector More...
|
|
local | reverse () |
| reverses the vector More...
|
|
void | shrinkToFit () |
| Shrinks the vector so the memory footprint corresponds with the number of items. More...
|
|