|
| | Vector ()=default |
| | Default constructor.
|
| |
| | Vector (int len) |
| | Constructs vector of specified size.
|
| |
| | Vector (int len, const T &val) |
| | Constructs vector of specified size and value.
|
| |
| | Vector (const T *pSrc, int len) |
| | Constructs vector that is a copy of specified vector.
|
| |
| | Vector (const T *pSrc, int srcStride2, int len) |
| | Constructs vector that is a copy of specified vector.
|
| |
| | Vector (const Vector< T > &rhs)=default |
| | Copy constructor.
|
| |
| | Vector (Vector< T > &&rhs) noexcept=default |
| | Move constructor.
|
| |
| virtual | ~Vector ()=default |
| | Destructor.
|
| |
| Vector< T > & | operator= (const Vector< T > &rhs)=default |
| | Copy assignment operator.
|
| |
| Vector< T > & | operator= (Vector< T > &&rhs) noexcept=default |
| | Move assignment operator.
|
| |
| Vector< T > & | operator*= (const T &scalar) |
| |
| Vector< T > & | operator/= (const T &scalar) |
| |
| Vector< T > & | operator+= (const T &scalar) |
| |
| Vector< T > & | operator+= (const Vector< T > &rhs) |
| |
| Vector< T > & | operator-= (const T &scalar) |
| |
| Vector< T > & | operator-= (const Vector< T > &rhs) |
| |
| | Array1D ()=default |
| | Default constructor.
|
| |
| | Array1D (int len) |
| | Constructs array of specified size.
|
| |
| | Array1D (int len, const T &val) |
| | Constructs array of specified size and value.
|
| |
| | Array1D (const T *pSrc, int len) |
| | Constructs array that is a copy of specified array.
|
| |
| | Array1D (const T *pSrc, int srcStride2, int len) |
| | Constructs array that is a copy of specified array.
|
| |
| | Array1D (const Array1D &rhs) |
| | Copy constructor.
|
| |
| | Array1D (Array1D &&rhs) noexcept |
| | Move constructor.
|
| |
| virtual | ~Array1D () |
| | Destructor.
|
| |
| Array1D & | operator= (const Array1D &rhs) |
| | Copy assignment operator.
|
| |
| Array1D & | operator= (Array1D &&rhs) noexcept |
| | Move assignment operator.
|
| |
| T & | operator[] (int index) |
| | Index array element.
|
| |
| const T & | operator[] (int index) const |
| | Index array element.
|
| |
| bool | empty () const |
| | Tests if the array is empty.
|
| |
| void | resize (int len) |
| | Resizes array.
|
| |
| void | clear () |
| | Resizes array to zero length.
|
| |
| int | size () const |
| | Number of elements in the array.
|
| |
| int | len () const |
| | Length of the array.
|
| |
| T * | ptrData () |
| | Retrieves the pointer to the beginning of the array.
|
| |
| const T * | ptrData () const |
| | Retrieves the pointer to the beginning of the array.
|
| |
| void | swap (Array1D &rhs) |
| | Swaps this array with another one.
|
| |
| void | set (const T &val) |
| | Sets array elements to a value.
|
| |
template<typename T>
class blo::Vector< T >
Vector.
- Template Parameters
-