Stxxl
1.4.0
|
#include <vector>
#include <string>
#include <cmath>
#include <cstdlib>
#include <stxxl/bits/namespace.h>
#include <stxxl/bits/common/types.h>
#include <stxxl/bits/compat/type_traits.h>
#include <stxxl/bits/msvc_compatibility.h>
Go to the source code of this file.
Namespaces | |
namespace | stxxl |
| |
Defines | |
#define | STXXL_STATIC_ASSERT(x) { typedef int static_assert_dummy_type[(x) ? 1 : -1]; } |
#define | LIKELY(c) c |
#define | UNLIKELY(c) c |
Functions | |
std::vector< std::string > | stxxl::split (const std::string &str, const std::string &sep) |
stxxl::int64 | stxxl::atoint64 (const char *s) |
template<typename Tp > | |
const Tp & | stxxl::STXXL_MIN (const Tp &a, const Tp &b) |
template<typename Tp > | |
const Tp & | stxxl::STXXL_MAX (const Tp &a, const Tp &b) |
template<typename Integral > | |
Integral | stxxl::log2_ceil (Integral i) |
template<typename Integral > | |
Integral | stxxl::log2_floor (Integral i) |
template<typename Integral , typename Integral2 > | |
compat::remove_const< Integral > ::type | stxxl::div_ceil (Integral __n, Integral2 __d) |
uint64 | stxxl::longhash1 (uint64 key_) |
template<class T > | |
void | stxxl::swap_1D_arrays (T *a, T *b, unsigned_type size) |
template<typename Integral > | |
Integral | stxxl::round_up_to_power_of_two (Integral n, unsigned_type power) |
template<class Container > | |
Container::value_type | stxxl::pop (Container &c) |
template<class Container > | |
Container::value_type | stxxl::pop_front (Container &c) |
template<class Container > | |
Container::value_type | stxxl::pop_back (Container &c) |
template<class Container > | |
Container::value_type | stxxl::pop_begin (Container &c) |
#define LIKELY | ( | c | ) | c |
Definition at line 142 of file utils.h.
Referenced by stxxl::loser_tree< run_cursor_type, run_cursor_cmp_type >::multi_merge_k(), stxxl::loser_tree< run_cursor_type, run_cursor_cmp_type >::multi_merge_unrolled(), stxxl::loser_tree< run_cursor_type, run_cursor_cmp_type >::multi_merge_unrolled_0(), stxxl::stream::basic_runs_merger< sorted_runs_type, CompareType_, AllocStr_ >::operator++(), and stxxl::stream::runs_creator< use_push< ValueType_ >, CompareType_, BlockSize_, AllocStr_ >::push().
#define STXXL_STATIC_ASSERT | ( | x | ) | { typedef int static_assert_dummy_type[(x) ? 1 : -1]; } |
Definition at line 40 of file utils.h.
Referenced by stxxl::random_shuffle(), short_test(), and stxxl::typed_block< RawSize_, T_, NRef_, InfoType_ >::typed_block().
#define UNLIKELY | ( | c | ) | c |
Definition at line 148 of file utils.h.
Referenced by stxxl::buffered_writer< block_type >::get_free_block(), stxxl::sort_helper::run_cursor2_cmp< block_type, prefetcher_type, value_cmp >::operator()(), stxxl::ksort_local::run_cursor2_cmp< block_type, prefetcher_type, key_extractor >::operator()(), stxxl::buf_ostream< BlkTp_, BIDIteratorTp_ >::operator++(), stxxl::run_cursor2< block_type, prefetcher_type_ >::operator++(), stxxl::buf_istream< BlkTp_, BIDIteratorTp_ >::operator++(), stxxl::stream::vector_iterator2stream< InputIterator_ >::operator++(), stxxl::deque2< ValueType, BlockSize, AllocStrategy, SizeType >::stream::operator++(), stxxl::deque2< ValueType, BlockSize, AllocStrategy, SizeType >::reverse_stream::operator++(), stxxl::buf_ostream< BlkTp_, BIDIteratorTp_ >::operator<<(), stxxl::buf_istream< BlkTp_, BIDIteratorTp_ >::operator>>(), stxxl::normal_stack< Config_ >::pop(), stxxl::queue< ValTp, BlkSz, AllocStr, SzTp >::pop(), stxxl::grow_shrink_stack< Config_ >::pop(), stxxl::grow_shrink_stack2< Config_ >::pop(), stxxl::deque2< ValueType, BlockSize, AllocStrategy, SizeType >::pop_back(), stxxl::deque2< ValueType, BlockSize, AllocStrategy, SizeType >::pop_front(), stxxl::normal_stack< Config_ >::push(), stxxl::queue< ValTp, BlkSz, AllocStr, SzTp >::push(), stxxl::grow_shrink_stack< Config_ >::push(), stxxl::grow_shrink_stack2< Config_ >::push(), stxxl::migrating_stack< CritSize, ExternalStack, InternalStack >::push(), stxxl::deque2< ValueType, BlockSize, AllocStrategy, SizeType >::push_back(), and stxxl::deque2< ValueType, BlockSize, AllocStrategy, SizeType >::push_front().