#include <DGtal/helpers/Shortcuts.h>
template<typename TKSpace>
template<typename Value>
struct DGtal::Shortcuts< TKSpace >::ValueReader< Value >
Definition at line 3063 of file Shortcuts.h.
◆ operator()() [1/2]
template<typename TKSpace >
template<typename Value >
Definition at line 3079 of file Shortcuts.h.
3082 std::getline( input, str );
3084 std::stringstream strstr(str);
3086 std::istream_iterator<std::string> it(strstr);
3087 std::istream_iterator<std::string> end;
3088 std::vector<std::string> results(it, end);
3089 values.resize( results.size() );
3090 for (
unsigned int i = 0; i < results.size(); ++i ) {
3091 std::stringstream sstr( results[ i ] );
3092 sstr >> values[ i ];
3094 return input.good();
◆ operator()() [2/2]
template<typename TKSpace >
template<typename Value >
Definition at line 3064 of file Shortcuts.h.
3067 std::getline( input, str );
3069 std::stringstream strstr(str);
3071 std::istream_iterator<std::string> it(strstr);
3072 std::istream_iterator<std::string> end;
3073 std::vector<std::string> results(it, end);
3074 std::stringstream sstr( results[ 0 ] );
3076 return ( results.size() == 1 ) && input.good();
The documentation for this struct was generated from the following file: