#include <DGtal/helpers/Shortcuts.h>
template<typename TKSpace>
template<typename Value>
struct DGtal::Shortcuts< TKSpace >::ValueReader< Value >
Definition at line 3014 of file Shortcuts.h.
◆ operator()() [1/2]
template<typename TKSpace >
template<typename Value >
Definition at line 3030 of file Shortcuts.h.
3033 std::getline( input, str );
3035 std::stringstream strstr(str);
3037 std::istream_iterator<std::string> it(strstr);
3038 std::istream_iterator<std::string> end;
3039 std::vector<std::string> results(it, end);
3040 values.resize( results.size() );
3041 for (
unsigned int i = 0; i < results.size(); ++i ) {
3042 std::stringstream sstr( results[ i ] );
3043 sstr >> values[ i ];
3045 return input.good();
◆ operator()() [2/2]
template<typename TKSpace >
template<typename Value >
Definition at line 3015 of file Shortcuts.h.
3018 std::getline( input, str );
3020 std::stringstream strstr(str);
3022 std::istream_iterator<std::string> it(strstr);
3023 std::istream_iterator<std::string> end;
3024 std::vector<std::string> results(it, end);
3025 std::stringstream sstr( results[ 0 ] );
3027 return ( results.size() == 1 ) && input.good();
The documentation for this struct was generated from the following file: