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 <iostream>
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 335 of file DetectorDescription/Identifier/src/Range.cxx.

336 {
337 out<<std::string(r);
338 return out;
339}
int r
Definition globals.cxx:22

◆ operator>>()

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

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

342 {
343 r.clear ();
344 for (int c{}; c!=EOF;c=in.peek()){
346 in>>field;
347 r.add(field);
348 if (int c = in.peek();(c == '/') or (c ==' ')){
349 in.ignore();
350 }
351 }
352 return in;
353}