CuteHMI - Data Acquisition (CuteHMI.DataAcquisition.1)
cutehmi::dataacquisition::internal Namespace Reference

Classes

class  DbServiceableMixin
 
class  EventCollective
 
class  HistoryCollective
 
class  ModelMixin
 
class  QMLPlugin
 QML plugin. More...
 
class  RecencyCollective
 
class  TableCollective
 
struct  TableNameTraits
 
struct  TableNameTraits< bool >
 
struct  TableNameTraits< double >
 
struct  TableNameTraits< int >
 
class  TableObject
 
class  TagCache
 

Functions

template<typename COLUMN_VALUES , int SIZE>
void mergeColumnValues (COLUMN_VALUES &result, const COLUMN_VALUES *columnValues, std::function< bool(const COLUMN_VALUES &a, int aIndex, const COLUMN_VALUES &b, int bIndex)> compare)
 Merge column values into single COLUMN_VALUES structure, so that elements are stored in particular order. More...
 

Function Documentation

◆ mergeColumnValues()

template<typename COLUMN_VALUES , int SIZE>
void cutehmi::dataacquisition::internal::mergeColumnValues ( COLUMN_VALUES &  result,
const COLUMN_VALUES *  columnValues,
std::function< bool(const COLUMN_VALUES &a, int aIndex, const COLUMN_VALUES &b, int bIndex)>  compare 
)

Merge column values into single COLUMN_VALUES structure, so that elements are stored in particular order.

Template Parameters
COLUMN_VALUEScolumn values type.
SIZEsize of columnValues array.
Parameters
mergedValuesreference to a structure where results shall be stored.
columnValuescolumn values arrays. Arrays should be sorted as if they were sorted by compare function in descending(!) order (thus typically some sort of "less than" compare function shall be used to maintain descending order).
comparefunction which compares