![]() |
|
Implements Vdf_VectorData storage that holds a contiguous range of elements, which may be a subrange of the logical vector size. More...
#include <vectorImpl_Contiguous.h>
Inherits Vdf_VectorDataTyped< TYPE >.
Public Member Functions | |
| Vdf_VectorImplContiguous (size_t size) | |
| Dense vector constructor. | |
| Vdf_VectorImplContiguous (size_t size, size_t first, size_t last) | |
| Sparse vector constructor. | |
| Vdf_VectorImplContiguous (const VdfMask::Bits &bits) | |
| Sparse vector constructor. | |
| Vdf_VectorImplContiguous (const TYPE *data, const VdfMask::Bits &bits) | |
| Sparse vector constructor. | |
| Vdf_VectorImplContiguous (const Vdf_VectorImplContiguous &rhs) | |
| Vdf_VectorImplContiguous (Vdf_VectorImplContiguous &&sourceData) | |
| void | MoveInto (Vdf_VectorData::DataHolder *destData) override |
| void | Clone (Vdf_VectorData::DataHolder *destData) const override |
| void | CloneSubset (const VdfMask &mask, Vdf_VectorData::DataHolder *destData) const override |
| void | Box (const VdfMask::Bits &bits, Vdf_VectorData::DataHolder *destData) const override |
| void | Merge (const VdfMask::Bits &bits, Vdf_VectorData::DataHolder *destData) const override |
| void | Expand (size_t first, size_t last) override |
| size_t | GetSize () const override |
| size_t | GetNumStoredElements () const override |
| bool | IsSharable () const override |
| Vdf_VectorData::Info | GetInfo () override |
Implements Vdf_VectorData storage that holds a contiguous range of elements, which may be a subrange of the logical vector size.
Definition at line 29 of file vectorImpl_Contiguous.h.
|
inlineexplicit |
Dense vector constructor.
Constructs a vector of whose size is size. Storage is allocated for the range [0, size-1].
Definition at line 43 of file vectorImpl_Contiguous.h.
|
inline |
Sparse vector constructor.
Constructs a vector whose size is size. Storage is allocated for the range [first, last].
Definition at line 56 of file vectorImpl_Contiguous.h.
|
inlineexplicit |
Sparse vector constructor.
Constructs a vector whose size is the width of bits. Storage is allocated for the range [bits.GetFirstSet(), bits.GetLastSet()].
Definition at line 66 of file vectorImpl_Contiguous.h.
|
inline |
Sparse vector constructor.
Constructs a vector whose size is size. Storage is allocated for the range [bits.GetFirstSet(), bits.GetLastSet()]. Elements are copied from data for each set bit in bits.
Note that the block of memory allocated is contiguous even if the mask contains holes. Only the elements specified by the mask will be copied, all other elements will remain uninitialized.
Definition at line 81 of file vectorImpl_Contiguous.h.
|
inline |
Definition at line 93 of file vectorImpl_Contiguous.h.
|
inline |
Definition at line 109 of file vectorImpl_Contiguous.h.
|
inlineoverride |
Definition at line 121 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 193 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 133 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 140 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Reimplemented from Vdf_VectorData.
Definition at line 237 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 288 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 275 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 270 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Reimplemented from Vdf_VectorData.
Definition at line 283 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 217 of file vectorImpl_Contiguous.h.
|
inlineoverridevirtual |
Implements Vdf_VectorData.
Definition at line 126 of file vectorImpl_Contiguous.h.