All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
sortDataLoggerFiles.MinimumAccumulator Class Reference

Public Member Functions

def add
 
def min
 

Public Attributes

 minKey
 
 minData
 

Detailed Description

Definition at line 226 of file sortDataLoggerFiles.py.

Member Function Documentation

def sortDataLoggerFiles.MinimumAccumulator.add (   self,
  data,
  key = None 
)

Definition at line 227 of file sortDataLoggerFiles.py.

228  def add(self, data, key = None):
229  if key is None: key = data
230  try:
231  if key >= self.minKey: return False
232  except AttributeError: pass # no self.minKey yet?
233  self.minKey = key
234  self.minData = data
return True
def sortDataLoggerFiles.MinimumAccumulator.min (   self)

Definition at line 236 of file sortDataLoggerFiles.py.

237  def min(self): return self.minData
238 # class MinimumAccumulator
239 

Member Data Documentation

sortDataLoggerFiles.MinimumAccumulator.minData

Definition at line 233 of file sortDataLoggerFiles.py.

sortDataLoggerFiles.MinimumAccumulator.minKey

Definition at line 232 of file sortDataLoggerFiles.py.


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