Package pyffi :: Package object_models :: Package xml :: Module bit_struct :: Class Bits
[hide private]
[frames] | no frames]

Class Bits

source code

               object --+    
                        |    
   utils.graph.DetailNode --+
                            |
           object --+       |
                    |       |
editable.EditableBase --+   |
                        |   |
 editable.EditableSpinBox --+
                            |
                           Bits

Basic implementation of a n-bit unsigned integer type (without read and write).
Instance Methods [hide private]
 
__init__(self, numbits=1, default=0, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_value(self)
Return stored value.
source code
 
set_value(self, value)
Set value to C{value}.
source code
 
__str__(self)
str(x)
source code
str
get_detail_display(self)
Return an object that can be used to display the instance.
source code
any (whatever is appropriate for the particular implementation of the editor)
get_editor_value(self)
Return data as a value to initialize an editor with.
source code
 
set_editor_value(self, editorvalue)
Set data from the editor value.
source code
 
get_editor_minimum(self) source code
 
get_editor_maximum(self) source code

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_child_names, get_detail_child_nodes, get_detail_iterator, replace_global_node

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, numbits=1, default=0, parent=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

get_detail_display(self)

source code 
Return an object that can be used to display the instance.
Returns: str
A string that can be used to display the instance.
Overrides: utils.graph.DetailNode.get_detail_display

get_editor_value(self)

source code 
Return data as a value to initialize an editor with. Override this method.
Returns: any (whatever is appropriate for the particular implementation of the editor)
A value for the editor.
Overrides: editable.EditableBase.get_editor_value
(inherited documentation)

set_editor_value(self, editorvalue)

source code 
Set data from the editor value. Override this method.
Parameters:
  • editorvalue - The value of the editor.
Overrides: editable.EditableBase.set_editor_value
(inherited documentation)

get_editor_minimum(self)

source code 
Overrides: editable.EditableSpinBox.get_editor_minimum

get_editor_maximum(self)

source code 
Overrides: editable.EditableSpinBox.get_editor_maximum