Files Classes Functions Hierarchy
#include <bucket.h>
Public Member Functions | |
| bucket (T *data_, uintc datasz_, HFN fn_) | |
| Pre allocate memory requirements before use, do not put this class in a loop. | |
| ~bucket () | |
| Cleanup. | |
| void | eval () |
| Sort the data. | |
| void | copy (T *data2) const |
| Extract the result by copying to another vector. | |
Protected Attributes | |
| T * | data |
| The data being sorted. | |
| uintc | datasz |
| The size of the data. | |
| HFN | fn |
| The hash function. | |
| bucketlink< T > ** | vb |
| The buckets. | |
| bucketlink< T > * | link |
| The data in links. | |
| uint | linki |
| Points to the next available link. | |
Definition at line 51 of file bucket.h.
Pre allocate memory requirements before use, do not put this class in a loop.
Extract the result by copying to another vector.
Reimplemented in buckethybrid< T, HFN, C >.
Referenced by buckettest::test01().
The data being sorted.
Definition at line 55 of file bucket.h.
Referenced by bucket< T, HFN >::copy(), and bucket< T, HFN >::eval().
The size of the data.
Definition at line 57 of file bucket.h.
Referenced by bucket< T, HFN >::eval().
The hash function.
Definition at line 59 of file bucket.h.
Referenced by bucket< T, HFN >::copy(), and bucket< T, HFN >::eval().
bucketlink<T>* bucket< T, HFN >::link [protected] |
The data in links.
Definition at line 63 of file bucket.h.
Referenced by bucket< T, HFN >::eval(), and bucket< T, HFN >::~bucket().
bucketlink<T>* * bucket< T, HFN >::vb [protected] |
The buckets.
Definition at line 61 of file bucket.h.
Referenced by bucket< T, HFN >::copy(), bucket< T, HFN >::eval(), and bucket< T, HFN >::~bucket().
1.5.8