131763

所属分类:Windows编程
开发工具:C++
文件大小:5KB
下载次数:0
上传日期:2018-05-15 21:03:15
上 传 者Cqrhsp
说明:  A C ++ storage class 一个C++存储类

文件列表:
KT0FixedArray.H (3413, 2017-04-11)
tBTMATRIX.H (4164, 2017-04-11)
VirtMatrix.H (4777, 2017-04-11)
WizArr.H (2526, 2017-04-11)
WizSortedArr.H (4835, 2017-04-11)
VirtMatrix.CPP (732, 2017-04-11)
wCJFixedArray.CPP (871, 2017-04-11)
WizArr.CPP (1014, 2017-04-11)
WizSortedArr.CPP (895, 2017-04-11)

Storage classes. Bit vector and bit matrix. File BTMATRIX.H Class CWizFixedArray - template class implements an array of elements with fixed maximum size. Performance saver. Files FixedArray.CPP and FixedArray.H . Template classes CWizSimpleArr and CWizArr derived from MFC CArray. CWizSimpleArr redefines operator[]. CWizArr too, and also implements Swap for sorting. Template class CWizArrSort designed to sort arrays CWizArr (but not only them). It's derived from CWizSort and implements Swap and Compare from it. Template arguments are: ARRAY_TYPE is any array class which implements function Swap. COMPARE_TYPE is any class capable which implements function compare on the array. Finally, template function Sort sorts any array suited for CWizArrSort. Files WizArr.CPP and WizArr.H . Template class CWizSortedArr derived from CArray which always keeps elements sorted. Needs template argument COMPARE_TYPE, which compares two elements and returns negative, 0, or positive. Requirement: class Comparer: { public: int Compare (const TYPE& a, const TYPE& b) const; }; Files WizSortedArr.CPP and WizSortedArr.H . Template class CWizVirtMatrix implements matrix of any elements stored in virtual memory supplied by class CWizVirtualMemory. Useful for big matrixes. When accessing a matrix by rows, recommended to use nested class Row - it saves multiply calculations of the offset. Files VirtMatrix.CPP and VirtMatrix.H .

近期下载者

相关文件


收藏者