|
MVE - Multi-View Environment mve-devel
|
#include <ctime>#include <cstdlib>#include <thread>#include <chrono>#include <vector>#include <istream>#include "util/defines.h"

Go to the source code of this file.
Namespaces | |
| namespace | util |
| Parser, tokenizer, timer, smart pointer, threads, etc. | |
| namespace | util::system |
| Cross-platform operating system related functions. | |
Functions | |
| template<typename T > | |
| T | util::system::betoh (T const &x) |
| Big endian to host order conversion. | |
| template<int N> | |
| void | util::system::byte_swap (char *data) |
| Swaps little/big endianess of the operand. | |
| template<> | |
| void | util::system::byte_swap< 2 > (char *data) |
| template<> | |
| void | util::system::byte_swap< 4 > (char *data) |
| template<> | |
| void | util::system::byte_swap< 8 > (char *data) |
| template<typename T > | |
| T | util::system::letoh (T const &x) |
| Little endian to host order conversion. | |
| void | util::system::print_build_timestamp (char const *application_name, char const *date, char const *time) |
| Prints the application name and the given date and time strings. | |
| void | util::system::print_build_timestamp (char const *application_name) |
| Prints the application name and date and time of the build. | |
| void | util::system::print_stack_trace (void) |
| Prints a stack trace. | |
| float | util::system::rand_float (void) |
| Returns a floating point random number in [0, 1]. | |
| void | util::system::rand_init (void) |
| Initializes the random number generator. | |
| int | util::system::rand_int (void) |
| Returns a random number in [0, 2^31]. | |
| void | util::system::rand_seed (int seed) |
| Initializes the random number generator with a given seed. | |
| template<typename T > | |
| T | util::system::read_binary_little_endian (std::istream *stream) |
| Reads little endian according to host order conversion. | |
| void | util::system::register_segfault_handler (void) |
| Registers signal SIGSEGV (segmentation fault) handler. | |
| void | util::system::signal_segfault_handler (int code) |
| Handles signal SIGSEGV (segmentation fault) printing a stack trace. | |
| void | util::system::sleep (std::size_t msec) |
| Sleeps the given amount of milli seconds. | |
| void | util::system::sleep_sec (float secs) |
| Sleeps the given amount of seconds. | |