|
GNU Radio's GSM Package
|
#include <Vector.h>
Public Member Functions | |
| size_t | size () const |
| size_t | bytes () const |
| void | resize (size_t newElements) |
| void | clear () |
| void | clone (const VectorBase< T > &other) |
| void | vConcat (const VectorBase< T > &other1, const VectorBase< T > &other2) |
| ~VectorBase () | |
| bool | isOwner () |
| std::string | inspect () const |
| void | copyToSegment (VectorBase< T > &other, size_t start, size_t span) const |
| void | copyToSegment (VectorBase< T > &other, size_t start=0) const |
| void | copyTo (VectorBase< T > &other) const |
| void | segmentCopyTo (VectorBase< T > &other, size_t start, size_t span) const |
| void | fill (const T &val) |
| void | fill (const T &val, unsigned start, unsigned length) |
| void | operator= (const VectorBase< T > &other) |
| T & | operator[] (size_t index) |
| const T & | operator[] (size_t index) const |
| const T * | begin () const |
| T * | begin () |
| const T * | end () const |
| T * | end () |
| const T * | getData () const |
Protected Types | |
| typedef T * | VectorDataType |
Protected Member Functions | |
| void | vInit (size_t elements) |
| void | shiftMem (VectorBase< T > &other) |
| void | makeAlias (const VectorBase< T > &other) |
| VectorBase () | |
| VectorBase (VectorDataType wData, T *wStart, T *wEnd) | |
Protected Attributes | |
| VectorDataType | mData |
| allocated data block. More... | |
| T * | mStart |
| start of useful data More... | |
| T * | mEnd |
| end of useful data + 1 More... | |
A simplified Vector template with aliases. Unlike std::vector, this class does not support dynamic resizing. Unlike std::vector, this class does support "aliases" and subvectors.
|
protected |
|
inlineprotected |
|
inlineprotected |
Build a Vector with explicit values.
|
inline |
Destroy a Vector, deleting held memory.
|
inline |
|
inline |
|
inline |
Return size in bytes.
Referenced by VectorBase< char >::clone(), and VectorBase< char >::vConcat().
|
inline |
Release memory and clear pointers.
|
inline |
Copy data from another vector.
Referenced by BitVector::cloneSegment().
|
inline |
|
inline |
|
inline |
Copy all of this Vector to a segment of another Vector.
Referenced by VectorBase< char >::copyToSegment().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by VectorBase< char >::makeAlias(), and VectorBase< char >::operator=().
|
inline |
|
inline |
|
inlineprotected |
|
inline |
Assign from another Vector.
|
inline |
|
inline |
|
inline |
Change the size of the Vector in items (not bytes), discarding content.
|
inline |
Copy a segment of this vector into another.
| other | The other vector (to copt into starting at 0.) |
| start | The start point in this vector. |
| span | The number of elements to copy. WARNING: This function does NOT resize the result - you must set the result size before entering. |
|
inlineprotected |
Assign from another Vector, shifting ownership.
|
inline |
Return the size of the Vector in units, ie, the number of T elements.
Referenced by VectorBase< char >::clone(), and VectorBase< char >::vConcat().
|
inline |
|
inlineprotected |
|
protected |
allocated data block.
Referenced by Vector< float >::Vector().
|
protected |
end of useful data + 1
Referenced by VectorBase< char >::copyToSegment(), VectorBase< char >::makeAlias(), and VectorBase< char >::segmentCopyTo().
|
protected |
start of useful data
Referenced by VectorBase< char >::clone(), VectorBase< char >::copyToSegment(), BitVector::dup(), VectorBase< char >::makeAlias(), VectorBase< char >::segmentCopyTo(), and VectorBase< char >::vConcat().