This file is indexed.

/usr/include/ThePEG/Config/Containers.h is in libthepeg-dev 1.8.0-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
// -*- C++ -*-
//
// Containers.h is a part of ThePEG - Toolkit for HEP Event Generation
// Copyright (C) 1999-2011 Leif Lonnblad
//
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
#ifndef ThePEG_Containers_H
#define ThePEG_Containers_H

/** \file
 * This file defines a number of containers. Some are just typedefs of
 * std containers, while others are wrappers around
 * std containers introduced in the hope of reducing the
 * amount of debugging and code duplication.
 *
 * Do not make changes in this file. If you need to modify any of the
 * standard containers used in ThePEG, edit a copy of this file and
 * include it in an alternative config file which can be included in
 * the main ThePEG.h config file
 * using the macro ThePEG_ALTERNATE_CONFIG.
 */

#include "ThePEG/Utilities/UnitIO.h"

namespace ThePEG {

/** A set of pointers to ParticleData objects. */
ThePEG_DECLARE_SET(PDPtr,ParticleDataSet);

/** A vector of pointers to ParticleData objects. */
typedef vector<PDPtr> PDVector;

/** A vector of pointers to const ParticleData objects. */
typedef vector<cPDPtr> cPDVector;

/** A vector of transient pointers to ParticleData objects. */
typedef vector<tPDPtr> tPDVector;

/** A vector of transient pointers to const ParticleData objects. */
typedef vector<tcPDPtr> tcPDVector;

/** A set of pointers to MatcherBase objects. */
ThePEG_DECLARE_SET(PMPtr,MatcherSet);

/** A set of pointers to DecayMode objects */
ThePEG_DECLARE_SET(DMPtr,DecayModeSet);

/** A set of pointers to InterfacedBase objects */
ThePEG_DECLARE_SET(IBPtr,ObjectSet);

/** A set of pointers to InterfacedBase objects */
ThePEG_DECLARE_SET(IBPtr,DependencySet);

/** A map relating integers to ParticleData objects */
ThePEG_DECLARE_MAP(long,PDPtr,ParticleMap);

/** A map relating character strings to InterfacedBase objects */
ThePEG_DECLARE_MAP(string,IBPtr,ObjectMap);

/** A map relating InterfacedBase objects to corresponding
 * DependencySet containers */
ThePEG_DECLARE_MAP(IBPtr,DependencySet,DependencyMap);

/** A vector of pointers to InterfacedBase objects. */
typedef vector<IBPtr> IVector;

/** A vector of pointers to const InterfacedBase objects. */
typedef vector<cIBPtr> CIVector;

/** A vector of pointers to Particle objects. */
typedef vector<PPtr> ParticleVector;

/** A vector of pointers to Particle objects. */
typedef vector<PPtr> PVector;

/** A vector of pointers to const Particle objects. */
typedef vector<cPPtr> cPVector;

/** A vector of transient pointers to Particle objects. */
typedef vector<tPPtr> tPVector;

/** A vector of transient pointers to const Particle objects. */
typedef vector<tcPPtr> tcPVector;

/** A list of pointers to Particle objects. */
typedef list<PPtr> ParticleList;

/** A list of pointers to Particle objects. */
typedef list<PPtr> PList;

/** A list of pointers to const Particle objects. */
typedef list<cPPtr> cPList;

/** A list of transient pointers to Particle objects. */
typedef list<tPPtr> tPList;

/** A list of transient pointers to const Particle objects. */
typedef list<tcPPtr> tcPList;

/** A map relating character strings to bare pointers to InterfaceBase objects */
ThePEG_DECLARE_MAP(string,const InterfaceBase *,InterfaceMap);

/** A rebinder for InterfacedBase objects. */
typedef Rebinder<InterfacedBase> TranslationMap;

/** A map relating character strings to EventGenerator objects */
ThePEG_DECLARE_MAP(string,EGPtr,GeneratorMap);

/** A vector of pointers to AnalysisHandler objects. */
typedef vector<AnaPtr> AnalysisVector;

/** A pair of pointers to ParticleData objects. */
typedef pair<PDPtr, PDPtr> PDPair;

/** A pair of pointers to const ParticleData objects. */
typedef pair<cPDPtr, cPDPtr> cPDPair;

/** A pair of transient pointers to ParticleData objects. */
typedef pair<tPDPtr, tPDPtr> tPDPair;

/** A pair of transient pointers to const ParticleData objects. */
typedef pair<tcPDPtr, tcPDPtr> tcPDPair;

/** A pair of pointers to Particle objects. */
typedef pair<PPtr, PPtr> PPair;

/** A pair of pointers to const Particle objects. */
typedef pair<cPPtr, cPPtr> cPPair;

/** A pair of transient pointers to const Particle objects. */
typedef pair<tPPtr, tPPtr> tPPair;

/** A pair of transient pointers to const Particle objects. */
typedef pair<tcPPtr, tcPPtr> tcPPair;

/** An Interval in scale. */
typedef Interval<Energy2> SInterval;

/** A vector of intervals of scales. */
typedef vector<SInterval> SIntervalVector;

/** A vector of pairs of transient pointers to PartonBins. */
typedef vector<tPDPair> tPartonPairVec;

/** A pair of transient pointers to ColourLine objects. */
typedef pair<tColinePtr,tColinePtr> tColinePair;

/** A set of pointers to DecayMode objects. */
ThePEG_DECLARE_SET(tDMPtr,DecaySet);

/** A set oc character strings. */
ThePEG_DECLARE_SET(string,StringSet);

/** A vector of energies. */
typedef vector<Energy> EnergyVector;

/** A vector of pointers to EventInfoBase objects. */
typedef vector<EIPtr> EIVector;

/** A vector of doubles. */
typedef vector<double> DVector;

/** A pair of doubles. */
typedef pair<double,double> DPair;

/** @name Global shift operators to simplify adding and removing
 * objects to containers. */
//@{
/**
 * Overload the left shift operator for vector to push_back objects to
 * a vector.
 * @param tv the vector being filled by push_back.
 * @param u the object being pushed back.
 * @return a referens to the vector.
 */
template <typename T, typename U>
vector<T> & operator<<(vector<T> & tv, const U & u) {
  tv.push_back(u);
  return tv;
}

/**
 * Overload the right shift operator for vector to pop objects from
 * a vector.
 * @param tv the vector being popped by pop_back.
 * @param u the object at the back of the vector before popping.
 * @return a referens to the vector.
 */
template <typename T, typename U>
vector<T> & operator>>(vector<T> & tv, U & u) {
  u = tv.back();
  tv.pop_back();
  return tv;
}

/**
 * Overload the left shift operator for stack to push objects to
 * a vector.
 * @param ts the stack being filled by push.
 * @param u the object being pushed.
 * @return a referens to the stack.
 */
template <typename T, typename U>
stack<T> & operator<<(stack<T> & ts, const U & u) {
  ts.push(u);
  return ts;
}

/**
 * Overload the right shift operator for stack to pop objects from
 * a stack.
 * @param ts the stack being popped.
 * @param u the object at the top of the stack before popping.
 * @return a referens to the stack.
 */
template <typename T, typename U>
stack<T> & operator>>(stack<T> & ts, U & u) {
  u = ts.top();
  ts.pop();
  return ts;
}

/**
 * Overload the left shift operator for deque to push_back objects to
 * a deque.
 * @param td the deque being filled by push_back.
 * @param u the object being pushed back.
 * @return a referens to the deque.
 */
template <typename T, typename U>
deque<T> & operator<<(deque<T> & td, const U & u) {
  td.push_back(u);
  return td;
}

/**
 * Overload the right shift operator for vector to pop objects from
 * a deque.
 * @param td the deque being popped by pop_front.
 * @param u the object at the front of the deque before popping.
 * @return a referens to the deque.
 */
template <typename T, typename U>
deque<T> & operator>>(deque<T> & td, U & u) {
  u = td.front();
  td.pop_front();
  return td;
}

/**
 * Overload the left shift operator for std::set to insert objects in
 * a set.
 * @param ts the set being filled by insert.
 * @param u the object being inserted.
 * @return a referens to the set.
 */
template <typename T, typename U>
set<T> & operator<<(set<T> & ts, const U & u) {
  ts.insert(u);
  return ts;
}
//@}

/** @name Functions for I/O of containers of objects with unit. */
//@{
/**
 * Ouput a vector of objects with the specified unit.
 * @param os the stream used for output.
 * @param v the vector to be output.
 * @param u the unit to be used.
 */
template <typename OStream, typename T, typename Alloc, typename UT>
void ounitstream(OStream & os, const vector<T,Alloc> & v, UT & u) {
  os << v.size();
  for ( typename vector<T,Alloc>::const_iterator i = v.begin();
	i != v.end(); ++i )
    os << ounit(*i, u);
}

/**
 * Input a vector of objects with the specified unit.
 * @param is the stream used for input.
 * @param v the vector to be input.
 * @param u the unit to be used.
 */
template <typename IStream, typename T, typename Alloc, typename UT>
void iunitstream(IStream & is, vector<T,Alloc> & v, UT & u) {
  typename vector<T,Alloc>::size_type l;
  is >> l;
  v.resize(l);
  for ( typename vector<T,Alloc>::iterator i = v.begin(); i != v.end(); ++i )
    is >> iunit(*i, u);
}

/**
 * Ouput a set of objects with the specified unit.
 * @param os the stream used for output.
 * @param s the set to be output.
 * @param u the unit to be used.
 */
template <typename OStream, typename T, typename CMP, typename A, typename UT>
void ounitstream(OStream & os, const set<T,CMP,A> & s, UT & u) {
  os << s.size();
  for ( typename set<T,CMP,A>::const_iterator i = s.begin(); i != s.end(); ++i )
    os << ounit(*i, u);
}

/**
 * Input a set of objects with the specified unit.
 * @param is the stream used for input.
 * @param s the set to be input.
 * @param u the unit to be used.
 */
template <typename IStream, typename T, typename CMP, typename A, typename UT>
void iunitstream(IStream & is, set<T,CMP,A> & s, UT & u) {
  s.clear();
  typename set<T,CMP,A>::size_type l;
  is >> l;
  T t;
  while ( l-- ) {
    is >> iunit(t, u);
    s.insert(t);
  }
}

/**
 * Ouput a map of keys and objects where the objects are output with
 * the specified unit.
 * @param os the stream used for output.
 * @param m the map to be output.
 * @param u the unit to be used for the mapped objects.
 */
template <typename OStream, typename K, typename T,
          typename CMP, typename A, typename UT>
void ounitstream(OStream & os, const map<K,T,CMP,A> & m, UT & u) {
  os << m.size();
  for ( typename map<K,T,CMP,A>::const_iterator i = m.begin();
	i != m.end(); ++i )
    os << i->first << ounit(i->second, u);
}

/**
 * Input a map of keys and objects where the objects are input with
 * the specified unit.
 * @param is the stream used for input.
 * @param m the map to be input.
 * @param u the unit to be used for the mapped objects.
 */
template <typename IStream, typename K, typename T,
          typename CMP, typename A, typename UT>
void iunitstream(IStream & is, map<K,T,CMP,A> & m, UT & u) {
  m.clear();
  typename map<K,T,CMP,A>::size_type l;
  is >> l;
  T t;
  K k;
  while ( l-- ) {
    is >> k >> iunit(t, u);
    m[k] = t;
  }
}
//@}

}

#endif /* ThePEG_Containers_H */