The Gaudi Framework  v33r0 (d5ea422b)
GaudiConfig2.semantics.SequenceSemantics Class Reference
Inheritance diagram for GaudiConfig2.semantics.SequenceSemantics:
Collaboration diagram for GaudiConfig2.semantics.SequenceSemantics:

Public Member Functions

def __init__ (self, cpp_type, name=None)
 
def store (self, value)
 
def default (self, value)
 
def opt_value (self, value)
 
- Public Member Functions inherited from GaudiConfig2.semantics.PropertySemantics
def cpp_type (self)
 
def cpp_type (self, value)
 
def load (self, value)
 
def is_set (self, value)
 
def merge (self, a, b)
 

Public Attributes

 value_semantics
 
- Public Attributes inherited from GaudiConfig2.semantics.PropertySemantics
 name
 
 cpp_type
 

Static Private Attributes

tuple __handled_types__ = (re.compile(r'(std::)?(vector|list)<.*>$'), )
 

Detailed Description

Definition at line 280 of file semantics.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiConfig2.semantics.SequenceSemantics.__init__ (   self,
  cpp_type,
  name = None 
)

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 283 of file semantics.py.

283  def __init__(self, cpp_type, name=None):
284  super(SequenceSemantics, self).__init__(cpp_type, name)
285  self.value_semantics = getSemanticsFor(
286  list(extract_template_args(cpp_type))[0])
287 
def getSemanticsFor(cpp_type, name=None)
Definition: semantics.py:409
def extract_template_args(cpp_type)
Definition: semantics.py:206

Member Function Documentation

◆ default()

def GaudiConfig2.semantics.SequenceSemantics.default (   self,
  value 
)

Definition at line 293 of file semantics.py.

293  def default(self, value):
294  new_value = _ListHelper(self.value_semantics)
295  new_value.default = value
296  return new_value
297 

◆ opt_value()

def GaudiConfig2.semantics.SequenceSemantics.opt_value (   self,
  value 
)
Option string version of value.

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 298 of file semantics.py.

298  def opt_value(self, value):
299  '''
300  Option string version of value.
301  '''
302  if not isinstance(value, _ListHelper):
303  value = self.default(value)
304  return value.opt_value()
305 
306 

◆ store()

def GaudiConfig2.semantics.SequenceSemantics.store (   self,
  value 
)
Validation/transformation of the data to be stored.

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 288 of file semantics.py.

288  def store(self, value):
289  new_value = _ListHelper(self.value_semantics)
290  new_value.extend(value)
291  return new_value
292 

Member Data Documentation

◆ __handled_types__

tuple GaudiConfig2.semantics.SequenceSemantics.__handled_types__ = (re.compile(r'(std::)?(vector|list)<.*>$'), )
staticprivate

Definition at line 281 of file semantics.py.

◆ value_semantics

GaudiConfig2.semantics.SequenceSemantics.value_semantics

Definition at line 285 of file semantics.py.


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