MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_all_instr.h
Go to the documentation of this file.
1 /* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
16 #ifndef TABLE_ALL_INSTR_H
17 #define TABLE_ALL_INSTR_H
18 
24 #include "pfs_instr_class.h"
25 #include "pfs_instr.h"
26 #include "pfs_engine_table.h"
27 #include "table_helper.h"
28 
37 {
39  : PFS_double_index(FIRST_VIEW, 0)
40  {}
41 
42  inline void reset(void)
43  {
44  m_index_1= FIRST_VIEW;
45  m_index_2= 0;
46  }
47 
48  inline bool has_more_view(void)
49  { return (m_index_1 <= LAST_VIEW); }
50 
51  inline void next_view(void)
52  {
53  m_index_1++;
54  m_index_2= 0;
55  }
56 };
57 
68 {
69 public:
70  virtual int rnd_next();
71  virtual int rnd_pos(const void *pos);
72  virtual void reset_position(void);
73 
74 protected:
76 
77 public:
79  {}
80 
81 protected:
86  virtual void make_mutex_row(PFS_mutex *pfs)= 0;
91  virtual void make_rwlock_row(PFS_rwlock *pfs)= 0;
96  virtual void make_cond_row(PFS_cond *pfs)= 0;
101  virtual void make_file_row(PFS_file *pfs)= 0;
106  virtual void make_socket_row(PFS_socket *pfs)= 0;
107 
112 };
113 
115 #endif