Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Classes | Namespaces | Macros | Functions
basic_types.hpp File Reference
#include <cstring>
#include <string>
#include <memory>
#include <cstdint>
#include <vector>
#include <type_traits>
#include <iostream>
#include <jau/cpp_lang_util.hpp>
#include <jau/packed_attribute.hpp>
#include <jau/type_traits_queries.hpp>
#include <jau/int_types.hpp>
#include <jau/int_math.hpp>
#include <jau/byte_util.hpp>
#include <jau/string_util.hpp>
#include <jau/ordered_atomic.hpp>
#include <jau/fraction_type.hpp>
Include dependency graph for basic_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jau::ExceptionBase
 
class  jau::IllegalArgumentException
 
class  jau::IllegalStateException
 
class  jau::IndexOutOfBoundsException
 
class  jau::InternalError
 
class  jau::IOError
 
class  jau::NotImplementedError
 
class  jau::NullPointerException
 
class  jau::OutOfMemoryError
 
class  jau::RuntimeException
 
class  jau::UnsupportedOperationException
 

Namespaces

namespace  jau
 __pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.
 

Macros

#define E_FILE_LINE   __FILE__,__LINE__
 

Functions

void jau::clear_bit_uint32 (const uint8_t nr, uint32_t &mask)
 
void jau::clear_bit_uint64 (const uint8_t nr, uint64_t &mask)
 
uint64_t jau::getCurrentMilliseconds () noexcept
 Returns current monotonic time in milliseconds. More...
 
fraction_timespec jau::getMonotonicTime () noexcept
 Returns current monotonic time since Unix Epoch 00:00:00 UTC on 1970-01-01. More...
 
uint64_t jau::getWallClockSeconds () noexcept
 Returns current wall-clock system time of day in seconds since Unix Epoch 00:00:00 UTC on 1 January 1970. More...
 
fraction_timespec jau::getWallClockTime () noexcept
 Returns current wall-clock real-time since Unix Epoch 00:00:00 UTC on 1970-01-01. More...
 
uint128dp_t jau::merge_uint128 (uint16_t const uuid16, uint128dp_t const &base_uuid, nsize_t const uuid16_le_octet_index)
 Merge the given 'uuid16' into a 'base_uuid' copy at the given little endian 'uuid16_le_octet_index' position. More...
 
uint128dp_t jau::merge_uint128 (uint32_t const uuid32, uint128dp_t const &base_uuid, nsize_t const uuid32_le_octet_index)
 Merge the given 'uuid32' into a 'base_uuid' copy at the given little endian 'uuid32_le_octet_index' position. More...
 
bool jau::milli_sleep (uint64_t td_ms, const bool ignore_irq=true) noexcept
 millisecond sleep using high precision monotonic timer, useful for one-shot delays (only). More...
 
void jau::set_bit_uint32 (const uint8_t nr, uint32_t &mask)
 
void jau::set_bit_uint64 (const uint8_t nr, uint64_t &mask)
 
bool jau::sleep (const fraction_timespec &relative_time, const bool ignore_irq=true) noexcept
 sleep using high precision monotonic timer, useful for one-shot delays (only). More...
 
bool jau::sleep_for (const fraction_i64 &relative_time, const bool monotonic=true, const bool ignore_irq=true) noexcept
 sleep_for causes the current thread to block until a specific amount of time has passed. More...
 
bool jau::sleep_for (const fraction_timespec &relative_time, const bool monotonic=true, const bool ignore_irq=true) noexcept
 sleep_for causes the current thread to block until a specific amount of time has passed. More...
 
bool jau::sleep_until (const fraction_timespec &absolute_time, const bool monotonic=true, const bool ignore_irq=true) noexcept
 sleep_until causes the current thread to block until the specific time is reached. More...
 
uint32_t jau::test_bit_uint32 (const uint8_t nr, const uint32_t mask)
 
uint64_t jau::test_bit_uint64 (const uint8_t nr, const uint64_t mask)
 
std::cv_status jau::wait_for (std::condition_variable &cv, std::unique_lock< std::mutex > &lock, const fraction_i64 &relative_time, const bool monotonic=true) noexcept
 wait_for causes the current thread to block until the condition variable is notified, a specific amount of time has passed, or a spurious wakeup occurs. More...
 
std::cv_status jau::wait_for (std::condition_variable &cv, std::unique_lock< std::mutex > &lock, const fraction_timespec &relative_time, const bool monotonic=true) noexcept
 wait_for causes the current thread to block until the condition variable is notified, a specific amount of time has passed, or a spurious wakeup occurs. More...
 
std::cv_status jau::wait_until (std::condition_variable &cv, std::unique_lock< std::mutex > &lock, const fraction_timespec &absolute_time, const bool monotonic=true) noexcept
 wait_until causes the current thread to block until the condition variable is notified, a specific time is reached, or a spurious wakeup occurs. More...
 

Macro Definition Documentation

◆ E_FILE_LINE

#define E_FILE_LINE   __FILE__,__LINE__

Definition at line 305 of file basic_types.hpp.