vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKTreeViewModelTuple Class Reference

#include <vdktreeview.h>

Inheritance diagram for VDKTreeViewModelTuple:
Inheritance graph
[legend]
Collaboration diagram for VDKTreeViewModelTuple:
Collaboration graph
[legend]

Public Member Functions

 VDKTreeViewModelTuple (int n=0, int key=0, VDKStringCompareFunction less=NULL, VDKStringCompareFunction equal=NULL)
 
- Public Member Functions inherited from VDKArray< T >
 VDKArray (int n=0)
 
 VDKArray (const VDKArray &)
 
VDKArrayoperator= (const VDKArray &)
 
virtual ~VDKArray ()
 
int size ()
 
void resize (int)
 
T & operator[] (int ndx)
 
VDKArray< T > & Heapsort ()
 
virtual int operator== (VDKArray< T > &m)
 

Public Attributes

VDKReadWriteValueProp< VDKTreeViewModelTuple, int > KeyIndex
 
VDKReadWriteValueProp< VDKTreeViewModelTuple, VDKStringCompareFunction > Less
 
VDKReadWriteValueProp< VDKTreeViewModelTuple, VDKStringCompareFunction > Equal
 

Detailed Description

This class represent a tuple, a string array with an element considered as a primary key.

Constructor & Destructor Documentation

◆ VDKTreeViewModelTuple()

VDKTreeViewModelTuple::VDKTreeViewModelTuple ( int  n = 0,
int  key = 0,
VDKStringCompareFunction  less = NULL,
VDKStringCompareFunction  equal = NULL 
)
inline

Constructor.

Parameters
n,arraydimension
key,ordinalposition of the key field ( 0 <= key < n)
less,anuser function to substitute < operator if needed
equal,anuser function to substitute == operator if needed

Compare function should be declared as: bool compare(VDKString&, VDKString&);

Member Data Documentation

◆ Equal

VDKReadWriteValueProp<VDKTreeViewModelTuple,VDKStringCompareFunction> VDKTreeViewModelTuple::Equal

Property: Equal

◆ KeyIndex

VDKReadWriteValueProp<VDKTreeViewModelTuple,int> VDKTreeViewModelTuple::KeyIndex

Property: KeyIndex

◆ Less

VDKReadWriteValueProp<VDKTreeViewModelTuple,VDKStringCompareFunction> VDKTreeViewModelTuple::Less

Property: Less


The documentation for this class was generated from the following file: