Stxxl
1.4.0
|
#include <algorithm>
#include <cmath>
#include <stxxl/map>
#include <stxxl/stats>
Go to the source code of this file.
Defines | |
#define | BLOCK_SIZE (32 * 1024) |
#define | CACHE_SIZE (2 * 1024 * 1024 / BLOCK_SIZE) |
#define | CACHE_ELEMENTS (BLOCK_SIZE * CACHE_SIZE / (sizeof(key_type) + sizeof(data_type))) |
Typedefs | |
typedef unsigned int | key_type |
typedef unsigned int | data_type |
typedef stxxl::map< key_type, data_type, cmp,(32 *1024),(32 *1024) | map_type ) |
Functions | |
int | main (int argc, char **argv) |
#define BLOCK_SIZE (32 * 1024) |
Definition at line 34 of file test_map.cpp.
Referenced by main().
#define CACHE_ELEMENTS (BLOCK_SIZE * CACHE_SIZE / (sizeof(key_type) + sizeof(data_type))) |
Definition at line 37 of file test_map.cpp.
Referenced by main().
#define CACHE_SIZE (2 * 1024 * 1024 / BLOCK_SIZE) |
Definition at line 35 of file test_map.cpp.
Referenced by main().
typedef unsigned int data_type |
Definition at line 20 of file test_map.cpp.
typedef unsigned int key_type |
Definition at line 19 of file test_map.cpp.
typedef stxxl::map<key_type, data_type, cmp, (32 * 1024) , (32 * 1024) map_type) |
Definition at line 39 of file test_map.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 41 of file test_map.cpp.
References BLOCK_SIZE, CACHE_ELEMENTS, CACHE_SIZE, stxxl::stats_data::get_reads(), stxxl::stats_data::get_writes(), and STXXL_MSG.