DM::GenericConverter Namespace Reference

provides a set of converter function between DM and generic memory manager structures More...

Typedefs

typedef ConstIterator< IPointconst_iterator_point
 Point iterator.
 

Functions

DM_API void initColBufferManager (IColBufferManagerWrite &colBufferManager, int64_t rowCount, const AddInfoLayoutHandle &layout, bool withCoordinates=true)
 initialize a column buffer manager that it can be used for subsequent converter calls More...
 
DM_API int64_t fillColBuffer (IColBufferManagerWrite &colBufferManager, int64_t rowIdx, const_iterator_point it, const_iterator_point end, FilterHandle filter=FilterHandle())
 
DM_API int64_t fillColBuffer (IColBufferManagerWrite &colBufferManager, int64_t rowIdx, const AddInfoLayoutHandle &mapColumn, const IIndexMapSet &map, IIndexHelperSet &helper, bool invertIndexMap, const_iterator_point it, const_iterator_point end, FilterHandle filter=FilterHandle())
 
DM_API int64_t asColBuffer (IColBufferManagerWrite &colBufferManager, const_iterator_point it, const_iterator_point end, const AddInfoLayoutHandle &layout, bool withCoordinates=true, FilterHandle filter=FilterHandle())
 initialize and fill a column buffer manager this function combines initColBufferManager and fillColBuffer calls. The number of rowCounts that is needed to store all data is internally determined and passed to the colBufferManager object before the actual filling is performed More...
 
DM_API int64_t asColBuffer (IColBufferManagerWrite &colBufferManager, const_iterator_point it, const_iterator_point end, const AddInfoLayoutHandle &layout, const AddInfoLayoutHandle &mapColumn, const IIndexMapSet &map, IIndexHelperSet &helper, bool invertIndexMap, bool withCoordinates=true, FilterHandle filter=FilterHandle())
 
DM_API int64_t setFromColBuffer (const_iterator_point it, const_iterator_point end, const AddInfoLayoutHandle &layout, const IColBufferManagerRead &colBufferManager, FilterHandle filter=FilterHandle())
 Set attributes from a column buffer object.
 
DM_API void compareWith (const IColBufferManagerRead &colBufferManager, DM::IClassificationMatrix &classMatrix, const_iterator_point it, const_iterator_point end, const DM::AddInfoLayoutHandle &mapCol, const DM::IIndexMapSet &map, DM::IIndexHelperSet &helper, bool invertIndexMap, DM::FilterHandle filter=FilterHandle())
 

Detailed Description

provides a set of converter function between DM and generic memory manager structures

Function Documentation

◆ asColBuffer()

DM_API int64_t DM::GenericConverter::asColBuffer ( IColBufferManagerWrite colBufferManager,
const_iterator_point  it,
const_iterator_point  end,
const AddInfoLayoutHandle layout,
bool  withCoordinates = true,
FilterHandle  filter = FilterHandle() 
)

initialize and fill a column buffer manager this function combines initColBufferManager and fillColBuffer calls. The number of rowCounts that is needed to store all data is internally determined and passed to the colBufferManager object before the actual filling is performed

Parameters
[in]colBufferManagercolumn buffer manager object for allocating the necessary column buffer objects
[in]itbegin iterator of points
[in]endend iterator of points
[in]layoutdefines the attributes (columns of the data frame object) to that should be generated
[in]withCoordinatesflag if columns for the coordinates should generated as well
[in]filteroptional filter to subselect the points
Returns
number of rows that were filled

◆ initColBufferManager()

DM_API void DM::GenericConverter::initColBufferManager ( IColBufferManagerWrite colBufferManager,
int64_t  rowCount,
const AddInfoLayoutHandle layout,
bool  withCoordinates = true 
)

initialize a column buffer manager that it can be used for subsequent converter calls

Parameters
[in]colBufferManagercolumn buffer manager object for allocating the necessary column buffer objects
[in]rowCountnumber of rows to reserve
[in]layoutdefines the attributes (columns of the data frame object) to that should be generated
[in]withCoordinatesflag if columns for the coordinates should generated as well