85 def __init__(self, data_type, value="0", name="default") :
86 Reference.__init__(self, Type.SCALAR, name)
93 return Reference.__str__(self) +
' [ ' + self.
data_type.name +
' ]' 95 def check_value(self) :
99 assert ( self.
value > -127
and self.
value <= 128)
102 assert ( self.
value >= 0
and self.
value <= 255)
105 def get_value_str(self):
107 return "'" + str(self.
value) +
"'" 109 return str(self.
value)
111 return str(self.
value)
113 return str(self.
value)
115 return str(self.
value)
117 return str(self.
value)
119 return str(self.
value)
121 return str(self.
value)
123 return str(self.
value)
125 return str(self.
value)
127 return str(self.
value)
129 return str(self.
value.get_vx_enum_name())
131 return str(self.
value)
133 return str(self.
value.get_vx_enum_name())
135 return "vx_" + str(self.
value).lower() +
"_e"
Scalar object (OpenVX equivalent = vx_scalar)
def __init__(self, data_type, value="0", name="default")
Constructor used to create this object.