InteractionList.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::InteractionList
5 
6 \brief A vector of Interaction objects.
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created May 13, 2005
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _INTERACTION_LIST_H_
20 #define _INTERACTION_LIST_H_
21 
22 #include <vector>
23 #include <ostream>
24 
25 using std::vector;
26 using std::ostream;
27 
28 namespace genie {
29 
30 class Interaction;
31 class InteractionList;
32 
33 ostream & operator << (ostream & stream, const InteractionList & intl);
34 
35 class InteractionList : public vector<Interaction *> {
36 
37 public :
39  InteractionList(const InteractionList & intl);
41 
42  void Reset (void);
43  void Append (const InteractionList & intl);
44  void Copy (const InteractionList & intl);
45  void Print (ostream & stream) const;
46 
48  friend ostream & operator << (ostream & stream, const InteractionList & intl);
49 };
50 
51 } // genie namespace
52 
53 #endif // _INTERACTION_LIST_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
friend ostream & operator<<(ostream &stream, const InteractionList &intl)
void Append(const InteractionList &intl)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
A vector of Interaction objects.
void Print(ostream &stream) const
void Copy(const InteractionList &intl)
InteractionList & operator=(const InteractionList &intl)