|
My Project
|
An implementation of vector/array based on small object optimization. More...
#include <FastSmallVector.hpp>
Public Member Functions | |
| FastSmallVector () | |
| default constructor | |
| FastSmallVector (const size_t numElem) | |
| constructor based on the number of the element | |
| FastSmallVector (const size_t numElem, const ValueType value) | |
| constructor based on the number of the element, and all the elements will have the same value | |
| FastSmallVector (const FastSmallVector &other) | |
| copy constructor | |
| FastSmallVector (FastSmallVector &&other) | |
| move constructor | |
| ~FastSmallVector () | |
| destructor | |
| FastSmallVector & | operator= (FastSmallVector &&other) |
| move assignment | |
| FastSmallVector & | operator= (const FastSmallVector &other) |
| copy assignment | |
| ValueType & | operator[] (size_t idx) |
| access the idx th element | |
| const ValueType & | operator[] (size_t idx) const |
| const access the idx th element | |
| size_t | size () const |
| number of the element | |
An implementation of vector/array based on small object optimization.
It is intended to be used by the DynamicEvaluation for better efficiency. ValueType is the type of the data N is the size of the buffer that willl be allocated during compilation time