MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
35
struct
pos_all_instr
:
public
PFS_double_index
,
36
public
PFS_instrument_view_constants
37
{
38
pos_all_instr
()
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
67
class
table_all_instr
:
public
PFS_engine_table
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
:
75
table_all_instr
(
const
PFS_engine_table_share
*share);
76
77
public
:
78
~
table_all_instr
()
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
109
pos_all_instr
m_pos
;
111
pos_all_instr
m_next_pos
;
112
};
113
115
#endif
storage
perfschema
table_all_instr.h
Generated on Sat Nov 9 2013 01:28:40 for MySQL 5.6.14 Source Code Document by
1.8.1.2