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

Public Member Functions

def __init__
 
def less
 

Public Attributes

 first
 

Detailed Description

Provides less() to compare numbers with a single offset cycle.

For example, with offset 3 the order of [0:20] would be, from the lowest:
[ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 0, 1, 2, ]

Definition at line 53 of file sortDataLoggerFiles.py.

Constructor & Destructor Documentation

def sortDataLoggerFiles.CycleCompareClass.__init__ (   self,
  first 
)

Definition at line 59 of file sortDataLoggerFiles.py.

59 
def __init__(self, first): self.first = first

Member Function Documentation

def sortDataLoggerFiles.CycleCompareClass.less (   self,
  a,
  b 
)

Definition at line 60 of file sortDataLoggerFiles.py.

60 
61  def less(self, a, b): return (a < b) == ((a < self.first) == (b < self.first))
62 # class CycleCompareClass
63 

Member Data Documentation

sortDataLoggerFiles.CycleCompareClass.first

Definition at line 59 of file sortDataLoggerFiles.py.


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