DGtal  1.0.0
Public Member Functions
DGtal::Shortcuts< TKSpace >::CellReader Struct Reference

#include <DGtal/helpers/Shortcuts.h>

Public Member Functions

Cell operator() (std::istream &input, const KSpace &K)

Detailed Description

template<typename TKSpace>
struct DGtal::Shortcuts< TKSpace >::CellReader

Definition at line 2655 of file Shortcuts.h.

Member Function Documentation

◆ operator()()

template<typename TKSpace >
Cell DGtal::Shortcuts< TKSpace >::CellReader::operator() ( std::istream &  input,
const KSpace K 

Definition at line 2656 of file Shortcuts.h.

2657  {
2658  Point kp;
2659  for ( Dimension d = 0; d < KSpace::dimension; ++d )
2660  input >> kp[ d ];
2661  return K.uCell( kp );
2662  }
DGtal::uint32_t Dimension
Definition: Common.h:127
Cell uCell(const PreCell &c) const
From an unsigned cell, returns an unsigned cell lying into this Khalismky space.
MyPointD Point
Definition: testClone2.cpp:383
KSpace K
static const constexpr Dimension dimension

References DGtal::KhalimskySpaceND< dim, TInteger >::dimension, K, and DGtal::KhalimskySpaceND< dim, TInteger >::uCell().

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