CMGDK r49-rc2
公有成员 | 保护属性
hgl::SortBase< T >模板类参考

#include <Sort.h>

继承图,类hgl::SortBase< T >
hgl::HeapSort< T >

所有成员的列表。

公有成员

 SortBase (T *buf, int n, Comparator< T > *c)
virtual ~SortBase ()
virtual int GetCount ()
virtual int compare (const T &a, const T &b)
virtual int compare_by_index (int a, int b)
virtual void exchane_by_index (int a, int b)
virtual void cpy (T *dst, T *src)
virtual void cpy_by_index (int dst, int src)
virtual bool sort ()=0

保护属性

T * buffer
int number
Comparator< T > * comp

template<typename T>
class hgl::SortBase< T >


构造及析构函数文档

template<typename T >
hgl::SortBase< T >::SortBase ( T *  buf,
int  n,
Comparator< T > *  c 
) [inline]

本类构造函数

参数:
buf数据缓冲区
n数据个数
c数据大小比较类
template<typename T >
virtual hgl::SortBase< T >::~SortBase ( ) [inline, virtual]

成员函数文档

template<typename T >
virtual int hgl::SortBase< T >::compare ( const T &  a,
const T &  b 
) [inline, virtual]
template<typename T >
virtual int hgl::SortBase< T >::compare_by_index ( int  a,
int  b 
) [inline, virtual]
template<typename T >
virtual void hgl::SortBase< T >::cpy ( T *  dst,
T *  src 
) [inline, virtual]
template<typename T >
virtual void hgl::SortBase< T >::cpy_by_index ( int  dst,
int  src 
) [inline, virtual]
template<typename T >
virtual void hgl::SortBase< T >::exchane_by_index ( int  a,
int  b 
) [inline, virtual]
template<typename T >
virtual int hgl::SortBase< T >::GetCount ( ) [inline, virtual]
template<typename T >
virtual bool hgl::SortBase< T >::sort ( ) [pure virtual]

hgl::HeapSort< T >内被实现。


成员数据文档

template<typename T >
T* hgl::SortBase< T >::buffer [protected]
template<typename T >
Comparator<T>* hgl::SortBase< T >::comp [protected]
template<typename T >
int hgl::SortBase< T >::number [protected]

该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义