|
MeVisLab Toolbox Reference
|
#include <WEMObjectVector.h>
Public Member Functions | |
| WEMObjectVector (unsigned int init=0, unsigned int bs=8192) | |
| Standard constructor. | |
| ~WEMObjectVector () | |
| Standard destructor. | |
| WEMObjectVector (WEMObjectVector &&other) noexcept | |
| Move c'tor. | |
| WEMObjectVector & | operator= (WEMObjectVector &&other) noexcept |
| Move assignment operator. | |
| unsigned int | num () const |
| Returns the number of elements in this vector. | |
| T * | append (unsigned int *pos) |
| Appends an element to this vector and returns a pointer to it. | |
| void | deleteAt (unsigned int pos) |
| Deletes an element at the given position. | |
| void | destroy () |
| Deletes all elements in this vector. | |
Dynamic template vector. For speed and better memory handling, the vector is an array within an array. The base blocks have a BLOCKSIZE of 8192. This allows for quick expanding.
Definition at line 28 of file WEMObjectVector.h.
| ml::WEMObjectVector< T >::WEMObjectVector | ( | unsigned int | init = 0, |
| unsigned int | bs = 8192 ) |
Standard constructor.
Definition at line 80 of file WEMObjectVector.h.
References T, and WEMObjectVector().
Referenced by operator=(), WEMObjectVector(), and WEMObjectVector().
| ml::WEMObjectVector< T >::~WEMObjectVector | ( | ) |
|
noexcept |
| T * ml::WEMObjectVector< T >::append | ( | unsigned int * | pos | ) |
Appends an element to this vector and returns a pointer to it.
Definition at line 157 of file WEMObjectVector.h.
References ml::WEMInternal::has_reset_v, and T.
| void ml::WEMObjectVector< T >::deleteAt | ( | unsigned int | pos | ) |
Deletes an element at the given position.
Definition at line 191 of file WEMObjectVector.h.
| void ml::WEMObjectVector< T >::destroy | ( | ) |
Deletes all elements in this vector.
Definition at line 128 of file WEMObjectVector.h.
Referenced by ~WEMObjectVector().
|
inline |
Returns the number of elements in this vector.
Definition at line 40 of file WEMObjectVector.h.
|
noexcept |
Move assignment operator.
Definition at line 112 of file WEMObjectVector.h.
References WEMObjectVector().