Stxxl  1.4.0
Defines | Typedefs | Functions
containers/test_map.cpp File Reference
#include <algorithm>
#include <cmath>
#include <stxxl/map>
#include <stxxl/stats>
Include dependency graph for test_map.cpp:

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 Documentation

#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 Documentation

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.


Function Documentation

int main ( int  argc,
char **  argv 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines