ATLAS Offline Software
Loading...
Searching...
No Matches
Range.cxx File Reference
#include "Identifier/Range.h"
#include <algorithm>
#include <cstdio>
#include <string>
#include <vector>
#include <limits>
#include <iostream>
#include <iomanip>
#include <stdexcept>
#include <cassert>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const Range &r)
std::istream & operator>> (std::istream &in, Range &r)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const Range & r )

Definition at line 329 of file DetectorDescription/Identifier/src/Range.cxx.

330 {
331 out<<std::string(r);
332 return out;
333}
int r
Definition globals.cxx:22

◆ operator>>()

std::istream & operator>> ( std::istream & in,
Range & r )

Definition at line 336 of file DetectorDescription/Identifier/src/Range.cxx.

336 {
337 r.clear ();
338 for (int c{}; c!=EOF;c=in.peek()){
340 in>>field;
341 r.add(field);
342 if (int c = in.peek();(c == '/') or (c ==' ')){
343 in.ignore();
344 }
345 }
346 return in;
347}