|
vdk 2.4.0
|
#include <vdktreeview.h>
This class represent a tuple, a string array with an element considered as a primary key.
| VDKTreeViewModelTuple::VDKTreeViewModelTuple | ( | int | n = 0, |
| int | key = 0, |
||
| VDKStringCompareFunction | less = NULL, |
||
| VDKStringCompareFunction | equal = NULL |
||
| ) | [inline] |
Constructor.
| n,array | dimension |
| key,ordinal | position of the key field ( 0 <= key < n) |
| less,an | user function to substitute < operator if needed |
| equal,an | user function to substitute == operator if needed |
Compare function should be declared as: bool compare(VDKString&, VDKString&);
| VDKReadWriteValueProp<VDKTreeViewModelTuple,VDKStringCompareFunction> VDKTreeViewModelTuple::Equal |
Property: Equal
| VDKReadWriteValueProp<VDKTreeViewModelTuple,int> VDKTreeViewModelTuple::KeyIndex |
Property: KeyIndex
| VDKReadWriteValueProp<VDKTreeViewModelTuple,VDKStringCompareFunction> VDKTreeViewModelTuple::Less |
Property: Less
1.7.6.1