TPIE

2362a60
tpie.h
Go to the documentation of this file.
1 // -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
2 // vi:set ts=4 sts=4 sw=4 noet :
3 // Copyright 2011, The TPIE development team
4 //
5 // This file is part of TPIE.
6 //
7 // TPIE is free software: you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation, either version 3 of the License, or (at your
10 // option) any later version.
11 //
12 // TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with TPIE. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __TPIE_TPIE_H__
20 #define __TPIE_TPIE_H__
21 
22 #include <tpie/config.h>
23 #include <tpie/types.h>
24 #include <tpie/flags.h>
25 
29 
33 
34 namespace tpie {
35 
39 enum subsystem {
54  STREAMS=64,
56  HASH=128,
58  TEMPFILE=256,
64 };
65 
66 TPIE_DECLARE_OPERATORS_FOR_FLAGS(subsystem)
67 
68 void tpie_init(flags<subsystem> subsystems=ALL);
73 
80 void tpie_finish(flags<subsystem> subsystems=ALL);
81 
89 memory_size_type get_block_size();
90 
96 void set_block_size(memory_size_type block_size);
97 
98 } //namespace tpie
99 
100 #endif //__TPIE_TPIE_H__
Generate temporary files.
Definition: tpie.h:58
memory_size_type get_block_size()
Get the TPIE block size.
Typesafe bitflags.
subsystem
Subsystems of TPIE.
Definition: tpie.h:39
Needed for tpie_new and tpie_delete and implicitly needed by all TPIE algorithm and data structure im...
Definition: tpie.h:42
void set_block_size(memory_size_type block_size)
Set the TPIE block size.
void tpie_finish(flags< subsystem > subsystems=ALL)
Deinitialize the given subsystems of TPIE.
Generate random hashcodes for tabulation hashing.
Definition: tpie.h:56
Alias for all default subsystems.
Definition: tpie.h:63
Prime number database, for prime.h.
Definition: tpie.h:48
void tpie_init(flags< subsystem > subsystems=ALL)
Initialize the given subsystems of TPIE.
Capture fractions.
Definition: tpie.h:52
Needed for working with files and implicitly by all TPIE algorithm and data structure implementations...
Definition: tpie.h:61
Job manager, for job.h and the parallel quick sort.
Definition: tpie.h:50
TPIE logging framework.
Definition: tpie.h:44
Enable support for streams.
Definition: tpie.h:54
Progress tracking.
Definition: tpie.h:46