| 
    MySQL 5.6.14 Source Code Document
    
   | 
 
#include <pfs_instr.h>
Public Member Functions | |
| void | init (uint random, uint max_size) | 
| bool | has_pass () const | 
| void | next_pass () | 
| uint | first () const | 
| uint | last () const | 
Helper to scan circular buffers. Given a buffer of size [0, max_size - 1], and a random starting point in the buffer, this helper returns up to two [first, last -1] intervals that:
Definition at line 320 of file pfs_instr.h.
      
  | 
  inline | 
First index for this pass.
Definition at line 344 of file pfs_instr.h.
      
  | 
  inline | 
Predicate, has a next pass.
Definition at line 334 of file pfs_instr.h.
      
  | 
  inline | 
Last index for this pass.
Definition at line 348 of file pfs_instr.h.
      
  | 
  inline | 
Iterator, proceed to the next pass.
Definition at line 340 of file pfs_instr.h.