mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / ndb / include / kernel / signaldata / IndxKeyInfo.hpp
blobdf75ea0617d2b940d3e6a0cec1fae7ef911e2f72
1 /* Copyright (c) 2003, 2005 MySQL AB
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.
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.
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
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 #ifndef INDX_KEY_INFO_HPP
17 #define INDX_KEY_INFO_HPP
19 #include "SignalData.hpp"
21 class IndxKeyInfo {
22 /**
23 * Sender(s)
25 friend class NdbIndexOperation;
27 /**
28 * Reciver(s)
30 friend class Dbtc;
32 friend bool printINDXKEYINFO(FILE *, const Uint32 *, Uint32, Uint16);
34 public:
35 STATIC_CONST( HeaderLength = 3 );
36 STATIC_CONST( DataLength = 20 );
37 STATIC_CONST( MaxSignalLength = HeaderLength + DataLength );
39 // Public methods
40 public:
41 Uint32* getData() const;
43 private:
44 Uint32 connectPtr;
45 Uint32 transId[2];
46 Uint32 keyData[DataLength];
49 inline
50 Uint32* IndxKeyInfo::getData() const
52 return (Uint32*)&keyData[0];
55 #endif