ATLAS Offline Software
Functions
DetectorDescription/Identifier/src/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 }

◆ 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 }
beamspotman.r
def r
Definition: beamspotman.py:672
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:70
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
IdentifierField
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
Definition: IdentifierField.h:83
python.compressB64.c
def c
Definition: compressB64.py:93