#include <Identifier/ExpandedIdentifier.h>
#include <vector>
#include <string>
#include <stdexcept>
#include <iosfwd>
#include <limits>
#include <utility>
#include <variant>
Go to the source code of this file.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const IdentifierField & | c ) |
◆ operator>>()
Definition at line 498 of file IdentifierField.cxx.
498 {
499 idf.clear();
500 while (std::isspace(is.peek())){is.ignore();}
502 if (c =='*'){
503 is.ignore();
504
506 if (c =='+') is.ignore();
509
510 if (c == ','){
511 is.ignore();
512 std::vector<int>
vec(1,v);
514 vec.insert(
vec.end(), restOfList.begin(), restOfList.end());
516 } else if (c == ':'){
517 is.ignore();
521 idf.set(v,v1);
522 }
523 } else {
524 idf.add_value(v);
525 }
526 } else {
527 std::string
msg{
"Stream extraction for IdentifierField: "};
528 std::string remains;
529 is >> remains;
531 throw std::invalid_argument(
msg);
532 }
533 return is;
534}
std::vector< size_t > vec
bool isDigit(const char c)
IdentifierField::element_type parseStreamDigits(std::istream &is)
IdentifierField::element_vector parseStreamList(std::istream &is)