Package pyffi :: Package object_models :: Package xml :: Module array :: Class _ListWrap
[hide private]
[frames] | no frames]

Class _ListWrap

source code

            object --+    
                     |    
                  list --+
                         |
            object --+   |
                     |   |
utils.graph.DetailNode --+
                         |
                        _ListWrap
Known Subclasses:

A wrapper for list, which uses get_value and set_value for getting and setting items of the basic type.
Instance Methods [hide private]
new empty list
__init__(self, element_type, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, index)
x[y]
source code
 
__setitem__(self, index, value)
x[i]=y
source code
 
__iter__(self)
iter(x)
source code
 
__contains__(self, value)
y in x
source code
 
_not_implemented_hook(self, *args)
A hook for members that are not implemented.
source code
 
iter_basic_item(self)
Iterator which calls C{get_value()} on all items.
source code
 
iter_item(self)
Iterator over all items.
source code
 
get_basic_item(self, index)
Item getter which calls C{get_value()} on the C{index}'d item.
source code
 
set_basic_item(self, index, value)
Item setter which calls C{set_value()} on the C{index}'d item.
source code
 
get_item(self, index)
Regular item getter, used when the list does not have BasicBase elements.
source code
generator yielding DetailNodes
get_detail_child_nodes(self, edge_filter=(True, True))
Yield children.
source code
generator yielding strs
get_detail_child_names(self, edge_filter=(True, True))
Yield child names.
source code

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

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__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, element_type, parent=None)
(Constructor)

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

__getitem__(self, index)
(Indexing operator)

source code 
x[y]
Overrides: list.__getitem__
(inherited documentation)

__setitem__(self, index, value)
(Index assignment operator)

source code 
x[i]=y
Overrides: list.__setitem__
(inherited documentation)

__iter__(self)

source code 
iter(x)
Overrides: list.__iter__
(inherited documentation)

__contains__(self, value)
(In operator)

source code 
y in x
Overrides: list.__contains__
(inherited documentation)

iter_basic_item(self)

source code 
Iterator which calls C{get_value()} on all items. Applies when the list has BasicBase elements.

iter_item(self)

source code 
Iterator over all items. Applies when the list does not have BasicBase elements.

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

source code 
Yield 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

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

source code 
Yield child names.
Returns: generator yielding strs
Generator for detail tree child names.
Overrides: utils.graph.DetailNode.get_detail_child_names