cgv
cgv::data::data_view_base Class Reference

#include <data_view.h>

Inheritance diagram for cgv::data::data_view_base:
cgv::data::data_view_impl< D, P > cgv::data::data_view_impl< const_data_view, const unsigned char * > cgv::data::data_view_impl< data_view, unsigned char * > cgv::data::const_data_view cgv::data::data_view

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_formatget_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
 

Detailed Description

base class of both implementations of the data view managing the component format, the dimension of the view and the step sizes

Constructor & Destructor Documentation

◆ data_view_base()

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.


The documentation for this class was generated from the following files: