#include <iso_data_buffer.h>
Collaboration diagram for iso::data::Buffer< DataType >:
Public Member Functions | |
Buffer () | |
create buffer | |
Buffer (const math::Vector< unsigned int > &pSize, unsigned int pChannelCount, bool pNoData=false) | |
create buffer | |
Buffer (const math::Vector< unsigned int > &pSize, unsigned int pChannelCount, DataType pValue) | |
create buffer | |
Buffer (const Buffer< DataType > &pBuffer) | |
copy constructor | |
~Buffer () | |
destructor | |
void | reset (const math::Vector< unsigned int > &pSize, unsigned int pChannelCount) |
reset buffer to new size & channelcount | |
unsigned int | dim () const |
return dimension | |
unsigned int | channelCount () const |
return channelCount | |
const math::Vector< unsigned int > & | size () const |
return size | |
unsigned int | dataCount () const |
return data count | |
DataType * | data () |
return bufer data | |
const DataType * | data () const |
return bufer data | |
void | set (DataType pValue) |
set all buffer data to same value | |
void | set (unsigned int pChannel, DataType pValue) |
set all buffer data in specified channel to same value | |
base::String | info () const |
print textual buffer information | |
Public Attributes | |
DataType * | mData |
buffer data | |
Protected Attributes | |
unsigned int | mDim |
unsigned int | mChannelCount |
dimension | |
math::Vector< unsigned int > | mSize |
channel count | |
unsigned int | mDataCount |
size | |
Static Protected Attributes | |
static int | sChannelCount |
default channel count | |
static math::Vector< unsigned int > | sSize |
default size | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Buffer< DataType > &pBuffer) |
print buffer information |
Created by Daniel Bisig on 12/4/07.
iso::data::Buffer< DataType >::Buffer | ( | ) |
create buffer
iso::data::Buffer< DataType >::Buffer | ( | const math::Vector< unsigned int > & | pSize, | |
unsigned int | pChannelCount, | |||
bool | pNoData = false | |||
) |
create buffer
pSize | size of buffer | |
pChannelCount | number of channels | |
pNoData | buffer stores no data |
iso::data::Buffer< DataType >::Buffer | ( | const math::Vector< unsigned int > & | pSize, | |
unsigned int | pChannelCount, | |||
DataType | pValue | |||
) |
create buffer
pSize | size of buffer | |
pChannelCount | number of channels | |
pValue | value of buffer data |
iso::data::Buffer< DataType >::Buffer | ( | const Buffer< DataType > & | pBuffer | ) |
copy constructor
pBuffer | buffer |
iso::data::Buffer< DataType >::~Buffer | ( | ) |
destructor
void iso::data::Buffer< DataType >::reset | ( | const math::Vector< unsigned int > & | pSize, | |
unsigned int | pChannelCount | |||
) |
reset buffer to new size & channelcount
pSize | size | |
pChannelCount | channel count |
unsigned int iso::data::Buffer< DataType >::dim | ( | ) | const |
return dimension
unsigned int iso::data::Buffer< DataType >::channelCount | ( | ) | const |
return channelCount
const math::Vector< unsigned int > & iso::data::Buffer< DataType >::size | ( | ) | const |
return size
unsigned int iso::data::Buffer< DataType >::dataCount | ( | ) | const |
return data count
DataType * iso::data::Buffer< DataType >::data | ( | ) |
return bufer data
const DataType * iso::data::Buffer< DataType >::data | ( | ) | const |
return bufer data
void iso::data::Buffer< DataType >::set | ( | DataType | pValue | ) |
set all buffer data to same value
pValue | value |
void iso::data::Buffer< DataType >::set | ( | unsigned int | pChannel, | |
DataType | pValue | |||
) |
set all buffer data in specified channel to same value
pChannel | channel | |
pValue | value |
base::String iso::data::Buffer< DataType >::info | ( | ) | const |
print textual buffer information
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Buffer< DataType > & | pBuffer | |||
) | [friend] |
print buffer information
pOstream | output stream | |
pBuffer | buffer |
DataType* iso::data::Buffer< DataType >::mData |
buffer data
int iso::data::Buffer< DataType >::sChannelCount [static, protected] |
default channel count
math::Vector< unsigned int > iso::data::Buffer< DataType >::sSize [static, protected] |
default size
unsigned int iso::data::Buffer< DataType >::mDim [protected] |
unsigned int iso::data::Buffer< DataType >::mChannelCount [protected] |
dimension
math::Vector<unsigned int> iso::data::Buffer< DataType >::mSize [protected] |
channel count
unsigned int iso::data::Buffer< DataType >::mDataCount [protected] |
size