#include <nodebldr.h>
Public Member Functions | |
ListStepper () | |
void | Init (UINT32 NumInStart, UINT32 NumInEnd, UINT32 Start) |
void | GetNext (INT32 *pNextInStart, INT32 *pNextInEnd) |
Private Attributes | |
UINT32 | Min |
UINT32 | Max |
UINT32 | NextInStart |
UINT32 | NextInEnd |
UINT32 | Inc |
UINT32 * | pNextInMin |
UINT32 * | pNextInMax |
Definition at line 698 of file nodebldr.h.
|
Definition at line 701 of file nodebldr.h. 00701 { Min = Max = NextInStart = NextInEnd = Inc = 0; pNextInMin = pNextInMax = NULL;}
|
|
Definition at line 182 of file nodebldr.cpp. 00183 { 00184 if ((*pNextInMax) < Max) 00185 { 00186 *pNextInStart = NextInStart; 00187 *pNextInEnd = NextInEnd; 00188 00189 Inc += Min; 00190 if (Inc >= Max) 00191 { 00192 Inc -= Max; 00193 (*pNextInMin)++; 00194 } 00195 (*pNextInMax)++; 00196 } 00197 else 00198 { 00199 *pNextInStart = -1; 00200 *pNextInEnd = -1; 00201 } 00202 }
|
|
Definition at line 163 of file nodebldr.cpp. 00164 { 00165 if (NumInStart > NumInEnd) 00166 { 00167 Min = NumInEnd; pNextInMin = &NextInEnd; 00168 Max = NumInStart; pNextInMax = &NextInStart; 00169 } 00170 else 00171 { 00172 Min = NumInStart; pNextInMin = &NextInStart; 00173 Max = NumInEnd; pNextInMax = &NextInEnd; 00174 } 00175 00176 NextInStart = NextInEnd = Inc = 0; 00177 00178 for (INT32 dummy;Start > 0;Start--) 00179 GetNext(&dummy,&dummy); 00180 }
|
|
Definition at line 711 of file nodebldr.h. |
|
Definition at line 708 of file nodebldr.h. |
|
Definition at line 707 of file nodebldr.h. |
|
Definition at line 710 of file nodebldr.h. |
|
Definition at line 709 of file nodebldr.h. |
|
Definition at line 713 of file nodebldr.h. |
|
Definition at line 712 of file nodebldr.h. |