Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Small vector with inplace storage. More...
#include <SmallVector.h>
Public Member Functions | |
T * | begin () |
Returns a pointer to the first item. More... | |
T * | begin () const |
Returns a const pointer to the first item. More... | |
T * | end () |
Returns a pointer to the end. More... | |
T * | end () const |
Returns a const pointer to the end. More... | |
SmallVector & | operator= (const SmallVector &)=delete |
SmallVector & | operator= (SmallVector &&)=delete |
void | push_back (const T &item) |
Will push a new item. More... | |
void | resize (size_t newSize) |
Will resize the vector. More... | |
size_t | size () const |
Returns the current size of the vector. More... | |
SmallVector () | |
The default class constructor. More... | |
SmallVector (const SmallVector &)=delete | |
SmallVector (SmallVector &&)=delete | |
~SmallVector () | |
The class destructor. More... | |
Small vector with inplace storage.
Reduces heap allocations when list is shorter. It uses a small array for a dedicated size. When the growing gets bigger than this small cache a dynamic growing algorithm will be used.
|
inline |
The default class constructor.
|
inline |
The class destructor.
|
delete |
|
delete |
|
inline |
Returns a pointer to the first item.
|
inline |
Returns a const pointer to the first item.
|
inline |
Returns a pointer to the end.
|
inline |
Returns a const pointer to the end.
|
delete |
|
delete |
|
inline |
Will push a new item.
The capacity will grow in case of a too small capacity.
item | [in] The item to push at the end of the vector. |
|
inline |
Will resize the vector.
newSize | [in] The new size. |
|
inline |
Returns the current size of the vector.