DEENESPTFRRUARHIKOZHNL

модуль ara::core — Adaptive Platform Core

Spezifikation: AUTOSAR_AP_SWS_Core.pdf (R25-11) · 1237 API-Records

Руководство по модулюСОЗДАНО ИИ

Предоставляет общеплатформенные базовые типы C++, отказоустойчивые типы результатов и детерминированные пулы памяти.
СОЗДАНО ИИ не проверено Модель: gemini-3.8-flash-medium · Усилие: medium · Температура: не регулируется · Промпт: 54405fb1f5a0 Происхождение Открытые вопросы (2)
Причинный якорь: R25-11 Действует с R25-11 Заново синтезировано для этой версии спецификации.
переведено с немецкого руководстваgemini-3.8-flash-low · 2026-10-13 · Немецкий оригинал

Предоставляет общеплатформенные базовые типы C++, отказоустойчивые типы результатов и детерминированные пулы памяти.

Модуль core предоставляет общеплатформенные базовые типы, пулы памяти PMR и асинхронные примитивы синхронизации Future и Promise для AUTOSAR Adaptive Platform (SWArchitecture с. 60, [SWS_CORE_00326]). Для выполнения строгих требований безопасности и реального времени тип суммы Result<T, E> заменяет классические исключения детерминированными возвращаемыми значениями ([SWS_CORE_00751]). При неустранимых системных сбоях функция быстрого аварийного завершения (fail-fast) Abort() гарантирует немедленное контролируемое прекращение процесса ([SWS_CORE_00052]).

Модуль core функционирует как базовый функциональный кластер AUTOSAR Adaptive Platform и предоставляет унифицированные структуры данных, асинхронные коммуникационные примитивы и механизмы управления памятью для всех сервисов платформы и приложений (SWArchitecture с. 60). Чтобы гарантировать детерминированное выполнение и функциональную безопасность в средах операционных систем POSIX, core заменяет стандартные исключения C++ типобезопасным типом результата Result<T, E> и контролирует динамическое выделение памяти с помощью полиморфных аллокаторов ([SWS_CORE_00041], [SWS_CORE_00751]).

CoreArch cluster_core ara::core app Adaptive Application fc Funktionale Cluster (ara::com, ara::ts, etc.) app->fc lifecycle Lebenszyklus & Prozessabbruch (Initialize, Deinitialize, Abort) app->lifecycle concurrency Асинхронные потоки управления (Future, Promise, Executor) app->concurrency error_mgmt Deterministisches Fehlermanagement (Result, ErrorCode, ErrorDomain) app->error_mgmt memory Speicherverwaltung (PMR) (MemoryResource, PoolResources) app->memory types Container & Utility-Typen (Optional, Array, Vector, Map) app->types fc->concurrency fc->error_mgmt fc->memory fc->types posix Betriebssystem & POSIX-Laufzeitumgebung lifecycle->posix memory->posix

Контекстная диаграмма: встраивание функционального кластера ara::core и областей его интерфейсов в Adaptive Platform. Источники: SWArchitecture с. 60, SWArchitecture с. 36

Для параллельной синхронизации core реализует взаимодействие Future и Promise ([SWS_CORE_00326], [SWS_CORE_00344]). В то время как производитель предоставляет статус вычисления или ошибку через Promise, Future позволяет потребителю выполнять как запросы с контролем по времени через wait_for(), так и реактивную пересылку с помощью then() ([SWS_CORE_00329], [SWS_CORE_00331], TimeSynchronization с. 90).

ResultEval start Empfang von Result<T, E> check Проверка с помощью HasValue() / operator bool() start->check val_path Успешно: доступ через Value() / operator*() check->val_path true err_path В случае ошибки: доступ через Error() check->err_path false use_val Nutzlast T verarbeiten val_path->use_val check_throw Exception-Modus aktiviert? err_path->check_throw throw_exc ValueOrThrow() генерирует исключение check_throw->throw_exc да handle_err Deterministische Fehlerbehandlung via ErrorCode check_throw->handle_err нет

Диаграмма деятельности: детерминированный путь обработки объекта Result при успешном выполнении и в случае ошибки. Источники: [SWS_CORE_00751], [SWS_CORE_00755], [SWS_CORE_00757], [SWS_CORE_00766]

Для предотвращения фрагментации модуль предоставляет пуловые ресурсы, такие как SynchronizedPoolResource и UnsynchronizedPoolResource, которые ограничивают выделение памяти чанками фиксированного размера ([SWS_CORE_00030], [SWS_CORE_00067], SWArchitecture с. 61). При возникновении непреодолимого ошибочного состояния платформа принудительно осуществляет немедленное завершение процесса по принципу fail-fast через Abort() с предварительным выполнением зарегистрированного AbortHandler ([SWS_CORE_00051], [SWS_CORE_00052]).

Системная роль и архитектурный базис ara::core

Модуль core формирует фундаментальную основу AUTOSAR Adaptive Platform и предоставляет базовые определения типов, механизмы управления памятью, а также базовые интерфейсы для всех функциональных кластеров и Adaptive Applications (SWArchitecture с. 60). В отличие от сервисов, ориентированных на приложения, core спроектирован как локальный для процесса и определяет ключевые абстракции для реализации переносимого, детерминированного и ресурсоэффективного программного обеспечения на C++ в средах операционных систем POSIX (SWArchitecture с. 36).

Архитектурно модуль выступает в качестве стандартизированного интерфейса между низкоуровневыми функциями операционной системы и более высокими уровнями Adaptive Platform (SWArchitecture с. 60). При этом core удовлетворяет центральным требованиям к функциональной безопасности (ASIL) и способности работы в реальном времени, обеспечивая контроль динамического выделения памяти и отказываясь от повсеместного использования исключений C++ в обычном потоке управления ([SWS_CORE_00052], [SWS_CORE_00751]). Предоставление общеплатформенных базовых типов предотвращает появление проприетарных изолированных решений между компонентами middleware, такими как ara::com или ara::ts (ARAComAPI с. 46, TimeSynchronization с. 90).

CoreArch cluster_core ara::core app Adaptive Application fc Funktionale Cluster (ara::com, ara::ts, etc.) app->fc lifecycle Lebenszyklus & Prozessabbruch (Initialize, Deinitialize, Abort) app->lifecycle concurrency Асинхронные потоки управления (Future, Promise, Executor) app->concurrency error_mgmt Deterministisches Fehlermanagement (Result, ErrorCode, ErrorDomain) app->error_mgmt memory Speicherverwaltung (PMR) (MemoryResource, PoolResources) app->memory types Container & Utility-Typen (Optional, Array, Vector, Map) app->types fc->concurrency fc->error_mgmt fc->memory fc->types posix Betriebssystem & POSIX-Laufzeitumgebung lifecycle->posix memory->posix

Контекстная диаграмма: встраивание функционального кластера ara::core и областей его интерфейсов в Adaptive Platform. Источники: SWArchitecture с. 60, SWArchitecture с. 36

Асинхронные потоки управления и данных через Future и Promise

Для параллельного и слабосвязанного взаимодействия ara::core реализует шаблон «производитель-потребитель» с помощью Promise и Future ([SWS_CORE_00326], [SWS_CORE_00341]). Promise представляет собой интерфейс записи, через который асинхронный воркер или скелетон коммуникации сохраняет результат или ошибку ([SWS_CORE_00345], [SWS_CORE_00353]). Потребляющей стороной выступает Future, который отслеживает разделяемое состояние (Shared State) и инкапсулирует типобезопасный доступ к возвращаемому значению (ARAComAPI с. 46, ARAComAPI с. 59).

Чтобы избежать блокировки клиентских потоков, Future, помимо синхронной блокирующей функции запроса get() ([SWS_CORE_00326]), предоставляет операции ожидания с ограничением по времени: wait_for() и wait_until() возвращают индикатор состояния типа FutureStatus ([SWS_CORE_00329], [SWS_CORE_00330], ARAComAPI с. 1). С помощью метода then() можно зарегистрировать функции обратного вызова, которые автоматически выполняются при поступлении результата; по выбору при этом можно подключить пользовательский Executor, чтобы направить выполнение на определенные пулы потоков ([SWS_CORE_00024], [SWS_CORE_00331], [SWS_CORE_00337]). Операции копирования для Future и Promise явно запрещены для обеспечения монопольного владения ([SWS_CORE_00334], [SWS_CORE_00350]).

Асинхронная коммуникация через Promise и FutureConsumer (App)FuturePromiseProducer (Worker)Erzeuge Promise()get_future()Erzeuge Future<T, E>Передача Future потребителюUse Case: Фаза ожидания и опросаwait_for(timeoutDuration)FutureStatus::kTimeoutUse Case: Ergebnisbereitstellungset_value(value) или SetError(error)Смена состояния: разделяемое состояние выполненоget() или GetResult()Возврат значения или Result<T, E>

Диаграмма последовательности: асинхронная передача значений и ошибок между воркером и приложением через Promise и Future. Источники: [SWS_CORE_00326], [SWS_CORE_00329], [SWS_CORE_00344], [SWS_CORE_00345], TimeSynchronization с. 90

Детерминированное управление ошибками: Result, ErrorCode и ErrorDomain

Ключевым аспектом программирования, ориентированного на безопасность, в Adaptive Platform является строгое предотвращение неконтролируемых исключений при штатной эксплуатации. ara::core::Result<T, E> выступает в роли типобезопасной инкапсуляции типа суммы, которая содержит либо значение полезной нагрузки при успехе типа T, либо объект ошибки типа E ([SWS_CORE_00721], [SWS_CORE_00723], [SWS_CORE_00751]). Специализации существуют как для ссылочных типов Result<T&, E>, так и для операций без возвращаемого значения Result<void, E> ([SWS_CORE_00821], [SWS_CORE_00908]).

Содержащееся состояние проверяется с помощью HasValue() или оператора явного преобразования operator bool() ([SWS_CORE_00751], [SWS_CORE_00752]). Доступ к полезным данным осуществляется через Value() или operator*(), в то время как ошибки запрашиваются через Error() ([SWS_CORE_00755], [SWS_CORE_00757]). Для функциональной дальнейшей обработки и распространения ошибок Result предоставляет такие методы, как Bind(), ValueOr() и Resolve() ([SWS_CORE_00761], [SWS_CORE_00768]). Ошибки моделируются через ErrorCode, который связывает числовой код ошибки CodeType с уникальным идентификатором домена ErrorDomain, а также опциональными дополнительными диагностическими данными SupportDataType ([SWS_CORE_00121], [SWS_CORE_00122], [SWS_CORE_00512]). Метод ValueOrThrow() существует в качестве моста для сред с активированной обработкой исключений, однако в случае ошибки он генерирует исключение, связанное с этим доменом ([SWS_CORE_00154], [SWS_CORE_00766]).

ResultEval start Empfang von Result<T, E> check Проверка с помощью HasValue() / operator bool() start->check val_path Успешно: доступ через Value() / operator*() check->val_path true err_path В случае ошибки: доступ через Error() check->err_path false use_val Nutzlast T verarbeiten val_path->use_val check_throw Exception-Modus aktiviert? err_path->check_throw throw_exc ValueOrThrow() генерирует исключение check_throw->throw_exc да handle_err Deterministische Fehlerbehandlung via ErrorCode check_throw->handle_err нет

Диаграмма деятельности: детерминированный путь обработки объекта Result при успешном выполнении и в случае ошибки. Источники: [SWS_CORE_00751], [SWS_CORE_00755], [SWS_CORE_00757], [SWS_CORE_00766]

Полиморфное управление памятью через пуловые ресурсы

Динамическое выделение памяти в стандартной куче несет риски недетерминированности и фрагментации памяти. Поэтому ara::core интегрирует управление памятью на основе полиморфных ресурсов памяти (PMR), ориентируясь на шаблон C++ NVI (Non-Virtual Interface) (SWArchitecture с. 61). Базовый класс MemoryResource объявляет открытые интерфейсы allocate() и deallocate(), которые внутренне обращаются к чисто виртуальным методам do_allocate() и do_deallocate() ([SWS_CORE_00041], [SWS_CORE_00061]).

Для критичных ко времени шаблонов выделения памяти доступны специализированные пуловые ресурсы: SynchronizedPoolResource обеспечивает потокобезопасное выделение памяти из предварительно сконфигурированных чанков и размеров блоков через PoolOptions ([SWS_CORE_00027], [SWS_CORE_00030]). Для строго потоко-локальных фаз обработки без накладных расходов на синхронизацию служит UnsynchronizedPoolResource ([SWS_CORE_00046], [SWS_CORE_00067]). С помощью release() вся выделенная область памяти может быть возвращена вышестоящему upstream_resource() за один шаг, что эффективно предотвращает утечки памяти в фазоориентированных рабочих процессах ([SWS_CORE_00037], [SWS_CORE_00038], [SWS_CORE_00065]).

PMRHierarchy mr MemoryResource (Basisklasse / NVI) + allocate() + deallocate() - do_allocate() - do_deallocate() sync_pool SynchronizedPoolResource - do_allocate() [thread-safe] - do_deallocate() [thread-safe] + release() + options() sync_pool->mr erbt von unsync_pool UnsynchronizedPoolResource - do_allocate() [thread-local] - do_deallocate() [thread-local] + release() + options() unsync_pool->mr erbt von

Диаграмма классов: иерархия полиморфных ресурсов памяти по шаблону Non-Virtual Interface (NVI). Источники: SWArchitecture с. 61, [SWS_CORE_00030], [SWS_CORE_00041], [SWS_CORE_00061]

Фундаментальные утилитные и контейнерные типы (Optional, Array, Vector, Map)

Для предотвращения неопределенного поведения и обеспечения четкой семантики core стандартизирует базовые контейнеры и вспомогательные типы. ara::core::Optional<T> представляет значения, которые могут присутствовать или отсутствовать, без необходимости прибегать к небезопасным нулевым указателям ([SWS_CORE_01103], [SWS_CORE_01104], ARAComAPI с. 1). Состояние опрашивается через has_value() или operator bool(), в то время как доступ осуществляется через value(), value_or() или operator*() ([SWS_CORE_01128], [SWS_CORE_01129], [SWS_CORE_01130], [SWS_CORE_01134]). Специальные перегрузки для ссылок Optional<T&> позволяют безопасно хранить опциональные ссылки ([SWS_CORE_01151], [SWS_CORE_01167]).

Для структур данных фиксированного размера модуль предоставляет Array<T, N>, который поддерживает прямую индексацию через operator[], доступ с проверкой границ с помощью at(), а также стандартные итераторы ([SWS_CORE_01250], [SWS_CORE_01265], [SWS_CORE_01273]). Операторы сравнения реализованы в соответствии со строгими правилами кодирования с возвращаемыми значениями bool и безопасностью исключений ([SWS_CORE_01290], CPP14Guidelines с. 241). Динамически растущие последовательности и ассоциативные контейнеры покрываются типами Vector<T, Allocator> и Map<Key, T, Compare, Allocator> ([SWS_CORE_01318], [SWS_CORE_01428]). Оба типа принимают конфигурируемые аллокаторы, благодаря чему операции выделения памяти могут беспрепятственно выполняться через полиморфные пулы MemoryResource ([SWS_CORE_00066], [SWS_CORE_01303], [SWS_CORE_01406]).

Поведение при ошибках и завершение по принципу Fail-Fast

Если процесс не может надежно скомпенсировать критическое состояние ошибки, задействуется принцип Fail-Fast платформы Adaptive Platform (SWArchitecture с. 60). Через интерфейс Abort() вызывается немедленное безусловное завершение работающего процесса ([SWS_CORE_00052]). Функция объявлена как [[noreturn]] и noexcept, чтобы гарантировать, что процедуры раскрутки стека (stack unwinding) или деструкторы не создадут некорректных последующих состояний ([SWS_CORE_00052], SWArchitecture с. 36).

Чтобы перед завершением сохранить энергозависимую диагностическую информацию или выполнить последние аварийные действия по логированию, приложения могут зарегистрировать пользовательские функции обратного вызова через SetAbortHandler() или AddAbortHandler() ([SWS_CORE_00050], [SWS_CORE_00051], [SWS_CORE_00054]). Зарегистрированный обработчик аварийного завершения (Abort Handler) должен соответствовать сигнатуре void() noexcept ([SWS_CORE_00053]). После выполнения обработчика платформа принудительно выполняет окончательное завершение процесса, исключая возможность дальнейшей работы в неопределенном состоянии памяти (SWArchitecture с. 60).

AbortFlow error_detect Критическое неустранимое состояние ошибки call_abort Aufruf von ara::core::Abort(args...) error_detect->call_abort check_handler AbortHandler registriert? call_abort->check_handler exec_handler Выполнение зарегистрированного AbortHandler (сохранение диагностики, запись аварийного лога) check_handler->exec_handler да sys_terminate Немедленное аварийное завершение процесса без развертывания стека ([[noreturn]]-завершение) check_handler->sys_terminate нет exec_handler->sys_terminate

Диаграмма деятельности: поток управления аварийного завершения Fail-Fast через Abort() с выполнением AbortHandler. Источники: SWArchitecture с. 60, [SWS_CORE_00051], [SWS_CORE_00052]

Дальнейшие подробные доказательства

Спецификация core в Release R25-11 опирается на ряд нормативных положений и архитектурных моделей. Для жизненного цикла процесса и логики аварийного завершения определяющими являются Initialize(), Deinitialize(), а также Abort() и SetAbortHandler() ([SWS_CORE_00051], [SWS_CORE_00052], SWArchitecture с. 60). Модель асинхронной коммуникации в значительной степени базируется на Future ([SWS_CORE_00326], [SWS_CORE_00329]) и Promise ([SWS_CORE_00344], [SWS_CORE_00345]), взаимодействие которых проверяется в прикладных кластерах, таких как ara::com и ara::ts (ARAComAPI с. 46, TimeSynchronization с. 90).

Безошибочное управление данными и памятью нормируется спецификациями к Result ([SWS_CORE_00751], [SWS_CORE_00766]), ErrorCode ([SWS_CORE_00512]) и классам памяти PMR SynchronizedPoolResource, а также UnsynchronizedPoolResource ([SWS_CORE_00030], [SWS_CORE_00046], SWArchitecture с. 61). Дополнительно правила для контейнеров и сравнения определяют детерминированное хранение данных в критически важных для безопасности комплексных системах ([SWS_CORE_01103], [SWS_CORE_01250], [SWS_CORE_01318], CPP14Guidelines с. 241).

Данное руководство было сгенерировано ИИ-ассистентом курации на основе спецификации AUTOSAR для R25-11.

function: 1060 type alias: 101 class: 34 struct: 26 variable: 13 enumeration: 3

ara::core

Array класс

Implementation of std::array type from [array.syn] The implicitly-declared special member functions specified in [array.cons] are not expli ≙ std::array

Доступ get 4
template <std::size_t I, typename T, std::size_t N> constexpr T & get (Array< T, N > &a) noexcept; SWS_CORE_01282
template <std::size_t I, typename T, std::size_t N> constexpr T && get (Array< T, N > &&a) noexcept; SWS_CORE_01283
template <std::size_t I, typename T, std::size_t N> constexpr T const & get (const Array< T, N > &a) noexcept; SWS_CORE_01284
template <size_t I, class T, size_t N> constexpr const T && get (const Array< T, N > &&) noexcept; SWS_CORE_01286
Сравнение != < <= == > >= 6
template <typename T, std::size_t N> bool operator!= (const Array< T, N > &lhs, const Array< T, N > &rhs) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())); SWS_CORE_01291
template <typename T, std::size_t N> bool operator< (const Array< T, N > &lhs, const Array< T, N > &rhs) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())); SWS_CORE_01292
template <typename T, std::size_t N> bool operator<= (const Array< T, N > &lhs, const Array< T, N > &rhs) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())); SWS_CORE_01294
template <typename T, std::size_t N> bool operator== (const Array< T, N > &lhs, const Array< T, N > &rhs) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())); SWS_CORE_01290
template <typename T, std::size_t N> bool operator> (const Array< T, N > &lhs, const Array< T, N > &rhs) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())); SWS_CORE_01293
template <typename T, std::size_t N> bool operator>= (const Array< T, N > &lhs, const Array< T, N > &rhs) noexcept(noexcept(std::declval< T & >()==std::declval< T & >())); SWS_CORE_01295
Обмен swap 1
template <typename T, std::size_t N> void swap (Array< T, N > &lhs, Array< T, N > &rhs) noexcept(noexcept(lhs.swap(rhs))); SWS_CORE_01296
BasicString класс

Implementation of std::pmr::basic_string type from [basic.string] ≙ std::pmr::basic_string

Сравнение != < <= == > >= 18
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator!= (const BasicString< Allocator > &lhs, const Basic String< Allocator > &rhs) noexcept; SWS_CORE_03367
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator!= (const charT *lhs, const BasicString< Allocator > &rhs); SWS_CORE_03368
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator!= (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03369
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator< (const BasicString< Allocator > &lhs, const Basic String< Allocator > &rhs) noexcept; SWS_CORE_03370
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator< (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03371
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator< (const charT *lhs, const BasicString< Allocator > &rhs); SWS_CORE_03372
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator<= (const BasicString< Allocator > &lhs, const Basic String< Allocator > &rhs) noexcept; SWS_CORE_03376
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator<= (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03377
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator<= (const charT *lhs, const BasicString< Allocator > &rhs); SWS_CORE_03378
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator== (const BasicString< Allocator > &lhs, const Basic String< Allocator > &rhs) noexcept; SWS_CORE_03364
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator== (const charT *lhs, const BasicString< Allocator > &rhs); SWS_CORE_03365
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator== (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03366
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator> (const BasicString< Allocator > &lhs, const Basic String< Allocator > &rhs) noexcept; SWS_CORE_03373
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator> (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03374
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator> (const charT *lhs, const BasicString< Allocator > &rhs); SWS_CORE_03375
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator>= (const BasicString< Allocator > &lhs, const Basic String< Allocator > &rhs) noexcept; SWS_CORE_03379
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator>= (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03380
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> bool operator>= (const charT *lhs, const BasicString< Allocator > &rhs); SWS_CORE_03381
Конкатенация + 12
template <typename Allocator> BasicString< Allocator > operator+ (const BasicString< Allocator > &lhs, const BasicString< Allocator > &rhs); SWS_CORE_03352
template <typename Allocator> BasicString< Allocator > operator+ (BasicString< Allocator > &&lhs, const BasicString< Allocator > &rhs); SWS_CORE_03353
template <typename Allocator> BasicString< Allocator > operator+ (const BasicString< Allocator > &lhs, BasicString< Allocator > &&rhs); SWS_CORE_03354
template <typename Allocator> BasicString< Allocator > operator+ (BasicString< Allocator > &&lhs, BasicString< Allocator > &&rhs); SWS_CORE_03355
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (const charT *lhs, const Basic String< Allocator > &rhs); SWS_CORE_03356
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (const charT *lhs, BasicString< Allocator > &&rhs); SWS_CORE_03357
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (charT lhs, const BasicString< Allocator > &rhs); SWS_CORE_03358
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (charT lhs, BasicString< Allocator > &&rhs); SWS_CORE_03359
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (const BasicString< Allocator > &lhs, const charT *rhs); SWS_CORE_03360
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (BasicString< Allocator > &&lhs, const charT *rhs); SWS_CORE_03361
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (const BasicString< Allocator > &lhs, charT rhs); SWS_CORE_03362
template <typename Allocator, typename charT = typename std::allocator_traits<Allocator>::value_type> BasicString< Allocator > operator+ (BasicString< Allocator > &&lhs, charT rhs); SWS_CORE_03363
Ввод/вывод getline << >> 6
template <class charT = char, class traits = std::char_traits<char>, class Allocator = ara::core::PolymorphicAllocator<char>> std::basic_istream< charT, traits > & getline (std::basic_istream< charT, traits > &is, BasicString< Allocator > &str, charT delim); SWS_CORE_03401
template <class charT = char, class traits = std::char_traits<char>, class Allocator = ara::core::PolymorphicAllocator<char>> std::basic_istream< charT, traits > & getline (std::basic_istream< charT, traits > &&is, BasicString< Allocator > &str, charT delim); SWS_CORE_03402
template <class charT = char, class traits = std::char_traits<char>, class Allocator = ara::core::PolymorphicAllocator<char>> std::basic_istream< charT, traits > & getline (std::basic_istream< charT, traits > &is, BasicString< Allocator > &str); SWS_CORE_03403
template <class charT = char, class traits = std::char_traits<char>, class Allocator = ara::core::PolymorphicAllocator<char>> std::basic_istream< charT, traits > & getline (std::basic_istream< charT, traits > &&is, BasicString< Allocator > &str); SWS_CORE_03404
template <class charT = char, class traits = std::char_traits<char>, class Allocator = ara::core::PolymorphicAllocator<char>> std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &os, const BasicString< Allocator > &str); SWS_CORE_03400
template <class charT = char, class traits = std::char_traits<char>, class Allocator = ara::core::PolymorphicAllocator<char>> std::basic_istream< charT, traits > & operator>> (std::basic_istream< charT, traits > &is, BasicString< Allocator > &str); SWS_CORE_03399
Преобразование to_string 9
String to_string (int val); SWS_CORE_03382
String to_string (unsigned val); SWS_CORE_03383
String to_string (long val); SWS_CORE_03384
String to_string (unsigned long val); SWS_CORE_03385
String to_string (long long val); SWS_CORE_03386
String to_string (unsigned long long val); SWS_CORE_03387
String to_string (float val); SWS_CORE_03388
String to_string (double val); SWS_CORE_03389
String to_string (long double val); SWS_CORE_03390
Обмен swap 1
template <typename Allocator> void swap (BasicString< Allocator > &lhs, BasicString< Allocator > &rhs); SWS_CORE_03296
Прочее stod stof stoi stol stold stoll stoul stoull 8
double stod (const ara::core::String &str, size_t *idx=nullptr); SWS_CORE_03397
float stof (const ara::core::String &str, size_t *idx=nullptr); SWS_CORE_03396
int stoi (const ara::core::String &str, size_t *idx=nullptr, int base=10); SWS_CORE_03391
long stol (const ara::core::String &str, size_t *idx=nullptr, int base=10); SWS_CORE_03392
long double stold (const ara::core::String &str, size_t *idx=nullptr); SWS_CORE_03398
long long stoll (const ara::core::String &str, size_t *idx=nullptr, int base=10); SWS_CORE_03394
unsigned long stoul (const ara::core::String &str, size_t *idx=nullptr, int base=10); SWS_CORE_03393
unsigned long long stoull (const ara::core::String &str, size_t *idx=nullptr, int base=10); SWS_CORE_03395
Bitset класс

Implementation of std::bitset type from [bitset] ≙ std::bitset

Ввод/вывод << >> 2
template <class CharT = char, class Traits = std::char_traits<CharT>, std::size_t N> std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const Bitset< N > &x); SWS_CORE_01756
template <class CharT, class Traits, std::size_t N> std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &is, Bitset< N > &x); SWS_CORE_01755
Прочее & | ˆ 3
template <std::size_t N> Bitset< N > operator& (const Bitset< N > &, const Bitset< N > &) noexcept; SWS_CORE_01752
template <std::size_t N> Bitset< N > operator| (const Bitset< N > &, const Bitset< N > &) noexcept; SWS_CORE_01753
template <std::size_t N> Bitset< N > operatorˆ (const Bitset< N > &, const Bitset< N > &) noexcept; SWS_CORE_01754
CoreErrorDomain класс

An error domain for errors originating from the ara::core Functional Cluster.

наследует от ErrorDomain

CoreException класс

Exception type thrown for ara::core errors.

наследует от Exception

ErrorCode класс

Encapsulation of an error code

Создание MakeErrorCode 2
constexpr ErrorCode MakeErrorCode (FutureErrc code, Error Domain::SupportDataType data) noexcept; SWS_CORE_00490
constexpr ErrorCode MakeErrorCode (CoreErrc code, ErrorDomain::Support DataType data) noexcept; SWS_CORE_05290
Сравнение != == 2
constexpr bool operator!= (const ErrorCode &lhs, const ErrorCode &rhs) noexcept; SWS_CORE_00572
constexpr bool operator== (const ErrorCode &lhs, const ErrorCode &rhs) noexcept; SWS_CORE_00571
ErrorDomain класс

Encapsulation of an ErrorDomain

база для CoreErrorDomain, FutureErrorDomain

Exception класс

Base type for all ARA exception types

наследует от std::exception

база для CoreException, FutureException

Executor класс

Provides an interface for a executing context, which asynchronously invokes Callable ([4] [func.wrap.func]) objects in a guaranteed thread-s

Future класс

Implementation of std::future from [future.syn] in [11] ≙ std::future

Специализации Future< void, E >

Error domain for errors originating from ara::core::Future and ara::core::Promise

наследует от ErrorDomain

FutureException класс

Exception type thrown by ara::core::Future and ara::core::Promise

наследует от Exception

hash класс

≙ [bitset]

in_place_index_t класс

Denote an index-distinguishing operation to be performed in-place

in_place_t класс

Denote an operation to be performed in-place

in_place_type_t класс

Denote a type-distinguishing operation to be performed in-place

Representation of an AUTOSAR Instance Specifier, which is basically an AUTOSAR shortName path wrapper.

Сравнение != == 2
bool operator!= (ara::core::StringView lhs, const InstanceSpecifier &rhs) noexcept; SWS_CORE_08082
bool operator== (ara::core::StringView lhs, const InstanceSpecifier &rhs) noexcept; SWS_CORE_08081

As per std::is_nothrow_swappable, see [meta.unary.prop] in [11] ≙ std::is_nothrow_swappable

Map класс

Implementation of std::pmr::map container from [map] ≙ std::pmr::map

Обмен swap 1
template <class Key, class T, class Compare, class Allocator> void swap (Map< Key, T, Compare, Allocator > &lhs, Map< Key, T, Compare, Allocator > &rhs) noexcept(noexcept(lhs.swap(rhs))); SWS_CORE_01496
MemoryResource класс

Implementation of std::pmr::memory_resource type from [mem.res.class] ≙ std::pmr::memory_resource

база для MonotonicBufferResource, SynchronizedPoolResource, UnsynchronizedPoolResource

Сравнение == 1
bool operator== (const MemoryResource &a, const MemoryResource &b) noexcept; SWS_CORE_06561
Monostate класс

≙ [variant]

Доступ get get_if holds_alternative visit 15
template <std::size_t I, typename... Types> constexpr variant_alternative_t< I, Variant< Types... > > & get ( Variant< Types... > &variant) noexcept; SWS_CORE_01613
template <std::size_t I, typename... Types> constexpr variant_alternative_t< I, Variant< Types... > > && get ( Variant< Types... > &&variant) noexcept; SWS_CORE_01614
template <std::size_t I, typename... Types> constexpr const variant_alternative_t< I, Variant< Types... > > & get (const Variant< Types... > &variant) noexcept; SWS_CORE_01615
template <std::size_t I, typename... Types> constexpr const variant_alternative_t< I, Variant< Types... > > && get (const Variant< Types... > &&variant) noexcept; SWS_CORE_01616
template <typename T, typename... Types> constexpr T & get (Variant< Types... > &variant) noexcept; SWS_CORE_01617
template <typename T, typename... Types> constexpr T && get (Variant< Types... > &&variant) noexcept; SWS_CORE_01618
template <typename T, typename... Types> constexpr const T & get (const Variant< Types... > &variant) noexcept; SWS_CORE_01619
template <typename T, typename... Types> constexpr const T && get (const Variant< Types... > &&variant) noexcept; SWS_CORE_01620
template <std::size_t I, typename... Types> std::add_pointer_t< variant_alternative_t< I, Variant< Types... > > > get_if (Variant< Types... > *variant) noexcept; SWS_CORE_01621
template <std::size_t I, typename... Types> std::add_pointer_t< const variant_alternative_t< I, Variant< Types... > > > get_if (const Variant< Types... > *variant) noexcept; SWS_CORE_01622
template <typename T, typename... Types> std::add_pointer_t< T > get_if (Variant< Types... > *variant) noexcept; SWS_CORE_01623
template <typename T, typename... Types> std::add_pointer_t< const T > get_if (const Variant< Types... > *variant) noexcept; SWS_CORE_01624
template <typename T, typename... Types> constexpr bool holds_alternative (const Variant< Types... > &variant) noexcept; SWS_CORE_01626
template <typename ReturnType, typename Visitor, typename... Variants> constexpr {<invoke-result-decltype-1>} visit (Visitor &&visitor, Variants &&... variants); SWS_CORE_01633
template <typename Visitor, typename... Variants> constexpr {<invoke-result-decltype-2>} visit (Visitor &&visitor, Variants &&... variants); SWS_CORE_01634
Сравнение != < <= == > >= 12
template <typename... Types> constexpr bool operator!= (const Variant< Types... > &lhs, const Variant< Types... > &rhs); SWS_CORE_01628
constexpr bool operator!= (Monostate lhs, Monostate rhs) noexcept; SWS_CORE_01642
template <typename... Types> constexpr bool operator< (const Variant< Types... > &lhs, const Variant< Types... > &rhs); SWS_CORE_01629
constexpr bool operator< (Monostate lhs, Monostate rhs) noexcept; SWS_CORE_01643
template <typename... Types> constexpr bool operator<= (const Variant< Types... > &lhs, const Variant< Types... > &rhs); SWS_CORE_01631
constexpr bool operator<= (Monostate lhs, Monostate rhs) noexcept; SWS_CORE_01645
template <typename... Types> constexpr bool operator== (const Variant< Types... > &lhs, const Variant< Types... > &rhs); SWS_CORE_01627
constexpr bool operator== (Monostate lhs, Monostate rhs) noexcept; SWS_CORE_01641
template <typename... Types> constexpr bool operator> (const Variant< Types... > &lhs, const Variant< Types... > &rhs); SWS_CORE_01630
constexpr bool operator> (Monostate lhs, Monostate rhs) noexcept; SWS_CORE_01644
template <typename... Types> constexpr bool operator>= (const Variant< Types... > &lhs, const Variant< Types... > &rhs); SWS_CORE_01632
constexpr bool operator>= (Monostate lhs, Monostate rhs) noexcept; SWS_CORE_01646
Обмен swap 1
template <typename... Types> void swap (Variant< Types... > &lhs, Variant< Types... > &rhs) noexcept(noexcept(lhs.swap(rhs))); SWS_CORE_01696

Implementation of std::pmr::monotonic_buffer_resource type from [mem.res.monotonic.buffer] ≙ std::pmr::monotonic_buffer_resource

наследует от MemoryResource

nullopt_t класс

Shall implement std::nullopt_t ≙ std::nullopt_t

Optional класс

Implementation of std::optional type from [optional.syn] ≙ std::optional

Специализации Optional< T & >

Создание make_optional 3
template <typename T> constexpr Optional< std::decay_t< T > > make_optional (T &&) noexcept(std::is_nothrow_move_constructible< T >::value); SWS_CORE_01138
template <typename T, typename... Args> constexpr Optional< T > make_optional (Args &&... args) noexcept(std::is_nothrow_constructible< T, Args... >::value); SWS_CORE_01139
template <typename T, typename U, typename... Args> constexpr Optional< T > make_optional (std::initializer_list< U > il, Args &&... args) noexcept(std::is_nothrow_constructible< T, std::initializer_list< U > &, Args &&... >::value); SWS_CORE_01140
Сравнение != < <= == > >= 30
template <typename T, typename U> constexpr bool operator!= (const Optional< T > &, const Optional< U > &); SWS_CORE_01143
template <typename T, typename U> constexpr bool operator!= (const Optional< T > &, const U &); SWS_CORE_01176
template <typename T, typename U> constexpr bool operator!= (const U &, const Optional< T > &); SWS_CORE_01177
template <typename T> constexpr bool operator!= (const Optional< T > &, nullopt_t) noexcept; SWS_CORE_01188
template <typename T> constexpr bool operator!= (nullopt_t, const Optional< T > &) noexcept; SWS_CORE_01189
template <typename T, typename U> constexpr bool operator< (const Optional< T > &, const Optional< U > &); SWS_CORE_01144
template <typename T, typename U> constexpr bool operator< (const Optional< T > &, const U &); SWS_CORE_01178
template <typename T, typename U> constexpr bool operator< (const U &, const Optional< T > &); SWS_CORE_01179
template <typename T> constexpr bool operator< (const Optional< T > &, nullopt_t) noexcept; SWS_CORE_01190
template <typename T> constexpr bool operator< (nullopt_t, const Optional< T > &) noexcept; SWS_CORE_01191
template <typename T, typename U> constexpr bool operator<= (const Optional< T > &, const Optional< U > &); SWS_CORE_01146
template <typename T, typename U> constexpr bool operator<= (const Optional< T > &, const U &); SWS_CORE_01180
template <typename T, typename U> constexpr bool operator<= (const U &, const Optional< T > &); SWS_CORE_01181
template <typename T> constexpr bool operator<= (const Optional< T > &, nullopt_t) noexcept; SWS_CORE_01192
template <typename T> constexpr bool operator<= (nullopt_t, const Optional< T > &) noexcept; SWS_CORE_01193
template <typename T, typename U> constexpr bool operator== (const Optional< T > &, const Optional< U > &); SWS_CORE_01142
template <typename T, typename U> constexpr bool operator== (const Optional< T > &, const U &); SWS_CORE_01148
template <typename T, typename U> constexpr bool operator== (const U &, const Optional< T > &); SWS_CORE_01149
template <typename T> constexpr bool operator== (const Optional< T > &, nullopt_t) noexcept; SWS_CORE_01186
template <typename T> constexpr bool operator== (nullopt_t, const Optional< T > &) noexcept; SWS_CORE_01187
template <typename T, typename U> constexpr bool operator> (const Optional< T > &, const Optional< U > &); SWS_CORE_01145
template <typename T, typename U> constexpr bool operator> (const Optional< T > &, const U &); SWS_CORE_01182
template <typename T, typename U> constexpr bool operator> (const U &, const Optional< T > &); SWS_CORE_01183
template <typename T> constexpr bool operator> (const Optional< T > &, nullopt_t) noexcept; SWS_CORE_01194
template <typename T> constexpr bool operator> (nullopt_t, const Optional< T > &) noexcept; SWS_CORE_01195
template <typename T, typename U> constexpr bool operator>= (const Optional< T > &, const Optional< U > &); SWS_CORE_01147
template <typename T, typename U> constexpr bool operator>= (const Optional< T > &, const U &); SWS_CORE_01184
template <typename T, typename U> constexpr bool operator>= (const U &, const Optional< T > &); SWS_CORE_01185
template <typename T> constexpr bool operator>= (const Optional< T > &, nullopt_t) noexcept; SWS_CORE_01196
template <typename T> constexpr bool operator>= (nullopt_t, const Optional< T > &) noexcept; SWS_CORE_01197
Обмен swap 1
template <typename T> void swap (Optional< T > &lhs, Optional< T > &rhs) noexcept(std::is_ nothrow_move_constructible< T >::value &&std::is_nothrow_move_ assignable< T >::value); SWS_CORE_01096

Implementation of std::pmr::polymorphic_allocator from [mem.poly.allocator.class] ≙ std::pmr::polymorphic_allocator

Сравнение == 1
template <class T1, class T2> bool operator== (const PolymorphicAllocator< T1 > &a, const PolymorphicAllocator< T2 > &b) noexcept; SWS_CORE_06560
PoolOptions класс

Implementation of std::pmr::pool_options from [mem.poly.pool_options.class] ≙ std::pmr::pool_options

Promise класс

ara::core specific variant of std::promise class The implementation shall flag the condition E!=ara::core::ErrorCode as a compile error. ≙ std::promise

Специализации Promise< void, E >

Result класс

This class is a type that contains either a value or an error

Специализации Result< T &, E > Result< void, E >

Сравнение != == 10
template <typename T, typename E> bool operator!= (const Result< T, E > &lhs, const Result< T, E > &rhs); SWS_CORE_00781
template <typename T, typename E> bool operator!= (const Result< T, E > &lhs, const T &rhs); SWS_CORE_00784
template <typename T, typename E> bool operator!= (const T &lhs, const Result< T, E > &rhs); SWS_CORE_00785
template <typename T, typename E> bool operator!= (const Result< T, E > &lhs, const E &rhs); SWS_CORE_00788
template <typename T, typename E> bool operator!= (const E &lhs, const Result< T, E > &rhs); SWS_CORE_00789
template <typename T, typename E> bool operator== (const Result< T, E > &lhs, const Result< T, E > &rhs); SWS_CORE_00780
template <typename T, typename E> bool operator== (const Result< T, E > &lhs, const T &rhs); SWS_CORE_00782
template <typename T, typename E> bool operator== (const T &lhs, const Result< T, E > &rhs); SWS_CORE_00783
template <typename T, typename E> bool operator== (const Result< T, E > &lhs, const E &rhs); SWS_CORE_00786
template <typename T, typename E> bool operator== (const E &lhs, const Result< T, E > &rhs); SWS_CORE_00787
Обмен swap 1
template <typename T, typename E> void swap (Result< T, E > &lhs, Result< T, E > &rhs) noexcept(noexcept(lhs.Swap(rhs))); SWS_CORE_00796
Span класс

Implementation of std::span container from [views.span] ≙ std::span

Создание MakeSpan 5
template <typename T> constexpr Span< T > MakeSpan (T *ptr, typename Span< T >::size_type count) noexcept; SWS_CORE_01990
template <typename T> constexpr Span< T > MakeSpan (T *firstElem, T *lastElem) noexcept; SWS_CORE_01991
template <typename T, std::size_t N> constexpr Span< T, N > MakeSpan (T(&arr)[N]) noexcept; SWS_CORE_01992
template <typename Container> constexpr Span< typename Container::value_type > MakeSpan (Container &cont) noexcept; SWS_CORE_01993
template <typename Container> constexpr Span< typename Container::value_type const > MakeSpan (const Container &cont) noexcept; SWS_CORE_01994
SteadyClock класс

This clock represents a monotonic clock

StringView класс

Implementation of std::basic_string_view type from [string.view] ≙ std::basic_string_view

Сравнение != < <= == > >= 6
constexpr bool operator!= (StringView lhs, StringView rhs) noexcept; SWS_CORE_02182
constexpr bool operator< (StringView lhs, StringView rhs) noexcept; SWS_CORE_02183
constexpr bool operator<= (StringView lhs, StringView rhs) noexcept; SWS_CORE_02185
constexpr bool operator== (StringView lhs, StringView rhs) noexcept; SWS_CORE_02181
constexpr bool operator> (StringView lhs, StringView rhs) noexcept; SWS_CORE_02184
constexpr bool operator>= (StringView lhs, StringView rhs) noexcept; SWS_CORE_02186
Ввод/вывод << 1

Implementation of std::pmr::synchronized_pool_resource from [mem.res.pool] ≙ std::pmr::synchronized_pool_resource

наследует от MemoryResource

Implementation of std::pmr::unsynchronized_pool_resource from [mem.res.pool] ≙ std::pmr::unsynchronized_pool_resource

наследует от MemoryResource

Variant класс

Implementation of std::variant type from [basic.string] ≙ std::variant

Vector класс

Implementation of std::pmr::vector container from [vector] ≙ std::pmr::vector

Сравнение != < <= == > >= 6
template <typename T, typename Allocator> bool operator!= (const Vector< T, Allocator > &lhs, const Vector< T, Allocator > &rhs); SWS_CORE_01391
template <typename T, typename Allocator> bool operator< (const Vector< T, Allocator > &lhs, const Vector< T, Allocator > &rhs); SWS_CORE_01392
template <typename T, typename Allocator> bool operator<= (const Vector< T, Allocator > &lhs, const Vector< T, Allocator > &rhs); SWS_CORE_01393
template <typename T, typename Allocator> bool operator== (const Vector< T, Allocator > &lhs, const Vector< T, Allocator > &rhs); SWS_CORE_01390
template <typename T, typename Allocator> bool operator> (const Vector< T, Allocator > &lhs, const Vector< T, Allocator > &rhs); SWS_CORE_01394
template <typename T, typename Allocator> bool operator>= (const Vector< T, Allocator > &lhs, const Vector< T, Allocator > &rhs); SWS_CORE_01395
Обмен swap 1
template <typename T, typename Allocator> void swap (Vector< T, Allocator > &lhs, Vector< T, Allocator > &rhs) noexcept(noexcept(lhs.swap(rhs))); SWS_CORE_01396
Abort функция

Abort the current operation This function will never return to its caller. The stack is not unwound: destructors of variables with automatic storage duration are not called. Calling this function is ill-formed if any of the arguments is not convertible to ara::core:: StringView.

template <typename... Args> [[noreturn]] void Abort (const Args &... args) noexcept;
AbortHandlerPrototype функция

A function declaration with the correct prototype for ara::core::SetAbortHandler This declaration exists only for providing a function type that includes noexcept and that acts as base type for a type alias, which is defined in [SWS_CORE_00050]. This compensates for the fact that the C++ standard (up to and including C++14) prohibits that noexcept appears in an alias-declaration. There is no implementation of this function.

void AbortHandlerPrototype () noexcept;
AddAbortHandler функция

Add a custom Abort handler function. Implementations support at least 8 AbortHandlers. Implementation false is returned when either the implementation-defined limit for number of abort handlers

bool AddAbortHandler (AbortHandler handler) noexcept;
as_bytes функция

≙ [views.span]

template <typename ElementType, std::size_t Extent> Span< const Byte, Extent==dynamic_extent ? dynamic_extent :sizeof(ElementType) *Extent > as_bytes (Span< ElementType, Extent > s) noexcept;
as_writable_bytes функция

≙ [views.span]

template <typename ElementType, std::size_t Extent> Span< Byte, Extent==dynamic_extent ? dynamic_extent :sizeof(Element Type) *Extent > as_writable_bytes (Span< ElementType, Extent > s) noexcept;
data функция 4

Return a pointer to the block of memory that contains the elements of a container.

Перегрузки data 4
template <typename Container> constexpr auto data (Container &c) noexcept(noexcept(c.data())) -> decltype(c.data()); SWS_CORE_04110
template <typename Container> constexpr auto data (const Container &c) noexcept(noexcept(c.data())) -> decltype(c.data()); SWS_CORE_04111
template <typename T, std::size_t N> constexpr T * data (T(&array)[N]) noexcept; SWS_CORE_04112
template <typename E> constexpr const E * data (std::initializer_list< E > il) noexcept; SWS_CORE_04113
Deinitialize функция

Shutdown of the ARA Framework After this call, no interaction with the ARA is allowed with the exception of types intended to be used independently of initialization as defined in [SWS_CORE_15002]. As a prerequisite to calling this API it is expected that the use of ARA interfaces has completed (with the given exceptions). It is strongly recommended to make this call in a place where it is guaranteed that the static initialization has completed and destruction of statically initialized data has not yet started.

Result< void > Deinitialize () noexcept;
empty функция 3

Return whether the given container is empty

Перегрузки empty 3
template <typename Container> constexpr auto empty (const Container &c) noexcept(noexcept(c.empty())) -> decltype(c.empty()); SWS_CORE_04130
template <typename T, std::size_t N> constexpr bool empty (const T(&array)[N]) noexcept; SWS_CORE_04131
template <typename E> constexpr bool empty (std::initializer_list< E > il) noexcept; SWS_CORE_04132
GetCoreErrorDomain функция

Return a reference to the global ara::core::CoreErrorDomain

constexpr const ErrorDomain & GetCoreErrorDomain () noexcept;
GetDefaultResource функция

except for the following deviations: 1. Description references to std::pmr::new_delete_resource() are replaced by ara:: core::NewDeleteResource() 2. Description references to std::pmr::set_default_resource() are replaced by ara:: core::SetDefaultResource() 3. Return type std::pmr::memory_resource is replaced with ara::core:: MemoryResource ≙ std::pmr::new_delete_resource

MemoryResource * GetDefaultResource () noexcept;
GetFutureErrorDomain функция

Obtain the reference to the single global ara::core::FutureErrorDomain instance.

constexpr const ErrorDomain & GetFutureErrorDomain () noexcept;
Initialize функция

Initialization of the ARA framework. Prior to this call, interaction with the ARA is not allowed with the exception of types intended to be used independently of initialization as defined in [SWS_CORE_15002]. It is strongly recommended to make this call in a place where it is guaranteed that static initialization has completed.

Result< void > Initialize (int &argc, char **argv) noexcept;
NewDeleteResource функция

except for the following deviations: 1. Return type std::pmr::memory_resource is replaced with ara::core:: MemoryResource ≙ std::pmr::memory_resource

MemoryResource * NewDeleteResource () noexcept;
NullMemoryResource функция

except for the following deviations: 1. Return type std::pmr::memory_resource is replaced with ara::core:: MemoryResource 2. It’s allocate() function returns nullptr instead of throwing std::bad_alloc ≙ std::pmr::memory_resource

MemoryResource * NullMemoryResource () noexcept;
SetAbortHandler функция

Add a custom Abort handler function and return the most recently added one. By setting nullptr, the implementation may restore the default handler instead; this will remove all previously installed handlers. Implementation This function can be called from multiple threads simultaneously; these calls are performed in an

AbortHandler SetAbortHandler (AbortHandler handler) noexcept;
SetDefaultResource функция

except for the following deviations: 1. Description references to std::pmr::new_delete_resource() are replaced by ara:: core::NewDeleteResource() 2. Description references to std::pmr::get_default_resource() are replaced by ara:: core::GetDefaultResource() 3. Return type std::pmr::memory_resource is replaced with ara::core:: MemoryResource ≙ std::pmr::new_delete_resource

MemoryResource * SetDefaultResource (MemoryResource *r) noexcept;
size функция 2

Return the size of a container

Перегрузки size 2
template <typename Container> constexpr auto size (const Container &c) noexcept(noexcept(c.size())) -> decltype(c.size()); SWS_CORE_04120
template <typename T, std::size_t N> constexpr std::size_t size (const T(&array)[N]) noexcept; SWS_CORE_04121
CoreErrc перечисление

Defines all errors of the ara::core Functional Cluster

enum class CoreErrc : ErrorDomain::CodeType {...};
FutureErrc перечисление

Specifies the errors that can occur upon calling Future::get() or Future::GetResult().

enum class FutureErrc : ara::core::ErrorDomain::CodeType {...};
FutureStatus перечисление

Specifies the status of a ara::core::Future as returned by: • Future<T,E>::wait_for() • Future<void,E>::wait_for() • Future<T,E>::wait_until() • Future<void,E>::wait_until() These definitions are equivalent to the ones from std::future_status. However, no item equivalent to std::future_status::deferred is available here. Implementation The numerical values of the enum literals are implementation-defined ≙ std::future_status

enum class FutureStatus : std::uint8_t {...};
AbortHandler псевдоним типа

The type of a handler for ara::core::SetAbortHandler

using AbortHandler = decltype(&AbortHandlerPrototype);
Byte псевдоним типа

A non-integral binary type. The requirements on this type are stated in "See also:" Implementation {<byte-type>} shall be an implementation-defined type

using Byte = {<byte-type>};
String псевдоним типа

≙ [basic.string]

using String = BasicString<>;
variant_alternative_t псевдоним типа

≙ [variant]

using variant_alternative_t = typename variant_alternative<I, T>::type;
dynamic_extent переменная

≙ [views.span]

constexpr std::size_t dynamic_extent = std::numeric_limits<std::size_ t>::max();
in_place переменная

The singleton instance of ara::core::in_place_t

constexpr in_place_t in_place;
in_place_index переменная

The singleton instances (one for each I of ara::core::in_place_index_t

template <std::size_t Index> constexpr in_place_index_t<Index> in_place_index {};
in_place_type переменная

The singleton instances (one for each T) of ara::core::in_place_type_t

template <typename T> constexpr in_place_type_t<T> in_place_type;
nullopt переменная

≙ [optional]

constexpr nullopt_t nullopt {};
variant_size_v переменная

≙ [variant]

template <typename T> constexpr std::size_t variant_size_v = variant_size<T>::value;

ara::core::literals::string_view_literals

string_view_ функция

≙ [string.view]

constexpr StringView operator""_SV (const char *str, std::size_t len) noexcept;

std

hash (std) класс

Specialization of std::hash (hashing function for ara::core::Monostate) ≙ std::hash

Специализации hash< ara::core::Optional< T > hash< ara::core::String > hash< ara::core::StringView > hash< ara::core::Variant< hash< ara::core::Vector< T, Allocator > >

tuple_element класс

≙ [array]

tuple_size класс

≙ [array]

Пространства имён

UML-диаграмма классов модуля

Abgerundete Rahmen = Namespaces; hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); graue Boxen = modulfremde bzw. externe Basisklassen. Klicken öffnet die Klassenseite.

G cluster_1 ara::core cluster_2 ara::core::Bitset cluster_3 ara::core::Map cluster_4 std nara__core__CoreErrorDomain113 CoreErrorDomain nara__core__ErrorDomain335 ErrorDomain nara__core__CoreErrorDomain113->nara__core__ErrorDomain335 nara__core__CoreException713 CoreException nara__core__Exception792 Exception nara__core__CoreException713->nara__core__Exception792 nextstd__exception28 std::exception nara__core__Exception792->nextstd__exception28 nara__core__FutureErrorDomain146 FutureErrorDomain nara__core__FutureErrorDomain146->nara__core__ErrorDomain335 nara__core__FutureException511 FutureException nara__core__FutureException511->nara__core__Exception792 nara__core__MemoryResource130 MemoryResource nara__core__MonotonicBufferResource118 MonotonicBufferResource nara__core__MonotonicBufferResource118->nara__core__MemoryResource130 nara__core__SynchronizedPoolResource481 SynchronizedPoolResource nara__core__SynchronizedPoolResource481->nara__core__MemoryResource130 nara__core__UnsynchronizedPoolResource176 UnsynchronizedPoolResource nara__core__UnsynchronizedPoolResource176->nara__core__MemoryResource130 nara__core__Array326 Array nara__core__BasicString716 BasicString nara__core__Bitset255 Bitset nara__core__ErrorCode330 ErrorCode nara__core__Executor877 Executor nara__core__Future930 Future nara__core__Future__void__E__740 Future< void, E > nara__core__hash88 «struct» hash nara__core__in_place_index_t938 «struct» in_place_index_t nara__core__in_place_t356 «struct» in_place_t nara__core__in_place_type_t306 «struct» in_place_type_t nara__core__InstanceSpecifier92 InstanceSpecifier nara__core__is_nothrow_swappable987 «struct» is_nothrow_swappable nara__core__Map274 Map nara__core__Monostate901 «struct» Monostate nara__core__nullopt_t64 «struct» nullopt_t nara__core__Optional627 Optional nara__core__Optional__T____62 Optional< T & > nara__core__PolymorphicAllocator970 PolymorphicAllocator nara__core__PoolOptions463 «struct» PoolOptions nara__core__Promise131 Promise nara__core__Promise__void__E__714 Promise< void, E > nara__core__Result167 Result nara__core__Result__T____E__551 Result< T &, E > nara__core__Result__void__E__788 Result< void, E > nara__core__Span436 Span nara__core__SteadyClock455 SteadyClock nara__core__StringView801 StringView nara__core__Variant465 Variant nara__core__variant_alternative370 «struct» variant_alternative nara__core__variant_alternative__I_433 «struct» variant_alternative< I, … > nara__core__variant_alternative__I__Variant__Types_______15 «struct» variant_alternative< I, Variant< Types... > > nara__core__variant_size885 «struct» variant_size nara__core__variant_size__const24 «struct» variant_size< const volatile T > nara__core__variant_size__const_T__418 «struct» variant_size< const T > nara__core__variant_size__Variant_60 «struct» variant_size< Variant< Types... > > nara__core__variant_size__volatile_T__105 «struct» variant_size< volatile T > nara__core__Vector473 Vector nara__core__Bitset__reference533 reference nara__core__Map__value_compare839 value_compare nstd__hash__ara__core__Monostate__722 «struct» hash< ara::core::Monostate > next_core__Monostate__802 :core::Monostate > nstd__hash__ara__core__Monostate__722->next_core__Monostate__802 nstd__hash__ara__core__Optional__T__781 «struct» hash< ara::core::Optional< T > next_core__Optional__T____961 :core::Optional< T > > nstd__hash__ara__core__Optional__T__781->next_core__Optional__T____961 nstd__hash__ara__core__String__667 «struct» hash< ara::core::String > next_core__String___final444 :core::String > final nstd__hash__ara__core__String__667->next_core__String___final444 nstd__hash__ara__core__StringView__122 «struct» hash< ara::core::StringView > next_core__StringView___final857 :core::StringView > final nstd__hash__ara__core__StringView__122->next_core__StringView___final857 nstd__hash__ara__core__Variant_545 «struct» hash< ara::core::Variant< next_core__Variant__Types__________________978 :core::Variant< Types...            > > nstd__hash__ara__core__Variant_545->next_core__Variant__Types__________________978 nstd__hash__ara__core__Vector__T__Allocator____942 «struct» hash< ara::core::Vector< T, Allocator > > next_core__Vector__T__Allocator_____final470 :core::Vector< T, Allocator > > final nstd__hash__ara__core__Vector__T__Allocator____942->next_core__Vector__T__Allocator_____final470 nstd__tuple_element__I__ara__core__Array__T__N____988 «struct» tuple_element< I, ara::core::Array< T, N > > next_core__Array__T__N____306 :core::Array< T, N > > nstd__tuple_element__I__ara__core__Array__T__N____988->next_core__Array__T__N____306 nstd__tuple_size__ara__core__Array__T_805 «struct» tuple_size< ara::core::Array< T, next_core__Array__T__N________________________integral__constant__size_548 :core::Array< T, N > > :                  integral_ constant< size_t, N > nstd__tuple_size__ara__core__Array__T_805->next_core__Array__T__N________________________integral__constant__size_548