Belle II Software development
Variable Class Reference
Inheritance diagram for Variable:
RealVariable ScalarVariable VectorVariable

Public Member Functions

def __init__ (self, ident, type, size)
 
def format_value (self, value, check=True)
 

Public Attributes

 ident
 Identifier used in VCD output stream.
 
 type
 VCD variable type; one of :const:VCDWriter.VAR_TYPES.
 
 size
 Size, in bits, of variable.
 

Static Private Attributes

tuple __slots__ = ('ident', 'type', 'size')
 variables
 

Detailed Description

VCD variable details needed to call :meth:`VCDWriter.change()`.

Definition at line 461 of file writer.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ident,
  type,
  size 
)
Initialization of Variable function

Definition at line 467 of file writer.py.

467 def __init__(self, ident, type, size):
468 """Initialization of Variable function"""
469
470 self.ident = ident
471
472 self.type = type
473
474 self.size = size
475

Member Function Documentation

◆ format_value()

def format_value (   self,
  value,
  check = True 
)
Format value change for use in VCD stream.

Reimplemented in ScalarVariable, RealVariable, and VectorVariable.

Definition at line 476 of file writer.py.

476 def format_value(self, value, check=True):
477 """Format value change for use in VCD stream."""
478 raise NotImplementedError
479
480

Member Data Documentation

◆ __slots__

tuple __slots__ = ('ident', 'type', 'size')
staticprivate

variables

Definition at line 465 of file writer.py.

◆ ident

ident

Identifier used in VCD output stream.

Definition at line 470 of file writer.py.

◆ size

size

Size, in bits, of variable.

Definition at line 474 of file writer.py.

◆ type

type

VCD variable type; one of :const:VCDWriter.VAR_TYPES.

Definition at line 472 of file writer.py.


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