Package pyffi :: Package object_models :: Module array_type :: Class AnyArray
[hide private]
[frames] | no frames]

Class AnyArray

source code

            object --+        
                     |        
                  list --+    
                         |    
             ValidatedList --+
                             |
            object --+       |
                     |       |
utils.graph.DetailNode --+   |
                         |   |
          any_type.AnyType --+
                             |
                            AnyArray
Known Subclasses:

Abstract base class for all array types.

@cvar _MAXSTR: Maximum number of elements to write in the L{__str__} method. :type _MAXSTR: int

Instance Methods [hide private]
bool
is_interchangeable(self, other)
Check if array's are interchangeable.
source code
str
__str__(self)
String representation.
source code
generator yielding DetailNodes
get_detail_child_nodes(self, edge_filter=(True, True))
Generator which yields all children of this item in the detail view (by default, all acyclic and active ones).
source code
generator yielding strs
get_detail_child_names(self, edge_filter=(True, True))
Generator which yields all child names of this item in the detail view.
source code

Inherited from ValidatedList: __init__, __setitem__, append, extend, insert

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setslice__, __sizeof__, count, index, pop, remove, reverse, sort

Inherited from any_type.AnyType: read, write

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator, replace_global_node

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Methods [hide private]

Inherited from ValidatedList: validate

Class Variables [hide private]
  _MAXSTR = 16

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_interchangeable(self, other)

source code 
Check if array's are interchangeable.
Returns: bool
True if objects are close, False otherwise.
Overrides: any_type.AnyType.is_interchangeable

__str__(self)
(Informal representation operator)

source code 
String representation.
Returns: str
String representation.
Overrides: object.__str__

get_detail_child_nodes(self, edge_filter=(True, True))

source code 

Generator which yields all children of this item in the detail view (by default, all acyclic and active ones).

Override this method if the node has children.

Parameters:
  • edge_filter - The edge type to include.
Returns: generator yielding DetailNodes
Generator for detail tree child nodes.
Overrides: utils.graph.DetailNode.get_detail_child_nodes
(inherited documentation)

get_detail_child_names(self, edge_filter=(True, True))

source code 

Generator which yields all child names of this item in the detail view.

Override this method if the node has children.

Returns: generator yielding strs
Generator for detail tree child names.
Overrides: utils.graph.DetailNode.get_detail_child_names
(inherited documentation)