Class to handle with lists of FlashItem.
More...
#include <client.h>
|
| Vector () |
| Default constructor.
|
|
| Vector (const Vector &src) |
| Copy constructor.
|
|
virtual | ~Vector () |
| Virtual destructor.
|
|
Vector & | operator= (const Vector &src) |
| Assigment operator overload.
|
|
FlashItem & | operator[] (size_t n) |
| Returns a reference to the element at position n in the vector container.
|
|
const FlashItem & | operator[] (size_t n) const |
| Returns a reference to the element at position n in the vector container.
|
|
FlashItem & | at (size_t n) |
| Returns a reference to the element at position n in the vector container.
|
|
const FlashItem & | at (size_t n) const |
| Returns a reference to the element at position n in the vector container.
|
|
FlashItem & | front () const |
| Get a reference to the first element in the container.
|
|
FlashItem & | back () const |
| Get a reference to the last element in the container.
|
|
void | pushBack (const FlashItem &value) |
| Appends the given element value to the end of the container.
|
|
void | popBack () |
| Removes the last element of the container.
|
|
void | resize (size_t count) |
| Resizes the container to contain count elements. The new element will be initialized with default values.
|
|
void | resize (size_t count, const FlashItem &value) |
| Resizes the container to contain count elements.
|
|
size_t | size () const |
| Get the number of elements in the container.
|
|
void | clear () |
| Erases all elements from the container. After this call, size() returns zero.
|
|
Class to handle with lists of FlashItem.
◆ Vector() [1/2]
◆ Vector() [2/2]
◆ ~Vector()
◆ at() [1/2]
Returns a reference to the element at position n in the vector container.
- Parameters
-
n | Position of an element in the container. |
- Returns
- The element at the specified position in the vector.
◆ at() [2/2]
Returns a reference to the element at position n in the vector container.
- Parameters
-
n | Position of an element in the container. |
- Returns
- The element at the specified position in the vector.
◆ back()
Get a reference to the last element in the container.
- Returns
- A reference to the last element in the container.
◆ clear()
Erases all elements from the container. After this call, size() returns zero.
◆ front()
Get a reference to the first element in the container.
- Returns
- a reference to the first element in the container.
◆ operator=()
Assigment operator overload.
- Parameters
-
- Returns
- A reference to this object
◆ operator[]() [1/2]
Returns a reference to the element at position n in the vector container.
- Parameters
-
n | Position of an element in the container. |
- Returns
- The element at the specified position in the vector.
◆ operator[]() [2/2]
const FlashItem & operator[] |
( |
size_t | n | ) |
const |
Returns a reference to the element at position n in the vector container.
- Parameters
-
n | Position of an element in the container. |
- Returns
- The element at the specified position in the vector.
◆ popBack()
Removes the last element of the container.
◆ pushBack()
Appends the given element value to the end of the container.
- Parameters
-
value | The value of the element to append |
◆ resize() [1/2]
void resize |
( |
size_t | count | ) |
|
Resizes the container to contain count elements. The new element will be initialized with default values.
- Parameters
-
count | The new size of the container |
◆ resize() [2/2]
void resize |
( |
size_t | count, |
|
|
const FlashItem & | value ) |
Resizes the container to contain count elements.
- Parameters
-
count | The new size of the container |
value | The value to initialize the new elements with |
◆ size()
Get the number of elements in the container.
- Returns
- The number of elements in the container