cgv
|
#include <data_view.h>
Public Member Functions | |
data_view_base (const data_format *_format=0) | |
virtual | ~data_view_base () |
delete format if it is owned | |
void | manage_format (bool enable=true) |
whether to manage the data format pointer | |
const data_format * | get_format () const |
return the component format | |
void | set_format (const data_format *_format) |
set a new data format | |
unsigned int | get_dim () const |
return the dimension of the data view, which is less or equal to the dimension of the data format | |
unsigned int | get_step_size (unsigned int dim) const |
return the step size in bytes in the i-th dimension | |
Protected Member Functions | |
data_view_base (const data_format *_format, unsigned int _dim, const unsigned int *_step_sizes) | |
constructor used to construct sub views onto the data view | |
Protected Attributes | |
bool | owns_format |
whether to own the data format | |
base class of both implementations of the data view managing the component format, the dimension of the view and the step sizes
cgv::data::data_view_base::data_view_base | ( | const data_format * | _format = 0 | ) |
construct the base of a data view from the given format, such that the step sizes and dimension are set to view the complete data set defined in the format.