Package mrv :: Package maya :: Package nt :: Module geometry :: Class _SingleIndexedComponentIterator
[hide private]
[frames] | no frames]

Class _SingleIndexedComponentIterator

source code

                      object --+    
                               |    
_SingleIndexedComponentGenerator --+
                                   |
                                  _SingleIndexedComponentIterator

Utility which produces iterators for the component type it was initialized with. As a bonus, it allows to return quick constrained iterators using the slice and get-item notation
Instance Methods [hide private]
 
__iter__(self) source code
 
_get_complete_iterator(self) source code
 
_check_component(self) source code
 
__getslice__(self, i, j) source code
 
__getitem__(self, *args) source code
 
iterator(self)
Returns: Iterator for all components in the mesh
source code
 
iter(self)
Returns: Iterator for all components in the mesh
source code

Inherited from _SingleIndexedComponentGenerator: __init__, empty

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

Class Variables [hide private]

Inherited from _SingleIndexedComponentGenerator (private): _int32b

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_check_component(self)

source code 
Raises:
  • NotImplementedError - if comp needs double-index component, our interface cannot support anything else than SingleIndex components

__getslice__(self, i, j)
(Slicling operator)

source code 
Overrides: _SingleIndexedComponentGenerator.__getslice__

__getitem__(self, *args)
(Indexing operator)

source code 
Overrides: _SingleIndexedComponentGenerator.__getitem__

iterator(self)

source code 
Returns:
Iterator for all components in the mesh

iter(self)

source code 
Returns:
Iterator for all components in the mesh