The Gaudi Framework  v33r2 (a6f0ec87)
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, valueSem=None)
 
def store (self, value)
 
def default (self, value)
 
def opt_value (self, value)
 
- Public Member Functions inherited from GaudiConfig2.semantics.PropertySemantics
def __init__ (self, cpp_type, name=None)
 
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 286 of file semantics.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 289 of file semantics.py.

289  def __init__(self, cpp_type, name=None, valueSem=None):
290  super(SequenceSemantics, self).__init__(cpp_type, name)
291  self.value_semantics = valueSem or getSemanticsFor(
292  list(extract_template_args(cpp_type))[0])
293 
def getSemanticsFor(cpp_type, name=None)
Definition: semantics.py:440
def extract_template_args(cpp_type)
Definition: semantics.py:206

Member Function Documentation

◆ default()

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

Definition at line 299 of file semantics.py.

299  def default(self, value):
300  new_value = _ListHelper(self.value_semantics)
301  new_value.default = value
302  return new_value
303 

◆ opt_value()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 304 of file semantics.py.

304  def opt_value(self, value):
305  '''
306  Option string version of value.
307  '''
308  if not isinstance(value, _ListHelper):
309  value = self.default(value)
310  return value.opt_value()
311 
312 

◆ store()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 294 of file semantics.py.

294  def store(self, value):
295  new_value = _ListHelper(self.value_semantics)
296  new_value.extend(value)
297  return new_value
298 

Member Data Documentation

◆ __handled_types__

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

Definition at line 287 of file semantics.py.

◆ value_semantics

GaudiConfig2.semantics.SequenceSemantics.value_semantics

Definition at line 291 of file semantics.py.


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