The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
GaudiKernel.DataHandle.DataHandleVector Class Reference

Public Member Functions

 __init__ (self, paths, mode="R", _type="unknown_t", isCond=False)
 __getstate__ (self)
 __setstate__ (self, state)
 __eq__ (self, other)
 __ne__ (self, other)
 __iter__ (self)
 __len__ (self)
 __getitem__ (self, index)
 __str__ (self)
 __repr__ (self)
 toStringProperty (self)
 paths (self)
 mode (self)
 type (self)
 isCondition (self)
 __opt_value__ (self)

Public Attributes

 Paths = list(paths)
 Mode = mode
 Type = _type
 IsCondition = isCond

Static Private Attributes

tuple __slots__ = ("Paths", "Mode", "Type", "IsCondition")
 __hash__ = None

Detailed Description

Definition at line 81 of file DataHandle.py.

Constructor & Destructor Documentation

◆ __init__()

GaudiKernel.DataHandle.DataHandleVector.__init__ ( self,
paths,
mode = "R",
_type = "unknown_t",
isCond = False )

Definition at line 86 of file DataHandle.py.

86 def __init__(self, paths, mode="R", _type="unknown_t", isCond=False):
87 object.__init__(self)
88 self.Paths = list(paths)
89 self.Mode = mode
90 self.Type = _type
91 self.IsCondition = isCond
92

Member Function Documentation

◆ __eq__()

GaudiKernel.DataHandle.DataHandleVector.__eq__ ( self,
other )

Definition at line 100 of file DataHandle.py.

100 def __eq__(self, other):
101 if isinstance(other, DataHandleVector):
102 return self.__getstate__() == other.__getstate__()
103 if isinstance(other, (list, tuple)):
104 return self.Paths == list(other)
105 if other is None:
106 return False
107 raise ValueError(
108 f"Unknown equality check: type={type(other)!r}, repr={other!r}"
109 )
110

◆ __getitem__()

GaudiKernel.DataHandle.DataHandleVector.__getitem__ ( self,
index )

Definition at line 120 of file DataHandle.py.

120 def __getitem__(self, index):
121 return self.Paths[index]
122

◆ __getstate__()

GaudiKernel.DataHandle.DataHandleVector.__getstate__ ( self)

Definition at line 93 of file DataHandle.py.

93 def __getstate__(self):
94 return {s: getattr(self, s) for s in self.__slots__}
95

◆ __iter__()

GaudiKernel.DataHandle.DataHandleVector.__iter__ ( self)

Definition at line 114 of file DataHandle.py.

114 def __iter__(self):
115 return iter(self.Paths)
116

◆ __len__()

GaudiKernel.DataHandle.DataHandleVector.__len__ ( self)

Definition at line 117 of file DataHandle.py.

117 def __len__(self):
118 return len(self.Paths)
119

◆ __ne__()

GaudiKernel.DataHandle.DataHandleVector.__ne__ ( self,
other )

Definition at line 111 of file DataHandle.py.

111 def __ne__(self, other):
112 return not self == other
113

◆ __opt_value__()

GaudiKernel.DataHandle.DataHandleVector.__opt_value__ ( self)

Definition at line 147 of file DataHandle.py.

147 def __opt_value__(self):
148 return repr([str(path) for path in self.Paths])

◆ __repr__()

GaudiKernel.DataHandle.DataHandleVector.__repr__ ( self)

Definition at line 126 of file DataHandle.py.

126 def __repr__(self):
127 args = f"{self.Paths!r},'{self.Mode}','{self.Type}'"
128 if self.IsCondition:
129 args += f",{self.IsCondition}"
130 return f"{self.__class__.__name__}({args})"
131

◆ __setstate__()

GaudiKernel.DataHandle.DataHandleVector.__setstate__ ( self,
state )

Definition at line 96 of file DataHandle.py.

96 def __setstate__(self, state):
97 for s in state:
98 setattr(self, s, state[s])
99

◆ __str__()

GaudiKernel.DataHandle.DataHandleVector.__str__ ( self)

Definition at line 123 of file DataHandle.py.

123 def __str__(self):
124 return str(self.Paths)
125

◆ isCondition()

GaudiKernel.DataHandle.DataHandleVector.isCondition ( self)

Definition at line 144 of file DataHandle.py.

144 def isCondition(self):
145 return self.IsCondition
146

◆ mode()

GaudiKernel.DataHandle.DataHandleVector.mode ( self)

Definition at line 138 of file DataHandle.py.

138 def mode(self):
139 return self.Mode
140

◆ paths()

GaudiKernel.DataHandle.DataHandleVector.paths ( self)

Definition at line 135 of file DataHandle.py.

135 def paths(self):
136 return self.Paths
137

◆ toStringProperty()

GaudiKernel.DataHandle.DataHandleVector.toStringProperty ( self)

Definition at line 132 of file DataHandle.py.

132 def toStringProperty(self):
133 return self.Paths
134

◆ type()

GaudiKernel.DataHandle.DataHandleVector.type ( self)

Definition at line 141 of file DataHandle.py.

141 def type(self):
142 return self.Type
143

Member Data Documentation

◆ __hash__

GaudiKernel.DataHandle.DataHandleVector.__hash__ = None
staticprivate

Definition at line 84 of file DataHandle.py.

◆ __slots__

tuple GaudiKernel.DataHandle.DataHandleVector.__slots__ = ("Paths", "Mode", "Type", "IsCondition")
staticprivate

Definition at line 82 of file DataHandle.py.

◆ IsCondition

GaudiKernel.DataHandle.DataHandleVector.IsCondition = isCond

Definition at line 91 of file DataHandle.py.

◆ Mode

GaudiKernel.DataHandle.DataHandleVector.Mode = mode

Definition at line 89 of file DataHandle.py.

◆ Paths

GaudiKernel.DataHandle.DataHandleVector.Paths = list(paths)

Definition at line 88 of file DataHandle.py.

◆ Type

GaudiKernel.DataHandle.DataHandleVector.Type = _type

Definition at line 90 of file DataHandle.py.


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