Stxxl  1.4.0
Namespaces | Defines | Functions
include/stxxl/bits/common/utils.h File Reference
#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>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  stxxl
 

<stxxl> library namespace


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 Documentation

#define LIKELY (   c)    c
#define STXXL_STATIC_ASSERT (   x)    { typedef int static_assert_dummy_type[(x) ? 1 : -1]; }
#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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines