MOS Source Code
Loading...
Searching...
No Matches
mos Namespace Reference

Namespaces

namespace  string_literals

Classes

struct  __shared_ptr_core
struct  _BaseNamedType
class  basic_string
class  basic_string_view
struct  default_allocator
struct  default_allocator< TItem, false >
struct  default_allocator< TItem, true >
struct  FormatImpl
class  HashMap
struct  InitOnce
class  list
struct  LoggingDescriptor
struct  NamedType
struct  Preformatted
struct  RCCore
struct  RefCounted
class  shared_ptr
struct  Slab
struct  Specifier
struct  string_literal
struct  SyslogStreamWriter
class  vector
class  weak_ptr

Typedefs

using string = mos::basic_string<char>
typedef basic_string_view< char > string_view
using SyslogBuffer = std::array<char, MOS_PRINTK_BUFFER_SIZE>

Functions

template<typename T, typename... Args>
requires mos::HasTypeName<T>
T * create (Args &&...args)
void __raise_bad_ptrresult_value (int errorCode)
void __raise_null_pointer_exception ()
template<typename T, typename... Args>
T * create (Args &&...args)
template<typename T, typename... Args>
requires HasTypeName<T>
shared_ptr< T > make_shared (Args &&...args)
mos::string to_string (const void *value)
template<typename CharT>
constexpr auto generic_strlen (const CharT *c)
template<typename CharT>
constexpr auto generic_strnlen (const CharT *c, size_t max)
template<typename CharT>
constexpr auto generic_strncmp (const CharT *a, const CharT *b, size_t n)
template<typename T>
static consteval string_view getTypeName ()

Variables

constexpr size_t short_string_capacity = 16
template<typename T>
constexpr auto HasTypeName = std::is_base_of_v<_BaseNamedType, T>

Typedef Documentation

◆ string

using string = mos::basic_string<char>

Definition at line 395 of file string.hpp.

◆ string_view

Definition at line 164 of file string_view.hpp.

◆ SyslogBuffer

using SyslogBuffer = std::array<char, MOS_PRINTK_BUFFER_SIZE>

Definition at line 38 of file syslog.hpp.

Function Documentation

◆ create() [1/2]

◆ __raise_bad_ptrresult_value()

void __raise_bad_ptrresult_value ( int errorCode)

Definition at line 39 of file cpp_support.cpp.

Referenced by PtrResult< T >::get(), and PtrResult< mos::shared_ptr< T > >::get().

◆ __raise_null_pointer_exception()

◆ create() [2/2]

◆ make_shared()

template<typename T, typename... Args>
requires HasTypeName<T>
shared_ptr< T > make_shared ( Args &&... args)

Definition at line 347 of file shared_ptr.hpp.

Referenced by dentry_mount(), and platform_setup_signal_handler_regs().

Here is the call graph for this function:

◆ to_string()

mos::string to_string ( const void * value)

Definition at line 9 of file string.cpp.

Referenced by IO::name().

Here is the call graph for this function:

◆ generic_strlen()

template<typename CharT>
auto generic_strlen ( const CharT * c)
constexpr

◆ generic_strnlen()

template<typename CharT>
auto generic_strnlen ( const CharT * c,
size_t max )
constexpr

Definition at line 25 of file string_view.hpp.

◆ generic_strncmp()

◆ getTypeName()

template<typename T>
consteval string_view getTypeName ( )
staticconsteval

Definition at line 70 of file type_utils.hpp.

Referenced by Slab< T >::Slab().

Variable Documentation

◆ short_string_capacity

◆ HasTypeName

template<typename T>
auto HasTypeName = std::is_base_of_v<_BaseNamedType, T>
constexpr

Definition at line 44 of file type_utils.hpp.

Referenced by create(), and make_shared().