GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
genie::EventGeneratorList Class Reference

A vector of EventGeneratorI objects. More...

#include <EventGeneratorList.h>

Inheritance diagram for genie::EventGeneratorList:
Inheritance graph
[legend]
Collaboration diagram for genie::EventGeneratorList:
Collaboration graph
[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 cern.ch> University of Liverpool
Created:
January 25, 2004
License:
Copyright (c) 2003-2024, 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 ( )

Definition at line 27 of file EventGeneratorList.cxx.

28 {
29 
30 }
EventGeneratorList::~EventGeneratorList ( )

Definition at line 32 of file EventGeneratorList.cxx.

33 {
34 
35 }

Member Function Documentation

void EventGeneratorList::Print ( ostream &  stream) const

Definition at line 37 of file EventGeneratorList.cxx.

Referenced by genie::operator<<().

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 }
Defines the EventGeneratorI interface.

Friends And Related Function Documentation

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

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