File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 2.0.0
DGtal::Shortcuts< TKSpace >::ValueReader< Value > Struct Template Reference

#include <DGtal/helpers/Shortcuts.h>

Public Member Functions

bool operator() (std::istream &input, Value &value)
bool operator() (std::istream &input, std::vector< Value > &values)

Detailed Description

template<typename TKSpace>
template<typename Value>
struct DGtal::Shortcuts< TKSpace >::ValueReader< Value >

Definition at line 3146 of file Shortcuts.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename TKSpace>
template<typename Value>
bool DGtal::Shortcuts< TKSpace >::ValueReader< Value >::operator() ( std::istream & input,
std::vector< Value > & values )
inline

Definition at line 3162 of file Shortcuts.h.

3163 {
3166 // construct a stream from the string
3168 // use stream iterators to copy the stream to the vector as whitespace separated strings
3172 values.resize( results.size() );
3173 for ( unsigned int i = 0; i < results.size(); ++i ) {
3175 sstr >> values[ i ];
3176 }
3177 return input.good();
3178 }
Aim: This class is used to simplify shape and surface creation. With it, you can create new shapes an...
Definition Shortcuts.h:106

◆ operator()() [2/2]

template<typename TKSpace>
template<typename Value>
bool DGtal::Shortcuts< TKSpace >::ValueReader< Value >::operator() ( std::istream & input,
Value & value )
inline

Definition at line 3147 of file Shortcuts.h.

3148 {
3151 // construct a stream from the string
3153 // use stream iterators to copy the stream to the vector as whitespace separated strings
3158 sstr >> value;
3159 return ( results.size() == 1 ) && input.good();
3160 }

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