cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches

An ordered modules sequence. More...

+ Inheritance diagram for Sequence:
+ Collaboration diagram for Sequence:

Public Member Functions

 __init__ (self, *args)
 Construct an ordered sequence of modules from a list.
 
 __delitem__ (self, index)
 Remove an element from the sequence.
 
 __iter__ (self)
 Iterator definition for the sequence.
 
 __eq__ (self, other)
 Equality operato.
 
 __repr__ (self)
 Human-readable representation of this sequence.
 

Static Public Attributes

 MODULE = object()
 

Detailed Description

Definition at line 171 of file containers_cff.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
args 
)
Parameters
argslist of modules

Examples

>>> module1 = Module('test1', foo = 'bar')
>>> module2 = Module('test2', foo2 = 42)
>>> print(Sequence(module1, module2))
Sequence([Module('test1',
foo = 'bar',
), Module('test2',
foo2 = 42,
)])

Definition at line 191 of file containers_cff.py.

Member Function Documentation

◆ __delitem__()

__delitem__ (   self,
  index 
)

Definition at line 195 of file containers_cff.py.

◆ __eq__()

__eq__ (   self,
  other 
)

Definition at line 203 of file containers_cff.py.

◆ __iter__()

__iter__ (   self)

Definition at line 199 of file containers_cff.py.

◆ __repr__()

__repr__ (   self)

Definition at line 209 of file containers_cff.py.

Member Data Documentation

◆ MODULE

MODULE = object()
static

Definition at line 172 of file containers_cff.py.