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

Class UniformSimpleArray

source code

            object --+            
                     |            
                  list --+        
                         |        
             ValidatedList --+    
                             |    
            object --+       |    
                     |       |    
utils.graph.DetailNode --+   |    
                         |   |    
          any_type.AnyType --+    
                             |    
                      AnyArray --+
                                 |
                                UniformSimpleArray

Base class for array's with direct access to values of simple items.
Nested Classes [hide private]
  __metaclass__
Metaclass for L{UniformSimpleArray}.
  ItemType
Base class from which all simple types are derived.
Instance Methods [hide private]
 
__getitem__(self, index)
x[y]
source code
 
__setitem__(self, index, value)
Set item at given index.
source code
 
__iter__(self)
iter(x)
source code
 
__contains__(self, value)
y in x
source code
 
append(self, value)
Validate item and append to list.
source code
integer
count(self, value)
@warning: not efficient.
source code
 
extend(self, other)
Extend list.
source code
 
index(self, value)
@warning: not efficient.
source code
 
insert(self, index, value)
Insert.
source code
item
pop(self, index=-1)
remove and return item at index (default last).
source code
 
remove(self, value)
@warning: not efficient.
source code

Inherited from AnyArray: __str__, get_detail_child_names, get_detail_child_nodes, is_interchangeable

Inherited from ValidatedList: __init__

Inherited from list: __add__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getslice__, __gt__, __iadd__, __imul__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setslice__, __sizeof__, 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]

Inherited from AnyArray (private): _MAXSTR

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getitem__(self, index)
(Indexing operator)

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

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

source code 
Set item at given index.
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)

append(self, value)

source code 
Validate item and append to list.
Overrides: list.append
(inherited documentation)

count(self, value)

source code 
@warning: not efficient.
Returns: integer
Overrides: list.count

extend(self, other)

source code 
Extend list.
Overrides: list.extend

index(self, value)

source code 
@warning: not efficient.
Overrides: list.index

insert(self, index, value)

source code 
Insert.
Overrides: list.insert

pop(self, index=-1)

source code 
remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
Returns: item
Overrides: list.pop
(inherited documentation)

remove(self, value)

source code 
@warning: not efficient.
Overrides: list.remove