56
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Class definition of Trigger Key
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef T_LBTTRIGGERKEY_H
|
|
21 |
#define T_LBTTRIGGERKEY_H
|
|
22 |
|
|
23 |
|
|
24 |
#include <s32btree.h>
|
|
25 |
|
|
26 |
|
|
27 |
/**
|
|
28 |
* TTriggerKey is a class to used to create and order keys to be used for
|
|
29 |
* entries in the Btree
|
|
30 |
*/
|
|
31 |
class TLbtTriggerKey : public MBtreeKey
|
|
32 |
|
|
33 |
{
|
|
34 |
|
|
35 |
public: // From Base Class MBtreeKey
|
|
36 |
|
|
37 |
/**
|
|
38 |
* Retrieves the key value for a particular entry
|
|
39 |
*/
|
|
40 |
virtual const TAny* Key( const TAny* anEntry ) const;
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Orders two keys
|
|
44 |
*/
|
|
45 |
virtual TInt Compare( const TAny *aLeft, const TAny *aRight ) const;
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Determines the midpoint between two keys
|
|
49 |
*/
|
|
50 |
virtual void Between( const TAny *aLeft, const TAny *aRight,
|
|
51 |
TBtreePivot &aPivot ) const;
|
|
52 |
|
|
53 |
};
|
|
54 |
|
|
55 |
#endif // T_LBTTRIGGERKEY_H
|