![]() |
MOS Source Code
|
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> |
| using string = mos::basic_string<char> |
Definition at line 395 of file string.hpp.
| typedef basic_string_view<char> string_view |
Definition at line 164 of file string_view.hpp.
| using SyslogBuffer = std::array<char, MOS_PRINTK_BUFFER_SIZE> |
Definition at line 38 of file syslog.hpp.
| T * create | ( | Args &&... | args | ) |
Definition at line 12 of file allocator.hpp.
Referenced by default_allocator< TItem, true >::allocate(), cpio_inode_trycreate(), cpio_mount(), dentry_create(), dirter_add(), futex_wait(), hashmap_put(), inode_create(), HashMap< Key, Value >::insert(), HashMap< Key, Value >::insert(), list< T >::insert(), interrupt_handler_register(), ipc_conn_io_create(), ipc_connect_to_server(), ipc_create(), ipc_server_create(), kthread_create_no_sched(), make_shared(), memfd_create(), mm_create_context(), MOS_INIT(), naive_sched_add_thread(), Process::New(), HashMap< Key, Value >::operator[](), pipe_create(), pipeio_create(), power_register_shutdown_callback(), process_do_fork(), list< T >::push_back(), list< T >::push_front(), register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), ring_buffer_create(), ring_buffer_create_at(), shared_ptr< T >::shared_ptr(), signal_send_to_thread(), sysfs_fops_open(), thread_allocate(), tmpfs_create_inode(), tmpfs_fsop_mount(), userfs_fsop_mount(), userfs_manager_register_filesystem(), vfs_do_open_dentry(), vfs_list_dir(), vfs_open_ipc(), vmap_create(), vmap_split(), and waitlist_append().
Definition at line 39 of file cpp_support.cpp.
Referenced by PtrResult< T >::get(), and PtrResult< mos::shared_ptr< T > >::get().
| void __raise_null_pointer_exception | ( | ) |
Definition at line 44 of file cpp_support.cpp.
Referenced by basic_string< char >::_init(), basic_string_view< char >::basic_string_view(), basic_string_view< char >::basic_string_view(), basic_string_view< char >::basic_string_view(), and basic_string< char >::operator=().
| T * create | ( | Args &&... | args | ) |
Definition at line 12 of file allocator.hpp.
Referenced by default_allocator< TItem, true >::allocate(), cpio_inode_trycreate(), cpio_mount(), dentry_create(), dirter_add(), futex_wait(), hashmap_put(), inode_create(), HashMap< Key, Value >::insert(), HashMap< Key, Value >::insert(), list< T >::insert(), interrupt_handler_register(), ipc_conn_io_create(), ipc_connect_to_server(), ipc_create(), ipc_server_create(), kthread_create_no_sched(), make_shared(), memfd_create(), mm_create_context(), MOS_INIT(), naive_sched_add_thread(), Process::New(), HashMap< Key, Value >::operator[](), pipe_create(), pipeio_create(), power_register_shutdown_callback(), process_do_fork(), list< T >::push_back(), list< T >::push_front(), register_sysfs_acpi_node(), register_sysfs_acpi_rsdp(), ring_buffer_create(), ring_buffer_create_at(), shared_ptr< T >::shared_ptr(), signal_send_to_thread(), sysfs_fops_open(), thread_allocate(), tmpfs_create_inode(), tmpfs_fsop_mount(), userfs_fsop_mount(), userfs_manager_register_filesystem(), vfs_do_open_dentry(), vfs_list_dir(), vfs_open_ipc(), vmap_create(), vmap_split(), and waitlist_append().
| 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().
| mos::string to_string | ( | const void * | value | ) |
Definition at line 9 of file string.cpp.
Referenced by IO::name().
|
constexpr |
Definition at line 12 of file string_view.hpp.
Referenced by basic_string< char >::basic_string(), basic_string_view< char >::basic_string_view(), basic_string< char >::operator=(), and basic_string< char >::operator==().
|
constexpr |
Definition at line 25 of file string_view.hpp.
|
constexpr |
Definition at line 36 of file string_view.hpp.
Referenced by basic_string< char >::_do_compare(), basic_string< char >::begins_with(), basic_string_view< char >::begins_with(), basic_string< char >::ends_with(), basic_string_view< char >::ends_with(), basic_string_view< char >::find(), basic_string_view< char >::operator==(), and basic_string_view< char >::starts_with().
|
staticconsteval |
Definition at line 70 of file type_utils.hpp.
Referenced by Slab< T >::Slab().
|
constexpr |
Definition at line 12 of file string.hpp.
Referenced by basic_string< char >::_convert_to_long(), basic_string< char >::_convert_to_short(), basic_string< char >::_init(), basic_string< char >::basic_string(), basic_string< char >::operator+=(), basic_string< char >::operator=(), basic_string< char >::operator=(), basic_string< char >::operator=(), and basic_string< char >::resize().
|
constexpr |
Definition at line 44 of file type_utils.hpp.
Referenced by create(), and make_shared().