DGtal 2.1.0
Loading...
Searching...
No Matches
DGtal::DigitalSetByOctree< Space >::ComputationCacheKey Struct Reference

Helper struct for computing local estimators. More...

#include <DGtal/kernel/sets/DigitalSetByOctree.h>

Public Member Functions

bool operator< (const ComputationCacheKey &other) const

Data Fields

CellIndex parentLvl
CellIndex parentIdx
std::vector< DimIndexcode

Detailed Description

template<class Space>
struct DGtal::DigitalSetByOctree< Space >::ComputationCacheKey

Helper struct for computing local estimators.

It serves as a cache key to identify a neighborhood:

  • The parent that encloses the whole neighborhood
  • The neighborhood code

Definition at line 135 of file DigitalSetByOctree.h.

Member Function Documentation

◆ operator<()

template<class Space>
bool DGtal::DigitalSetByOctree< Space >::ComputationCacheKey::operator< ( const ComputationCacheKey & other) const
inline

Definition at line 141 of file DigitalSetByOctree.h.

142 {
143 if (parentLvl != other.parentLvl) return parentLvl < other.parentLvl;
144 if (parentIdx != other.parentIdx) return parentIdx < other.parentIdx;
145 return code < other.code;
146 }
A DigitalSet that stores voxels as an octree, or a DAG.

References code, parentIdx, and parentLvl.

Field Documentation

◆ code

template<class Space>
std::vector<DimIndex> DGtal::DigitalSetByOctree< Space >::ComputationCacheKey::code

Definition at line 139 of file DigitalSetByOctree.h.

Referenced by operator<().

◆ parentIdx

template<class Space>
CellIndex DGtal::DigitalSetByOctree< Space >::ComputationCacheKey::parentIdx

Definition at line 138 of file DigitalSetByOctree.h.

Referenced by operator<().

◆ parentLvl

template<class Space>
CellIndex DGtal::DigitalSetByOctree< Space >::ComputationCacheKey::parentLvl

Definition at line 137 of file DigitalSetByOctree.h.

Referenced by operator<().


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