parameters: (self)
return_statement: return list(self.__arrays)
docstring: Returns all elements as a list.
docstring_summary: Returns all elements as a list.
docstring_tokens: Returns all elements as a list .
function: def GetData(self):
          "Returns all elements as a list."
          property = self.SMProperty
          nElems = property.GetNumberOfElements()
          if nElems%2 != 0:
              raise ValueError ("The SMProperty with XML label '%s' has a size that is not a multiple of 2." % property.GetXMLLabel())
          self.__arrays = []
          for i in range(0, nElems, 2):
              if self.GetElement(i+1) != '0':
                  self.__arrays.append(self.GetElement(i))
          return list(self.__arrays)
function_tokens: def GetData ( self ) : property = self . SMProperty nElems = property . GetNumberOfElements ( ) if nElems % 2 != 0 : raise ValueError ( "The SMProperty with XML label '%s' has a size that is not a multiple of 2." % property . GetXMLLabel ( ) ) self . __arrays = [ ] for i in range ( 0 , nElems , 2 ) : if self . GetElement ( i + 1 ) != '0' : self . __arrays . append ( self . GetElement ( i ) ) return list ( self . __arrays )