Package mrv :: Package maya :: Package nt :: Module apipatch :: Class ArrayBase
[hide private]
[frames] | no frames]

Class ArrayBase

source code

Abstract --+
           |
          ArrayBase

Base class for all maya arrays to easily fix them

Note: set _apicls class variable to your api base class

Instance Methods [hide private]
 
__len__(self) source code
 
__setitem__(self, index, item) source code
Class Methods [hide private]
 
mfromMultiple(cls, *args)
Returns: Array created from the given elements
source code
 
mfromIter(cls, iter)
Returns: Array created from elements yielded by iter
source code
 
mfromList(cls, list)
Returns: Array created from the given list of elements
source code
Method Details [hide private]

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

source code 

Note: does not work as it expects a pointer type - probably a bug

mfromMultiple(cls, *args)
Class Method

source code 
Returns:
Array created from the given elements

mfromIter(cls, iter)
Class Method

source code 
Returns:
Array created from elements yielded by iter

Note: this one is less efficient than mfromList as the final length of the array is not predetermined

mfromList(cls, list)
Class Method

source code 
Returns:
Array created from the given list of elements