SRS-control 0.1.4
Loading...
Searching...
No Matches
CommonFunctions.hpp File Reference
#include "EnumConvertFunctions.hpp"
#include "srs/utils/CommonAlias.hpp"
#include "srs/utils/CommonDefinitions.hpp"
#include <bit>
#include <bitset>
#include <boost/asio.hpp>
#include <boost/asio/any_io_executor.hpp>
#include <boost/asio/use_awaitable.hpp>
#include <boost/asio/use_future.hpp>
#include <boost/thread/future.hpp>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <format>
#include <magic_enum/magic_enum.hpp>
#include <string>
#include <string_view>
#include <type_traits>
Include dependency graph for CommonFunctions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  srs
namespace  srs::common

Functions

template<std::size_t bit_size, std::size_t max, std::size_t min = 0>
constexpr auto srs::common::subset (const std::bitset< bit_size > &bits) -> std::bitset< max - min >
template<std::size_t high_size, std::size_t low_size>
constexpr auto srs::common::merge_bits (const std::bitset< high_size > &high_bits, const std::bitset< low_size > &low_bits) -> std::bitset< high_size+low_size >
template<std::size_t bit_size>
constexpr auto srs::common::byte_swap (const std::bitset< bit_size > &bits)
template<typename T>
constexpr auto srs::common::gray_to_binary (T gray_val)
constexpr auto srs::common::get_shared_from_this (auto &&obj)
template<typename Enum>
consteval auto srs::common::get_enum_names ()
constexpr auto srs::common::insert_index_to_filename (std::string_view native_name, int idx) -> std::string
auto srs::common::create_coro_task (auto task, const asio::any_io_executor &executor)