Stxxl  1.4.0
Defines | Typedefs | Functions | Variables
algo/test_parallel_sort.cpp File Reference
#include <algorithm>
#include <functional>
#include <limits>
#include <stxxl/vector>
#include <stxxl/stream>
#include <stxxl/scan>
#include <stxxl/sort>
Include dependency graph for test_parallel_sort.cpp:

Go to the source code of this file.

Defines

#define MCSTL_QUICKSORT_WORKAROUND   0
#define STXXL_NOT_CONSIDER_SORT_MEMORY_OVERHEAD   0
#define RECORD_SIZE   16
#define MAGIC   123

Typedefs

typedef stxxl::vector< my_type,
4, stxxl::lru_pager
< 8 >, block_size,
STXXL_DEFAULT_ALLOC_STRATEGY
vector_type

Functions

bool operator< (const my_type &a, const my_type &b)
bool operator== (const my_type &a, const my_type &b)
std::ostream & operator<< (std::ostream &o, const my_type &obj)
stxxl::unsigned_type checksum (vector_type &input)
void linear_sort_normal (vector_type &input)
void linear_sort_streamed (vector_type &input, vector_type &output)
int main (int argc, const char **argv)

Variables

const unsigned long long megabyte = 1024 * 1024
const int block_size = 4 * megabyte
stxxl::unsigned_type run_size
stxxl::unsigned_type buffer_size

Define Documentation

#define MAGIC   123

Definition at line 45 of file test_parallel_sort.cpp.

Definition at line 19 of file test_parallel_sort.cpp.

#define RECORD_SIZE   16

Definition at line 44 of file test_parallel_sort.cpp.

Definition at line 22 of file test_parallel_sort.cpp.


Typedef Documentation

Definition at line 95 of file test_parallel_sort.cpp.


Function Documentation

void linear_sort_normal ( vector_type input)
void linear_sort_streamed ( vector_type input,
vector_type output 
)
int main ( int  argc,
const char **  argv 
)
bool operator< ( const my_type a,
const my_type b 
)
std::ostream& operator<< ( std::ostream &  o,
const my_type obj 
) [inline]

Definition at line 83 of file test_parallel_sort.cpp.

bool operator== ( const my_type a,
const my_type b 
) [inline]

Definition at line 78 of file test_parallel_sort.cpp.


Variable Documentation

const int block_size = 4 * megabyte

Definition at line 42 of file test_parallel_sort.cpp.

Examples:
algo/test_parallel_sort.cpp.

Definition at line 48 of file test_parallel_sort.cpp.

Referenced by main().

const unsigned long long megabyte = 1024 * 1024
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines