ATLAS Offline Software
Loading...
Searching...
No Matches
Range.h File Reference
#include <Identifier/ExpandedIdentifier.h>
#include "Identifier/IdentifierField.h"
#include <vector>
#include <cassert>
#include <stdexcept>
#include <bit>
#include <iosfwd>
Include dependency graph for DetectorDescription/Identifier/Identifier/Range.h:

Go to the source code of this file.

Classes

class  Range
 A Range describes the possible ranges for the field values of an ExpandedIdentifier. More...

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}