CMS 3D CMS Logo

Classes | Functions | Variables
std Namespace Reference

Classes

struct  ct_integers_list
 
struct  ct_iota_1
 
struct  ct_iota_1< 0 >
 
struct  hash< CTPPSDetId >
 
struct  hash< DetId >
 
struct  hash< DTCELinkId >
 
struct  hash< JME::Binning >
 
struct  hash< mtd_digitizer::MTDCellId >
 
struct  hash< std::pair< unsigned int, unsigned int > >
 
struct  hash< std::tuple< Head, ndims... > >
 
struct  hash< std::tuple<> >
 
struct  hash< TotemT2DetId >
 
struct  hash_specialization
 
struct  hash_specialization< float >
 
struct  tuple_printer
 
struct  tuple_printer< Type, N, N >
 

Functions

template<typename... Types>
std::ostream & operator<< (std::ostream &out, const std::tuple< Types... > &value)
 
ostream & operator<< (std::ostream &o, vector< std::string > const &iValue)
 
template<size_t... indices, typename Tuple >
auto tuple_subset (const Tuple &tpl, ct_integers_list< indices... >) -> decltype(std::make_tuple(std::get< indices >(tpl)...))
 
template<typename Head , typename... Tail>
std::tuple< Tail... > tuple_tail (const std::tuple< Head, Tail... > &tpl)
 

Variables

constexpr int kColOffset = 40
 
constexpr int kRowOffset = 32
 

Function Documentation

◆ operator<<() [1/2]

template<typename... Types>
std::ostream& std::operator<< ( std::ostream &  out,
const std::tuple< Types... > &  value 
)

Definition at line 32 of file Utilities.h.

References MillePedeFileConverter_cfg::out, print(), and mkLumiAveragedPlots::tuple.

32  {
33  out << "(";
34  tuple_printer<std::tuple<Types...>, 0, sizeof...(Types) - 1>::print(out, value);
35  out << ")";
36  return out;
37  }
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
Definition: Types.py:1
Definition: value.py:1

◆ operator<<() [2/2]

ostream& std::operator<< ( std::ostream &  o,
vector< std::string > const &  iValue 
)

Definition at line 47 of file refresh.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, EcalTangentSkim_cfg::o, and AlCaHLTBitMon_QueryRunRegistry::string.

47  {
48  std::string sep("");
49  std::string commaSep(",");
50  for (std::vector<std::string>::const_iterator it = iValue.begin(), itEnd = iValue.end(); it != itEnd; ++it) {
51  o << sep << *it;
52  sep = commaSep;
53  }
54  return o;
55  }

◆ tuple_subset()

template<size_t... indices, typename Tuple >
auto std::tuple_subset ( const Tuple &  tpl,
ct_integers_list< indices... >   
) -> decltype(std::make_tuple(std::get<indices>(tpl)...))

Definition at line 59 of file Utilities.h.

Referenced by tuple_tail().

60  {
61  return std::make_tuple(std::get<indices>(tpl)...);
62  // this means:
63  // make_tuple(get<indices[0]>(tpl), get<indices[1]>(tpl), ...)
64  }

◆ tuple_tail()

template<typename Head , typename... Tail>
std::tuple<Tail...> std::tuple_tail ( const std::tuple< Head, Tail... > &  tpl)

Definition at line 66 of file Utilities.h.

References tuple_subset().

Referenced by std::hash_specialization< Head, ndims >::operator()().

66  {
67  return tuple_subset(tpl, typename ct_iota_1<sizeof...(Tail)>::type());
68  // this means:
69  // tuple_subset<1, 2, 3, ..., sizeof...(Tail)-1>(tpl, ..)
70  }
auto tuple_subset(const Tuple &tpl, ct_integers_list< indices... >) -> decltype(std::make_tuple(std::get< indices >(tpl)...))
Definition: Utilities.h:59

Variable Documentation

◆ kColOffset

constexpr int std::kColOffset = 40

◆ kRowOffset

constexpr int std::kRowOffset = 32