GENIEGenerator
Loading...
Searching...
No Matches
genie::EventGeneratorList Class Reference

A vector of EventGeneratorI objects. More...

#include <EventGeneratorList.h>

Inheritance diagram for genie::EventGeneratorList:
[legend]
Collaboration diagram for genie::EventGeneratorList:
[legend]

Public Member Functions

 EventGeneratorList ()
 ~EventGeneratorList ()
void Print (ostream &stream) const

Friends

ostream & operator<< (ostream &stream, const EventGeneratorList &evgl)

Detailed Description

A vector of EventGeneratorI objects.

Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n January 25, 2004
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Definition at line 34 of file EventGeneratorList.h.

Constructor & Destructor Documentation

◆ EventGeneratorList()

EventGeneratorList::EventGeneratorList ( )

Definition at line 27 of file EventGeneratorList.cxx.

28{
29
30}

Referenced by operator<<.

◆ ~EventGeneratorList()

EventGeneratorList::~EventGeneratorList ( )

Definition at line 32 of file EventGeneratorList.cxx.

33{
34
35}

Member Function Documentation

◆ Print()

void EventGeneratorList::Print ( ostream & stream) const

Definition at line 37 of file EventGeneratorList.cxx.

38{
39 EventGeneratorList::const_iterator iter;
40
41 for(iter = this->begin(); iter != this->end(); ++iter) {
42
43 const EventGeneratorI * evg = *iter;
44
45 if(evg) stream << *evg;
46 else stream << "\n********* NULL EVENT GENERATOR *********" << endl;
47 }
48}

Referenced by operator<<.

◆ operator<<

ostream & operator<< ( ostream & stream,
const EventGeneratorList & evgl )
friend

Definition at line 20 of file EventGeneratorList.cxx.

21 {
22 evgl.Print(stream);
23 return stream;
24 }
void Print(ostream &stream) const

References EventGeneratorList(), and Print().


The documentation for this class was generated from the following files: