Public Member Functions

MGT::Util::ArrayAppender Class Reference

List of all members.

Public Member Functions

def getMemory
def getData
def __len__
def nextItem
def nextElem

Detailed Description

Wrapper for Numpy 1D array that emulates list.append() behaviour

Member Function Documentation

def MGT::Util::ArrayAppender::__len__ (   self )
Return length of getData() result
def MGT::Util::ArrayAppender::getData (   self )
Return only used portion of the internal array
def MGT::Util::ArrayAppender::getMemory (   self )
Return entire internal array
def MGT::Util::ArrayAppender::nextElem (   self )
Like nextItem(), but return the next element itself.
That only makes sense when the array has mutable elements (e.g. is a record array)
def MGT::Util::ArrayAppender::nextItem (   self )
Advance to the next unused element, resizing (2x) the internal array when necessary
@return tuple (internal array, index of the next element)

The documentation for this class was generated from the following file: