|
| | Buffer () |
| | Empty constructor. More...
|
| |
| | Buffer (T *data, size_t size) |
| | Constructor from raw data. More...
|
| |
| | Buffer (size_t N, BufferOwner *owner=0) |
| | Creates a buffer with N samples. More...
|
| |
| | Buffer (const Buffer< T > &other) |
| | Create a new reference to the buffer. More...
|
| |
| virtual | ~Buffer () |
| | Destructor. More...
|
| |
| | Buffer (const RawBuffer &other) |
| | Explicit type cast. More...
|
| |
| const Buffer< T > & | operator= (const Buffer< T > other) |
| | Assignment operator, turns this buffer into a reference to the other buffer. More...
|
| |
| bool | operator< (const Buffer< T > &other) const |
| | This is used to store buffers in sets. More...
|
| |
| size_t | size () const |
| | Returns the number of elements of type T in this buffer. More...
|
| |
| T & | operator[] (int idx) const |
| | Element access. More...
|
| |
| double | norm2 () const |
| | Returns the norm of the buffer. More...
|
| |
| double | norm () const |
| | Returns the norm of the buffer. More...
|
| |
| double | norm (double p) const |
| | Returns the norm of the buffer. More...
|
| |
| Buffer< T > & | operator*= (const T &a) |
| | In-place, element wise product of the buffer with the scalar a. More...
|
| |
| Buffer< T > & | operator/= (const T &a) |
| | In-place, element wise division of the buffer with the scalar a. More...
|
| |
| template<class oT > |
| Buffer< oT > | as () const |
| | Explicit type cast. More...
|
| |
| Buffer< T > | sub (size_t offset, size_t len) const |
| | Returns a new view on this buffer. More...
|
| |
| Buffer< T > | head (size_t n) const |
| | Returns a new view on this buffer. More...
|
| |
| Buffer< T > | tail (size_t n) const |
| | Returns a new view on this buffer. More...
|
| |
| | RawBuffer () |
| | Constructs an empty buffer. More...
|
| |
| | RawBuffer (char *data, size_t offset, size_t len) |
| | Constructor from unowned data. More...
|
| |
| | RawBuffer (size_t N, BufferOwner *owner=0) |
| | Constructs a buffer and allocates N bytes. More...
|
| |
| | RawBuffer (const RawBuffer &other) |
| | Copy constructor. More...
|
| |
| | RawBuffer (const RawBuffer &other, size_t offset, size_t len) |
| | Creates a new view on the buffer. More...
|
| |
| virtual | ~RawBuffer () |
| | Destructor. More...
|
| |
| const RawBuffer & | operator= (const RawBuffer &other) |
| | Assignment. More...
|
| |
| char * | ptr () const |
| | Returns the pointer to the data (w/o view). More...
|
| |
| char * | data () const |
| | Returns the pointer to the data of the buffer view. More...
|
| |
| size_t | bytesOffset () const |
| | Returns the offset of the data by the view. More...
|
| |
| size_t | bytesLen () const |
| | Returns the size of the buffer by the view. More...
|
| |
| size_t | storageSize () const |
| | Returns the raw buffer size in bytes. More...
|
| |
| bool | isEmpty () const |
| | Returns true if the buffer is invalid/empty. More...
|
| |
| void | ref () const |
| | Increment reference counter. More...
|
| |
| void | unref () |
| | Dereferences the buffer. More...
|
| |
| int | refCount () const |
| | Returns the reference counter. More...
|
| |
| bool | isUnused () const |
| | We assume here that buffers are owned by one object: A buffer is therefore "unused" if the owner holds the only reference to the buffer. More...
|
| |