TPIE

2362a60
util.h File Reference

Miscellaneous utility functions. More...

#include <tpie/portability.h>
#include <tpie/types.h>
#include <cmath>
#include <string>

Go to the source code of this file.

Classes

struct  tpie::sign< T >
 
struct  tpie::sign< uint8_t >
 
struct  tpie::sign< uint16_t >
 
struct  tpie::sign< uint32_t >
 
struct  tpie::sign< uint64_t >
 
struct  tpie::unsign< T >
 
struct  tpie::unsign< int8_t >
 
struct  tpie::unsign< int16_t >
 
struct  tpie::unsign< int32_t >
 
struct  tpie::unsign< int64_t >
 
struct  tpie::linear_memory_base< child_t >
 Base class of data structures with linear memory usage. More...
 
struct  tpie::template_log< t >
 Computes the least integer strictly greater than log(t). More...
 
struct  tpie::template_log< 1 >
 
struct  tpie::binary_argument_swap< T >
 A binary functor with the arguments swapped. More...
 

Namespaces

 tpie
 pipelining/factory_base.h Base class of pipelining factories
 

Functions

template<typename T >
void tpie::unused (const T &x)
 Declare that a variable is unused on purpose. More...
 
template<typename T , typename C >
void tpie::pop_and_push_heap (T a, T b, C lt)
 Restore heap invariants after the first element has been replaced by some other element. More...
 
template<typename T >
void tpie::pop_and_push_heap (T a, T b)
 Restore heap invariants after the first element has been replaced by some other element. More...
 
void tpie::atomic_rename (const std::string &src, const std::string &dst)
 
template<typename T >
void tpie::free_structure_memory (T &v)
 Free the memory assosiated with a stl or tpie structure by swapping it with a default constructed structure of the same type. More...
 

Variables

const char tpie::directory_delimiter = '/'
 

Detailed Description

Miscellaneous utility functions.

Definition in file util.h.