![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Iterator over the list of remembered traces. More...
#include <opt_trace.h>
Public Member Functions | |
| Opt_trace_iterator (Opt_trace_context *ctx) | |
| void | next () | 
| Advances iterator to next trace.  More... | |
| void | get_value (Opt_trace_info *info) const | 
| Provides information about the trace on which the iterator is positioned.  More... | |
| bool | at_end () const | 
Private Attributes | |
| Opt_trace_context * | ctx | 
| Pointer to context, from which traces are retrieved.  More... | |
| const Opt_trace_stmt * | cursor | 
| trace which the iterator is positioned on  More... | |
| long | row_count | 
| how many traces retrieved so far  More... | |
Iterator over the list of remembered traces.
| Opt_trace_iterator::Opt_trace_iterator | ( | Opt_trace_context * | ctx | ) | 
| ctx | context | 
      
  | 
  inline | 
| void Opt_trace_iterator::get_value | ( | Opt_trace_info * | info | ) | const | 
Provides information about the trace on which the iterator is positioned.
| [out] | info | information returned. The usage pattern is 1) instantiate the iterator 2) test at_end(), if false: call get_value() and then next() 3) repeat (2) until at_end() is true. | 
| void Opt_trace_iterator::next | ( | ) | 
Advances iterator to next trace.
      
  | 
  private | 
Pointer to context, from which traces are retrieved.
      
  | 
  private | 
trace which the iterator is positioned on
      
  | 
  private | 
how many traces retrieved so far