#include <bufferdatas.h>
Collaboration diagram for Geddei::BufferDatas:
Public Member Functions | |
BufferDatas (const uint count=0) | |
BufferDatas (const BufferDatas &src) | |
void | copyData (const uint i, const BufferData &d) |
const uint | count () const |
void | nullify () |
BufferDatas & | operator= (const BufferDatas &src) |
BufferData & | operator[] (uint i) |
const BufferData & | operator[] (uint i) const |
void | resize (const uint count) |
BufferDatas | samples (const uint index, const uint amount) |
const BufferDatas | samples (const uint index, const uint amount) const |
void | setData (const uint i, const BufferData *d) |
const uint | size () const |
Friends | |
class | SubProcessor |
Don't let this worry you. Unless you're working on Geddei's core, you can completely ignore them and you'll really only need to use the array operator. The size() method has been left in too, just for fun.
const BufferData& Geddei::BufferDatas::operator[] | ( | uint | i | ) | const [inline] |
Get a single BufferData from the array.
i | The index to retrieve the BufferData object from. |
BufferData& Geddei::BufferDatas::operator[] | ( | uint | i | ) | [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Get a single BufferData from the array.
For notice of internal development: Don't be tempted to use this method to set the contents BufferDatas. Use setData() instead. It is only non-const for access to non-const methods of the returned BufferData. BufferDatas itself should be left unchanged.
i | The index to retrieve the BufferData object from. |
const uint Geddei::BufferDatas::size | ( | ) | const [inline] |
const uint Geddei::BufferDatas::count | ( | ) | const [inline] |