cartobase 6.0.6
carto::KeyComparator< V > Struct Template Reference

KeyComparator is used to compare keys of types that do not have comparison operator. More...

#include <cartobase/type/voxelvalue.h>

Inheritance diagram for carto::KeyComparator< V >:

Static Public Member Functions

static uint64_t toUnsignedInt (const V &value)
 
static bool less (const V &lhs, const V &rhs)
 

Detailed Description

template<typename V>
struct carto::KeyComparator< V >

KeyComparator is used to compare keys of types that do not have comparison operator.

It is useful to be able to use these types as keys in containers that needs key ordering (such as std::map). KeyComparator supports comparison of carto::VoxelValue

Template Parameters
Vdata type to use in key comparisons (uint8_t, carto::VoxelValue, ...)

Definition at line 107 of file voxelvalue.h.

Member Function Documentation

◆ less()

template<typename V>
bool carto::KeyComparator< V >::less ( const V & lhs,
const V & rhs )
inlinestatic

Definition at line 168 of file voxelvalue_d.h.

Referenced by carto::KeyComparatorLess< V >::operator()().

◆ toUnsignedInt()

template<typename V>
uint64_t carto::KeyComparator< V >::toUnsignedInt ( const V & value)
inlinestatic

Definition at line 137 of file voxelvalue_d.h.


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