📄 btreeelement.h
字号:
//////////////////////////////////////////////////////////////////
///
/// (C) 2007: ScalingWeb.com
///
/// Author: Anton Fedoruk <afedoruk@scalingweb.com>
///
//////////////////////////////////////////////////////////////////
#ifndef __BTreeElement_h__
#define __BTreeElement_h__
///
/// Class BTreeElement
///
template< typename KeyT, typename DataT >
class BTreeElement
{
public:
BTreeElement();
BTreeElement( const KeyT &key, const DataT &data );
BTreeElement( const KeyT &key, const DataT &data, int link );
BTreeElement( const BTreeElement< KeyT, DataT > © );
~BTreeElement();
// Data
KeyT key_;
DataT data_;
int link_;
};
// ===================================================================
// BTreeElement< KeyT, DataT >::BTreeElement
template< typename KeyT, typename DataT >
BTreeElement< KeyT, DataT >::BTreeElement() :
link_( 0 )
{}
// ===================================================================
// BTreeElement< KeyT, DataT >::BTreeElement
template< typename KeyT, typename DataT >
BTreeElement< KeyT, DataT >::BTreeElement( const KeyT &key, const DataT &data ) :
key_( key ),
data_( data ),
link_( 0 )
{}
// ===================================================================
// BTreeElement< KeyT, DataT >::BTreeElement
template< typename KeyT, typename DataT >
BTreeElement< KeyT, DataT >::BTreeElement( const KeyT &key, const DataT &data, int link )
: key_( key ),
data_( data ),
link_( link )
{}
// ===================================================================
// BTreeElement< KeyT, DataT >::BTreeElement
template< typename KeyT, typename DataT >
BTreeElement< KeyT, DataT >::BTreeElement(
const BTreeElement< KeyT, DataT > © )
: key_( copy.key_ ),
data_( copy.data_ ),
link_( copy.link_ )
{}
// ===================================================================
// BTreeElement< KeyT, DataT >::~BTreeElement
template< typename KeyT, typename DataT >
BTreeElement< KeyT, DataT >::~BTreeElement()
{}
#endif // __BTreeElement_h__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -