| HDK
    | 
#include <UT_Algorithm.h>
| Public Types | |
| enum | { MAX_CYCLE_FACTOR = 3 } | 
| Public Member Functions | |
| UT_CycleDetectEx () | |
| void | reset () | 
| exint | length () const | 
| bool | detect (const T &tail, exint min_length=2) | 
A version of UT_CycleDetect that additionally supports querying of the cycle length and detection of cycles with a minimum length.
Definition at line 170 of file UT_Algorithm.h.
| anonymous enum | 
The algorithm guarantees that will detect a cycle with no more than MAX_CYCLE_FACTOR*min_length calls to detect()
| Enumerator | |
|---|---|
| MAX_CYCLE_FACTOR | |
Definition at line 220 of file UT_Algorithm.h.
| 
 | inline | 
Definition at line 173 of file UT_Algorithm.h.
| 
 | inline | 
Definition at line 192 of file UT_Algorithm.h.
| 
 | inline | 
Definition at line 187 of file UT_Algorithm.h.
| 
 | inline | 
Definition at line 178 of file UT_Algorithm.h.