Livox SDK API  V2.2.0
core.h File Reference
#include <cassert>
#include <cstdio>
#include <cstring>
#include <iterator>
#include <string>
#include <type_traits>

Go to the source code of this file.

Classes

struct  fmt::v5::internal::result_of< typename >
 
struct  fmt::v5::internal::result_of< F(Args...)>
 
class  fmt::v5::internal::basic_buffer< T >
 
class  fmt::v5::internal::container_buffer< Container >
 
struct  fmt::v5::internal::error_handler
 
struct  fmt::v5::internal::no_formatter_error< T >
 
struct  fmt::v5::is_constructible< T >
 
class  fmt::v5::basic_string_view< Char >
 
struct  fmt::v5::compile_string
 
struct  fmt::v5::is_compile_string< S >
 
class  fmt::v5::basic_format_arg< Context >
 
class  fmt::v5::basic_format_args< Context >
 
struct  fmt::v5::formatter< T, Char, Enable >
 
struct  fmt::v5::convert_to_int< T, Char, Enable >
 
struct  fmt::v5::internal::dummy_string_view
 
struct  fmt::v5::internal::is_string< S >
 
struct  fmt::v5::internal::char_t< S >
 
struct  fmt::v5::internal::named_arg_base< Char >
 
struct  fmt::v5::internal::named_arg< T, Char >
 
struct  fmt::v5::internal::string_value< Char >
 
struct  fmt::v5::internal::custom_value< Context >
 
class  fmt::v5::internal::value< Context >
 
struct  fmt::v5::internal::init< Context, T, TYPE >
 
class  fmt::v5::internal::arg_map< Context >
 
class  fmt::v5::basic_format_arg< Context >
 
class  fmt::v5::basic_format_arg< Context >::handle
 
struct  fmt::v5::monostate
 
class  fmt::v5::basic_parse_context< Char, ErrorHandler >
 
class  fmt::v5::internal::arg_map< Context >
 
class  fmt::v5::internal::locale_ref
 
class  fmt::v5::internal::context_base< OutputIt, Context, Char >
 
struct  fmt::v5::internal::get_type< Context, T >
 
class  fmt::v5::basic_format_context< OutputIt, Char >
 
struct  fmt::v5::basic_format_context< OutputIt, Char >::formatter_type< T >
 
struct  fmt::v5::buffer_context< Char >
 
class  fmt::v5::format_arg_store< Context, Args >
 
class  fmt::v5::basic_format_args< Context >
 
struct  fmt::v5::format_args
 
struct  fmt::v5::wformat_args
 
struct  fmt::v5::char_t< S >
 
struct  fmt::v5::internal::named_arg_base< Char >
 
struct  fmt::v5::internal::named_arg< T, Char >
 
struct  fmt::v5::internal::checked_args< S, Args >
 
struct  fmt::v5::is_contiguous< Container >
 
struct  fmt::v5::is_contiguous< std::basic_string< Char > >
 
struct  fmt::v5::is_contiguous< internal::basic_buffer< Char > >
 

Namespaces

 fmt
 
 fmt::v5
 
 fmt::v5::internal
 

Macros

#define FMT_VERSION   50300
 
#define FMT_HAS_FEATURE(x)   0
 
#define FMT_HAS_INCLUDE(x)   0
 
#define FMT_HAS_CPP_ATTRIBUTE(x)   0
 
#define FMT_GCC_VERSION   0
 
#define FMT_HAS_GXX_CXX11   0
 
#define FMT_MSC_VER   0
 
#define FMT_USE_CONSTEXPR
 
#define FMT_CONSTEXPR   inline
 
#define FMT_CONSTEXPR_DECL
 
#define FMT_USE_CONSTEXPR11   (FMT_USE_CONSTEXPR || FMT_GCC_VERSION >= 406 || FMT_MSC_VER >= 1900)
 
#define FMT_CONSTEXPR11
 
#define FMT_OVERRIDE
 
#define FMT_USE_EXPLICIT   0
 
#define FMT_EXPLICIT
 
#define FMT_NULL   NULL
 
#define FMT_USE_NULLPTR   0
 
#define FMT_EXCEPTIONS   1
 
#define FMT_USE_NOEXCEPT   0
 
#define FMT_DETECTED_NOEXCEPT   throw()
 
#define FMT_HAS_CXX11_NOEXCEPT   0
 
#define FMT_NOEXCEPT   FMT_DETECTED_NOEXCEPT
 
#define FMT_INLINE_NAMESPACE   namespace
 
#define FMT_END_NAMESPACE   } using namespace v5; }
 
#define FMT_BEGIN_NAMESPACE   namespace fmt { FMT_INLINE_NAMESPACE v5 {
 
#define FMT_API
 
#define FMT_ASSERT(condition, message)   assert((condition) && message)
 
#define FMT_MAKE_VALUE(TAG, ArgType, ValueType)
 
#define FMT_MAKE_VALUE_SAME(TAG, Type)
 
#define FMT_ENABLE_IF_T(B, T)   typename std::enable_if<B, T>::type
 
#define FMT_USE_ALIAS_TEMPLATES   FMT_HAS_FEATURE(cxx_alias_templates)
 
#define FMT_CHAR(S)   typename char_t<S>::type
 

Typedefs

typedef basic_buffer< char > fmt::v5::internal::buffer
 
typedef basic_buffer< wchar_t > fmt::v5::internal::wbuffer
 
typedef basic_string_view< char > fmt::v5::string_view
 
typedef basic_string_view< wchar_t > fmt::v5::wstring_view
 
typedef std::conditional< sizeof(long)==sizeof(int), int, long long >::type fmt::v5::internal::long_type
 
typedef std::conditional< sizeof(unsigned long)==sizeof(unsigned), unsigned, unsigned long long >::type fmt::v5::internal::ulong_type
 
typedef basic_parse_context< char > fmt::v5::format_parse_context
 
typedef basic_parse_context< wchar_t > fmt::v5::wformat_parse_context
 
typedef basic_parse_context< char > fmt::v5::parse_context
 
typedef basic_parse_context< wchar_t > fmt::v5::wparse_context
 
typedef buffer_context< char >::type fmt::v5::format_context
 
typedef buffer_context< wchar_t >::type fmt::v5::wformat_context
 

Enumerations

enum  fmt::v5::internal::type {
  fmt::v5::internal::none_type, fmt::v5::internal::named_arg_type, fmt::v5::internal::int_type, fmt::v5::internal::uint_type,
  fmt::v5::internal::long_long_type, fmt::v5::internal::ulong_long_type, fmt::v5::internal::bool_type, fmt::v5::internal::char_type,
  fmt::v5::internal::last_integer_type = char_type, fmt::v5::internal::double_type, fmt::v5::internal::long_double_type, fmt::v5::internal::last_numeric_type = long_double_type,
  fmt::v5::internal::cstring_type, fmt::v5::internal::string_type, fmt::v5::internal::pointer_type, fmt::v5::internal::custom_type
}
 
enum  { fmt::v5::internal::max_packed_args = 15 }
 
enum  : unsigned long long { fmt::v5::internal::is_unpacked_bit = 1ull << 63 }
 

Functions

template<typename T >
std::add_rvalue_reference< T >::type fmt::v5::internal::declval () throw ()
 
template<typename Int >
std::make_unsigned< Int >::type fmt::v5::internal::to_unsigned (Int value)
 
template<typename Container >
Container & fmt::v5::internal::get_container (std::back_insert_iterator< Container > it)
 
template<typename Char >
basic_string_view< Char > fmt::v5::to_string_view (basic_string_view< Char > s)
 
template<typename Char >
basic_string_view< Char > fmt::v5::to_string_view (const std::basic_string< Char > &s)
 
template<typename Char >
basic_string_view< Char > fmt::v5::to_string_view (const Char *s)
 
template<typename S , typename Enable = typename std::enable_if<is_compile_string<S>::value>::type>
basic_string_view< typename S::char_type > fmt::v5::to_string_view (const S &s)
 
dummy_string_view fmt::v5::internal::to_string_view (...)
 
bool fmt::v5::internal::is_integral (type t)
 
bool fmt::v5::internal::is_arithmetic (type t)
 
template<typename Context , typename T >
basic_format_arg< Context > fmt::v5::internal::make_arg (const T &value)
 
template<typename C >
init< C, int, bool_type > fmt::v5::internal::make_value (bool val)
 
template<typename C >
init< C, int, int_type > fmt::v5::internal::make_value (short val)
 
template<typename C >
init< C, unsigned, uint_type > fmt::v5::internal::make_value (unsigned short val)
 
template<typename C >
init< C, int, int_type > fmt::v5::internal::make_value (int val)
 
template<typename C >
init< C, unsigned, uint_type > fmt::v5::internal::make_value (unsigned val)
 
template<typename C >
init< C, long_type,(sizeof(long)==sizeof(int)?int_type:long_long_type) > fmt::v5::internal::make_value (long val)
 
template<typename C >
init< C, ulong_type,(sizeof(unsigned long)==sizeof(unsigned)?uint_type:ulong_long_type) > fmt::v5::internal::make_value (unsigned long val)
 
template<typename C >
init< C, long long, long_long_type > fmt::v5::internal::make_value (long long val)
 
template<typename C >
init< C, unsigned long long, ulong_long_type > fmt::v5::internal::make_value (unsigned long long val)
 
template<typename C >
init< C, int, int_type > fmt::v5::internal::make_value (signed char val)
 
template<typename C >
init< C, unsigned, uint_type > fmt::v5::internal::make_value (unsigned char val)
 
template<typename C , typename Char >
std::enable_if< std::is_same< typename C::char_type, Char >::value, init< C, int, char_type > >::type fmt::v5::internal::make_value (Char val)
 
template<typename C >
std::enable_if< !std::is_same< typename C::char_type, char >::value, init< C, int, char_type > >::type fmt::v5::internal::make_value (char val)
 
template<typename C >
init< C, double, double_type > fmt::v5::internal::make_value (float val)
 
template<typename C >
init< C, double, double_type > fmt::v5::internal::make_value (double val)
 
template<typename C >
init< C, long double, long_double_type > fmt::v5::internal::make_value (long double val)
 
template<typename C >
init< C, const typename C::char_type *, cstring_type > fmt::v5::internal::make_value (typename C::char_type *val)
 
template<typename C >
init< C, const typename C::char_type *, cstring_type > fmt::v5::internal::make_value (const typename C::char_type *val)
 
template<typename C >
init< C, const signed char *, cstring_type > fmt::v5::internal::make_value (signed char *val)
 
template<typename C >
init< C, const signed char *, cstring_type > fmt::v5::internal::make_value (const signed char *val)
 
template<typename C >
init< C, const unsigned char *, cstring_type > fmt::v5::internal::make_value (unsigned char *val)
 
template<typename C >
init< C, const unsigned char *, cstring_type > fmt::v5::internal::make_value (const unsigned char *val)
 
template<typename C >
init< C, basic_string_view< typename C::char_type >, string_type > fmt::v5::internal::make_value (basic_string_view< typename C::char_type > val)
 
template<typename C >
init< C, basic_string_view< typename C::char_type >, string_type > fmt::v5::internal::make_value (typename basic_string_view< typename C::char_type >::type val)
 
template<typename C >
init< C, basic_string_view< typename C::char_type >, string_type > fmt::v5::internal::make_value (const std::basic_string< typename C::char_type > &val)
 
template<typename C >
init< C, const void *, pointer_type > fmt::v5::internal::make_value (void *val)
 
template<typename C >
init< C, const void *, pointer_type > fmt::v5::internal::make_value (const void *val)
 
template<typename C , typename T >
std::enable_if<!std::is_same< T, typename C::char_type >::value >::type fmt::v5::internal::make_value (const T *)
 
template<typename C , typename T >
std::enable_if< std::is_enum< T >::value &&convert_to_int< T, typename C::char_type >::value, init< C, int, int_type > >::type fmt::v5::internal::make_value (const T &val)
 
template<typename C , typename T , typename Char = typename C::char_type>
std::enable_if< is_constructible< basic_string_view< Char >, T >::value &&!internal::is_string< T >::value, init< C, basic_string_view< Char >, string_type > >::type fmt::v5::internal::make_value (const T &val)
 
template<typename C , typename T , typename Char = typename C::char_type>
std::enable_if< !convert_to_int< T, Char >::value &&!std::is_same< T, Char >::value &&!std::is_convertible< T, basic_string_view< Char > >::value &&!is_constructible< basic_string_view< Char >, T >::value &&!internal::is_string< T >::value, init< C, const T &, custom_type > >::type fmt::v5::internal::make_value (const T &val)
 
template<typename C , typename T >
init< C, const void *, named_arg_type > fmt::v5::internal::make_value (const named_arg< T, typename C::char_type > &val)
 
template<typename C , typename S >
std::enable_if< internal::is_string< S >::value, init< C, basic_string_view< typename C::char_type >, string_type > >::type fmt::v5::internal::make_value (const S &val)
 
template<typename Visitor , typename Context >
internal::result_of< Visitor(int)>::type fmt::v5::visit_format_arg (Visitor &&vis, const basic_format_arg< Context > &arg)
 
template<typename Visitor , typename Context >
internal::result_of< Visitor(int)>::type fmt::v5::visit (Visitor &&vis, const basic_format_arg< Context > &arg)
 
template<typename Context >
unsigned long long fmt::v5::internal::get_types ()
 
template<typename Context , typename Arg , typename... Args>
unsigned long long fmt::v5::internal::get_types ()
 
template<bool IS_PACKED, typename Context , typename T >
std::enable_if< IS_PACKED, value< Context > >::type fmt::v5::internal::make_arg (const T &value)
 
template<bool IS_PACKED, typename Context , typename T >
std::enable_if<!IS_PACKED, basic_format_arg< Context > >::type fmt::v5::internal::make_arg (const T &value)
 
template<typename Context = format_context, typename... Args>
format_arg_store< Context, Args... > fmt::v5::make_format_args (const Args &...args)
 
template<typename... Args, typename S >
std::enable_if<!is_compile_string< S >::value >::type fmt::v5::internal::check_format_string (const S &)
 
template<typename... Args, typename S >
std::enable_if< is_compile_string< S >::value >::type fmt::v5::internal::check_format_string (S)
 
template<typename Char >
std::basic_string< Char > fmt::v5::internal::vformat (basic_string_view< Char > format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename Char >
buffer_context< Char >::type::iterator fmt::v5::internal::vformat_to (internal::basic_buffer< Char > &buf, basic_string_view< Char > format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename T >
internal::named_arg< T, char > fmt::v5::arg (string_view name, const T &arg)
 
template<typename T >
internal::named_arg< T, wchar_t > fmt::v5::arg (wstring_view name, const T &arg)
 
template<typename S , typename T , typename Char >
void fmt::v5::arg (S, internal::named_arg< T, Char >)=delete
 
template<typename Container , typename S >
std::enable_if< is_contiguous< Container >::value, std::back_insert_iterator< Container > >::type fmt::v5::vformat_to (std::back_insert_iterator< Container > out, const S &format_str, basic_format_args< typename buffer_context< typename char_t< S >::type >::type > args)
 
template<typename Container , typename S , typename... Args>
std::enable_if< is_contiguous< Container >::value &&internal::is_string< S >::value, std::back_insert_iterator< Container > >::type fmt::v5::format_to (std::back_insert_iterator< Container > out, const S &format_str, const Args &...args)
 
template<typename S , typename Char = typename char_t< S >::type>
std::basic_string< Char > fmt::v5::vformat (const S &format_str, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename S , typename... Args>
std::basic_string< typename char_t< S >::type > fmt::v5::format (const S &format_str, const Args &...args)
 
void fmt::v5::vprint (std::FILE *f, string_view format_str, format_args args)
 
void fmt::v5::vprint (std::FILE *f, wstring_view format_str, wformat_args args)
 
template<typename S , typename... Args>
std::enable_if< internal::is_string< S >::value, void >::type fmt::v5::print (std::FILE *f, const S &format_str, const Args &...args)
 
void fmt::v5::vprint (string_view format_str, format_args args)
 
void fmt::v5::vprint (wstring_view format_str, wformat_args args)
 
template<typename S , typename... Args>
std::enable_if< internal::is_string< S >::value, void >::type fmt::v5::print (const S &format_str, const Args &...args)
 

Macro Definition Documentation

#define FMT_API

Definition at line 166 of file core.h.

#define FMT_ASSERT (   condition,
  message 
)    assert((condition) && message)

Definition at line 170 of file core.h.

#define FMT_BEGIN_NAMESPACE   namespace fmt { FMT_INLINE_NAMESPACE v5 {

Definition at line 155 of file core.h.

#define FMT_CHAR (   S)    typename char_t<S>::type

Definition at line 1320 of file core.h.

#define FMT_CONSTEXPR   inline

Definition at line 69 of file core.h.

#define FMT_CONSTEXPR11

Definition at line 80 of file core.h.

#define FMT_CONSTEXPR_DECL

Definition at line 70 of file core.h.

#define FMT_DETECTED_NOEXCEPT   throw()

Definition at line 134 of file core.h.

#define FMT_ENABLE_IF_T (   B,
 
)    typename std::enable_if<B, T>::type

Definition at line 1305 of file core.h.

#define FMT_END_NAMESPACE   } using namespace v5; }

Definition at line 153 of file core.h.

#define FMT_EXCEPTIONS   1

Definition at line 120 of file core.h.

#define FMT_EXPLICIT

Definition at line 98 of file core.h.

#define FMT_GCC_VERSION   0

Definition at line 43 of file core.h.

#define FMT_HAS_CPP_ATTRIBUTE (   x)    0

Definition at line 37 of file core.h.

#define FMT_HAS_CXX11_NOEXCEPT   0

Definition at line 135 of file core.h.

#define FMT_HAS_FEATURE (   x)    0

Definition at line 24 of file core.h.

#define FMT_HAS_GXX_CXX11   0

Definition at line 49 of file core.h.

#define FMT_HAS_INCLUDE (   x)    0

Definition at line 31 of file core.h.

#define FMT_INLINE_NAMESPACE   namespace

Definition at line 152 of file core.h.

#define FMT_MAKE_VALUE (   TAG,
  ArgType,
  ValueType 
)
Value:
template <typename C> \
FMT_CONSTEXPR init<C, ValueType, TAG> make_value(ArgType val) { \
return static_cast<ValueType>(val); \
}
std::enable_if< internal::is_string< S >::value, init< C, basic_string_view< typename C::char_type >, string_type > >::type make_value(const S &val)
Definition: core.h:760
#define FMT_CONSTEXPR
Definition: core.h:69

Definition at line 642 of file core.h.

#define FMT_MAKE_VALUE_SAME (   TAG,
  Type 
)
Value:
template <typename C> \
FMT_CONSTEXPR init<C, Type, TAG> make_value(Type val) { return val; }
std::enable_if< internal::is_string< S >::value, init< C, basic_string_view< typename C::char_type >, string_type > >::type make_value(const S &val)
Definition: core.h:760
#define FMT_CONSTEXPR
Definition: core.h:69

Definition at line 648 of file core.h.

#define FMT_MSC_VER   0

Definition at line 55 of file core.h.

#define FMT_NOEXCEPT   FMT_DETECTED_NOEXCEPT

Definition at line 140 of file core.h.

#define FMT_NULL   NULL

Definition at line 107 of file core.h.

#define FMT_OVERRIDE

Definition at line 88 of file core.h.

#define FMT_USE_ALIAS_TEMPLATES   FMT_HAS_FEATURE(cxx_alias_templates)

Definition at line 1308 of file core.h.

#define FMT_USE_CONSTEXPR
Value:
(FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VER >= 1910 || \
(FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L))
#define FMT_MSC_VER
Definition: core.h:55
#define FMT_GCC_VERSION
Definition: core.h:43
#define FMT_HAS_FEATURE(x)
Definition: core.h:24

Definition at line 61 of file core.h.

#define FMT_USE_CONSTEXPR11   (FMT_USE_CONSTEXPR || FMT_GCC_VERSION >= 406 || FMT_MSC_VER >= 1900)

Definition at line 74 of file core.h.

#define FMT_USE_EXPLICIT   0

Definition at line 97 of file core.h.

#define FMT_USE_NOEXCEPT   0

Definition at line 126 of file core.h.

#define FMT_USE_NULLPTR   0

Definition at line 111 of file core.h.

#define FMT_VERSION   50300

Definition at line 19 of file core.h.