ATLAS Offline Software
Public Member Functions | Static Private Attributes | List of all members
python.AtlasSemantics.MapMergeNoReplaceSemantics Class Reference
Inheritance diagram for python.AtlasSemantics.MapMergeNoReplaceSemantics:
Collaboration diagram for python.AtlasSemantics.MapMergeNoReplaceSemantics:

Public Member Functions

def __init__ (self, cpp_type)
 
def merge (self, a, b)
 

Static Private Attributes

tuple __handled_types__ = (re.compile(r"^mapMergeNoReplace<.*>$"),)
 

Detailed Description

Extend the mapping-semantics with a merge-method that merges two mappings as long as they do not have different values for the same key
Use 'mapMergeNoReplace<T>' as fifth parameter of the Gaudi::Property<T> constructor
to invoke this merging method.

Definition at line 26 of file AtlasSemantics.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AtlasSemantics.MapMergeNoReplaceSemantics.__init__ (   self,
  cpp_type 
)

Definition at line 33 of file AtlasSemantics.py.

33  def __init__(self, cpp_type):
34  super(MapMergeNoReplaceSemantics, self).__init__(cpp_type)
35 

Member Function Documentation

◆ merge()

def python.AtlasSemantics.MapMergeNoReplaceSemantics.merge (   self,
  a,
  b 
)

Definition at line 36 of file AtlasSemantics.py.

36  def merge(self,a,b):
37  for k in b.keys():
38  if k in a and b[k] != a[k]:
39  raise ValueError('conflicting values in map under key %r and %r %r' % (k, b[k], a[k]))
40  a[k] = b[k]
41  return a
42 
43 

Member Data Documentation

◆ __handled_types__

tuple python.AtlasSemantics.MapMergeNoReplaceSemantics.__handled_types__ = (re.compile(r"^mapMergeNoReplace<.*>$"),)
staticprivate

Definition at line 32 of file AtlasSemantics.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.utility.LHE.merge
def merge(input_file_pattern, output_file)
Merge many input LHE files into a single output file.
Definition: LHE.py:17