CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
OrderedSet.OrderedSet Class Reference
Inheritance diagram for OrderedSet.OrderedSet:

Public Member Functions

def __contains__ (self, key)
 
def __eq__ (self, other)
 
def __init__ (self, iterable=None)
 
def __iter__ (self)
 
def __len__ (self)
 
def __repr__ (self)
 
def __reversed__ (self)
 
def add (self, key)
 
def discard (self, key)
 
def pop (self, last=True)
 

Public Attributes

 end
 
 map
 

Detailed Description

Definition at line 29 of file OrderedSet.py.

Constructor & Destructor Documentation

◆ __init__()

def OrderedSet.OrderedSet.__init__ (   self,
  iterable = None 
)

Definition at line 31 of file OrderedSet.py.

31  def __init__(self, iterable=None):
32  self.end = end = []
33  end += [None, end, end] # sentinel node for doubly linked list
34  self.map = {} # key --> [key, prev, next]
35  if iterable is not None:
36  self |= iterable
37 

Member Function Documentation

◆ __contains__()

def OrderedSet.OrderedSet.__contains__ (   self,
  key 
)

Definition at line 41 of file OrderedSet.py.

41  def __contains__(self, key):
42  return key in self.map
43 

References OrderedSet.OrderedSet.map, HcalEmap.map, EMap.map, and cscdqm::Summary.map.

◆ __eq__()

def OrderedSet.OrderedSet.__eq__ (   self,
  other 
)

Definition at line 82 of file OrderedSet.py.

82  def __eq__(self, other):
83  if isinstance(other, OrderedSet):
84  return len(self) == len(other) and list(self) == list(other)
85  return set(self) == set(other)
86 
87 

References list().

Referenced by SequenceTypes._UnarySequenceOperator.__ne__().

◆ __iter__()

def OrderedSet.OrderedSet.__iter__ (   self)

◆ __len__()

def OrderedSet.OrderedSet.__len__ (   self)

Definition at line 38 of file OrderedSet.py.

38  def __len__(self):
39  return len(self.map)
40 

References OrderedSet.OrderedSet.map, HcalEmap.map, EMap.map, and cscdqm::Summary.map.

◆ __repr__()

def OrderedSet.OrderedSet.__repr__ (   self)

Definition at line 77 of file OrderedSet.py.

77  def __repr__(self):
78  if not self:
79  return '%s()' % (self.__class__.__name__,)
80  return '%s(%r)' % (self.__class__.__name__, list(self))
81 

References __class__< T >.__class__(), and list().

◆ __reversed__()

def OrderedSet.OrderedSet.__reversed__ (   self)

◆ add()

def OrderedSet.OrderedSet.add (   self,
  key 
)

◆ discard()

def OrderedSet.OrderedSet.discard (   self,
  key 
)

Definition at line 50 of file OrderedSet.py.

50  def discard(self, key):
51  if key in self.map:
52  key, prev, next = self.map.pop(key)
53  prev[2] = next
54  next[1] = prev
55 

References OrderedSet.OrderedSet.map, HcalEmap.map, EMap.map, cscdqm::Summary.map, and OrderedSet.OrderedSet.pop().

Referenced by OrderedSet.OrderedSet.pop().

◆ pop()

def OrderedSet.OrderedSet.pop (   self,
  last = True 
)

Definition at line 70 of file OrderedSet.py.

70  def pop(self, last=True):
71  if not self:
72  raise KeyError('set is empty')
73  key = self.end[1][0] if last else self.end[2][0]
74  self.discard(key)
75  return key
76 

References OrderedSet.OrderedSet.discard(), DQMNet.discard(), OrderedSet.OrderedSet.end, poly< T >::const_iterator.end, edm::IDVectorMap< ID, C, P >::range.end, validateAlignments.ValidationJob.end, cond::RunInfo_t.end, validateAlignments.ValidationJobMultiIOV.end, o2olib.O2ORunMgr.end, esMonitoring.FDOutputListener.end, LHCInfoImpl::LumiSectionFilter.end, and svgfig.LineAxis.end.

Referenced by OrderedSet.OrderedSet.discard().

Member Data Documentation

◆ end

OrderedSet.OrderedSet.end

◆ map

OrderedSet.OrderedSet.map
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
list
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*", "!HLTx*" if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL. It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of "!*" before the partial wildcard feature was incorporated). Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run