![]() |
Vireo
1.0
Compact runtime for Virtual Instruments
|
A wrapper that gives a raw block of elements a Begin(), End(), and Length() method. More...
#include <DataTypes.h>
Public Member Functions | |
SimpleSubVector () | |
Construct a wrapper from an existing wrapper. | |
SimpleSubVector (const T *begin, const T *end) | |
Construct a wrapper for a raw block of elements. | |
void | AliasAssign (SimpleSubVector *subVector) |
Reassign the wrapper. | |
void | AliasAssign (const T *begin, const T *end) |
Reassign the wrapper to a new raw block of elements. | |
IntIndex | CopyToBoundedBuffer (IntIndex bufferSize, T *buffer) |
Construct a wrapper for a raw block of elements. | |
const T * | Begin () const |
Return a pointer to the first element in the vector. | |
const T * | End () const |
Returns a pointer just past the last element in the vector. | |
IntIndex | Length () const |
Returns the lenght of the vector. | |
bool | Compare (const T *begin2, Int32 length2) |
Return true if the blocks are equivalent. | |
bool | Compare (const SimpleSubVector *subVector) |
Return true if the blocks are equivalent. | |
Protected Attributes | |
const T * | _begin |
const T * | _end |
A wrapper that gives a raw block of elements a Begin(), End(), and Length() method.