DEENESPTFRRUARHIKOZHNL

класс ara::com::InstanceIdentifier

[SWS_CM_00302] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

class InstanceIdentifier {...};

Unique identifier of a specific AdaptivePlatformServiceInstance, to distinguish different instances of exactly the same service. ara::com::InstanceIdentifier satisfies the [equalitycomparable], [lessthancomparable] and [copyassignable] requirements as per [30] to allow for logging of ara::com::InstanceIdentifiers as well as storing and managing ara::com::InstanceIdentifiers by the application (see operators). ara:: com::InstanceIdentifier does not contain a fully qualified name, which would also have service type information.

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/service/instance_identifier.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com

Руководство пользователяСОЗДАНО ИИ

Служит для однозначной идентификации технических экземпляров сервисов с целью различения однотипных сервисов.
СОЗДАНО ИИ не проверено Модель: gemini-3.8-flash-medium · Усилие: medium · Температура: не регулируется · Промпт: 1921f270f529 Происхождение Открытые вопросы (1)
переведено с немецкого руководстваgemini-3.8-flash-low · 2026-10-13 · Немецкий оригинал

Служит для однозначной идентификации технических экземпляров сервисов с целью различения однотипных сервисов.

Класс ara::com::InstanceIdentifier представляет собой однозначный технический идентификатор конкретного экземпляра сервиса в AUTOSAR Adaptive Platform и обеспечивает адресацию через специфические коммуникационные привязки (Bindings) (AUTOSAR_AP_EXP_ARAComAPI с. 22 §4.1 «InstanceIdentifier class»). Будучи сериализуемым типом-значением, он может создаваться из строк, сравниваться и управляться в контейнерах ([SWS_CM_11520], [SWS_CM_11523]). В то время как стандартные приложения преимущественно используют абстрактные идентификаторы модели, прямое использование этого технического идентификатора предназначено для специальных случаев, таких как Multi-Binding и решения для обработки отказов (Fail-over) (AUTOSAR_AP_EXP_ARAComAPI с. 25 «InstanceIdentifier Usage»).

Контекст

Класс ara::com::InstanceIdentifier служит для однозначной идентификации конкретного экземпляра сервиса на Adaptive Platform (AdaptivePlatformServiceInstance), чтобы отличать различные экземпляры одного и того же сервиса друг от друга. Он инкапсулирует технологически зависимую адресацию выбранной коммуникационной привязки, однако намеренно не содержит полного имени (Fully Qualified Name) с информацией о типе сервиса. Для обычного разработчика программного обеспечения прямое взаимодействие с ara::com::InstanceIdentifier, как правило, абстрагировано: в то время как в компонентной модели программного обеспечения преимущественно используются логические имена через ara::core::InstanceSpecifier (AUTOSAR_AP_EXP_ARAComAPI с. 23 §4.2 «InstanceSpecifier class»), интегратор сопоставляет их через файлы манифеста с техническими привязками и их соответствующими идентификаторами экземпляров (AUTOSAR_AP_EXP_ARAComAPI с. 23 §4.2 «InstanceSpecifier class»).

В рамках так называемого Multi-Binding один абстрактный идентификатор может быть сопоставлен с несколькими техническими привязками. Поэтому разрешение через ResolveInstanceIDs() возвращает ara::com::InstanceIdentifierContainer, объединяющий несколько ara::com::InstanceIdentifier (ARAComAPI с. 1 «Figure 6.6: InstanceIdentifier Resolution», AUTOSAR_AP_EXP_ARAComAPI с. 24 §4.3 «InstanceSpecifier Resolution»). Это позволяет серверам (Skeletons) обслуживать клиентов через различные транспортные технологии, а клиентам (Proxies) — реализовывать пути аварийного переключения (ARAComAPI с. 1 «Figure 6.6: InstanceIdentifier Resolution»).

diag_kontext Applikation Applikation Runtime ara::com Runtime (ResolveInstanceIDs) Applikation->Runtime uebergibt InstanceSpecifier ServiceProxy Service-Proxy / Skeleton (FindService / OfferService) Applikation->ServiceProxy адресует с помощью InstanceIdentifier Manifest Deployment-Manifest Manifest->Runtime definiert Binding-Mapping Runtime->Applikation возвращает InstanceIdentifierContainer

Контекстная диаграмма: взаимодействие приложения, манифеста развертывания, разрешения экземпляров и интерфейсов сервисов. Источники: ARAComAPI с. 103 «Figure 6.5: Service Discovery», AUTOSAR_AP_EXP_ARAComAPI с. 23 §4.2 «InstanceSpecifier class», AUTOSAR_AP_EXP_ARAComAPI с. 24 §4.3 «InstanceSpecifier Resolution»

Жизненный цикл

Экземпляры ara::com::InstanceIdentifier обладают полноценной семантикой значений. Они удовлетворяют требованиям equalitycomparable, lessthancomparable, а также copyassignable согласно ISO/IEC 14882:2014, благодаря чему ими можно управлять в стандартных контейнерах, сортировать их и протоколировать. Класс предоставляет следующие конструкторы и функции жизненного цикла:

  • Безисключительное создание через статический фабричный метод Create ([SWS_CM_11520]) с noexcept.
  • Явный конструктор на основе строкового представления ([SWS_CM_11521]), который явно не является исключебнобезопасным (not exception safe).
  • Конструктор копирования ([SWS_CM_00056]) и конструктор перемещения ([SWS_CM_00053]), оба специфицированы как noexcept.
  • Оператор копирующего присваивания ([SWS_CM_11525]) и оператор перемещающего присваивания ([SWS_CM_00054]), каждый с noexcept.
  • Операторы сравнения operator== ([SWS_CM_11523]) и operator< ([SWS_CM_11524]) для проверки равенства и порядка.
  • Деструктор ~InstanceIdentifier() ([SWS_CM_00055]) с noexcept.

Благодаря взаимодействию строкового конструктора с методом toString() ([SWS_CM_11522]) класс является сериализуемым (AUTOSAR_AP_EXP_ARAComAPI с. 22 §4.1 «InstanceIdentifier class»). Это позволяет сохранять, передавать и в дальнейшем повторно использовать идентификатор. Смысловая интерпретация (интроспекция) сериализованной строки логикой приложения не предусмотрена, поскольку структура полностью зависит от продукта промежуточного слоя (Middleware) и привязки (AUTOSAR_AP_EXP_ARAComAPI с. 22 §4.1 «InstanceIdentifier class»).

Путь использования

Поскольку ara::com предлагает для распространенных методов перегрузки, которые напрямую принимают ara::core::InstanceSpecifier, ручная работа с ara::com::InstanceIdentifier ориентирована преимущественно на продвинутые сценарии использования, такие как специализированные привязки или направленный Fail-over (AUTOSAR_AP_EXP_ARAComAPI с. 25 «InstanceIdentifier Usage»). Типичный процесс состоит из следующих шагов:

  1. Разрешение: приложение преобразует абстрактный идентификатор модели с помощью ResolveInstanceIDs() в назначенные технические идентификаторы экземпляров (AUTOSAR_AP_EXP_ARAComAPI с. 24 §4.3 «InstanceSpecifier Resolution»).
  2. Выбор: из результирующего ara::com::InstanceIdentifierContainer приложение выбирает нужный ara::com::InstanceIdentifier (ARAComAPI с. 1 «Figure 6.6: InstanceIdentifier Resolution»).
  3. Поиск сервиса: идентификатор передается в статический метод FindService(ara::com::InstanceIdentifier instance) класса Proxy (ARAComAPI с. 103 «Figure 6.5: Service Discovery»).
  4. Обработка: поиск сервиса возвращает ServiceHandleContainer, на основе которого инстанцируются прокси-объекты (ARAComAPI с. 103 «Figure 6.5: Service Discovery»). С помощью GetInstanceId() можно запросить идентификатор экземпляра (AUTOSAR_AP_EXP_ARAComAPI с. 30 «GetInstanceId»).
Разрешение и использование InstanceIdentifierApplikationara::com RuntimeProxy сервисаResolveInstanceIDs(instanceSpecifier)Result<InstanceIdentifierContainer>FindService(instanceIdentifier)Result<ServiceHandleContainer>

Диаграмма последовательности: разрешение идентификатора и направленный поиск сервиса через технический InstanceIdentifier. Источники: ARAComAPI с. 103 «Figure 6.5: Service Discovery», AUTOSAR_AP_EXP_ARAComAPI с. 24 §4.3 «InstanceSpecifier Resolution»

Сценарии ошибок

При работе с ara::com::InstanceIdentifier необходимо учитывать в особенности две ошибочные ситуации:

  • Недопустимый формат строки (InvalidInstanceIdentifierStringViolation): если в Create ([SWS_CM_11520]) или в конструктор ([SWS_CM_11521]) передается сериализованный идентификатор, который поврежден, не соответствует формату или дублирован, имеет место данное нарушение. Интерпретация: в то время как безисключительный фабричный метод Create, вероятно, сообщает об этом через объект ошибки, конструктор, не являющийся исключебнобезопасным, в случае ошибки должен вызывать исключение. Вопрос Q-45a6fdd0859218bd (открытый)
  • Отсутствие сопоставления при разрешении: если интегратор в манифесте развертывания не указал сопоставление для ara::core::InstanceSpecifier, вызов ResolveInstanceIDs() возвращает пустой список (ARAComAPI с. 1 «Figure 6.6: InstanceIdentifier Resolution», AUTOSAR_AP_EXP_ARAComAPI с. 24 §4.3 «InstanceSpecifier Resolution»). Как правило, это представляет собой ошибку конфигурации.
  • Отсутствующий экземпляр сервиса: если для указанного идентификатора на стороне Skeleton не был выполнен соответствующий OfferService(), возвращаемый FindService ServiceHandleContainer остается пустым (ARAComAPI с. 103 «Figure 6.5: Service Discovery»).

Настоящее руководство по классу опирается на спецификации и пояснения релиза AUTOSAR Adaptive Platform R25-11.

Карта членов

Конструкторы и деструктор

2

Методы

2

Операторы

3

Диаграмма классов

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__com__InstanceIdentifier581 InstanceIdentifier + InstanceIdentifier() + operator=() + ~InstanceIdentifier() + Create() + operator<() + operator==() + toString()

Подробный вид

Выберите элемент в оглавлении.

Конструкторы и деструктор

InstanceIdentifier функция 3

Move Constructor

Перегрузки InstanceIdentifier 3
InstanceIdentifier (InstanceIdentifier &&other) noexcept; SWS_CM_00053
InstanceIdentifier (const InstanceIdentifier &other) noexcept; SWS_CM_00056
explicit InstanceIdentifier (ara::core::StringView serializedFormat); SWS_CM_11521
~InstanceIdentifier функция

Destructor

~InstanceIdentifier () noexcept;

Методы

Create функция

Exception-less construction of a ara::com::InstanceIdentifier

static InstanceIdentifier Create (ara::core::StringView serialized Format) noexcept;
toString функция

Stringification method for ara::com::InstanceIdentifier

ara::core::StringView toString () const noexcept;

Операторы

operator< функция

LessThan operator as per [lessthancomparable] in [30]

bool operator< (const InstanceIdentifier &other) const noexcept;
operator= функция 2

Move assignment constructor

Перегрузки = 2
InstanceIdentifier & operator= (InstanceIdentifier &&other) noexcept; SWS_CM_00054
InstanceIdentifier & operator= (const InstanceIdentifier &other) noexcept; SWS_CM_11525
operator== функция

Equality operator as per [equalitycomparable] in [30]

bool operator== (const InstanceIdentifier &other) const noexcept;

Документация методов

функция Create [SWS_CM_11520] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

static InstanceIdentifier Create (ara::core::StringView serialized Format) noexcept;

Exception-less construction of a ara::com::InstanceIdentifier

СОЗДАНО ИИ не проверено Модель: gemini-3.8-flash-medium · Усилие: medium · Температура: не регулируется · Промпт: b4194687c159 Происхождение Открытые вопросы (1)
переведено с немецкого руководстваgemini-3.8-flash-low · 2026-10-13 · Немецкий оригинал

Использование

Статическая функция ara::com::InstanceIdentifier::Create ([SWS_CM_11520]) представляет собой безисключительный фабричный метод для инстанцирования InstanceIdentifier. Она принимает в качестве синхронного входного параметра строку типа ara::core::StringView (serializedFormat) и возвращает экземпляр InstanceIdentifier ([SWS_CM_11520]). Конкретный формат сериализованной строки не стандартизирован, а определяется поставщиком в зависимости от соответствующего драйвера управления коммуникацией ([SWS_CM_00088], AUTOSAR_AP_SWS_CommunicationManagement §7.5.22.1 «Service Identifier Data Types»).

Обработка ошибок

Функция специфицирована как noexcept и исключение-безопасная ([SWS_CM_11520]). Если переданная строка повреждена, не соответствует требованиям или дублируется в системе, спецификация определяет нарушение InvalidInstanceIdentifierStringViolation ([SWS_CM_11520]). Поскольку сигнатура не возвращает тип ошибки, такой как ara::core::Result, нарушение, вероятно, перехватывается через внутреннюю для платформы обработку ошибок или завершение работы (интерпретация). Вопрос Q-17a699ea15610637 (открытый)

Параллелизм и ограничения

ara::com::InstanceIdentifier служит для однозначной идентификации и различения различных экземпляров одного и того же типа сервиса в системе ([SWS_CM_00302]). Вызывающая сторона должна гарантировать, что предоставленная строка представляет валидный и глобально уникальный в системе экземпляр, поскольку дубликаты явно расцениваются как нарушение ([SWS_CM_11520]).

Взаимодействие

Созданный идентификатор экземпляра соответствует методу ToString() ([SWS_CM_11522]), через который строковое представление может быть снова считано ([SWS_CM_00088]). Кроме того, объект используется для адресации конкретных экземпляров сервиса во всей системе ([SWS_CM_00302]).

Это указание по использованию было сгенерировано ИИ и опирается исключительно на состояние спецификации R25-11.

Руководство разработчика реализации в подготовке (сложность I1)

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe
Verletzungen (Violations)InvalidInstanceI- Given ara::com::InstanceIdentifier string is corrupted, dentifierStringVi- non-compliant or duplicated olation

Parameter (in)

ParameterBeschreibung
serializedFormatString form of an ara::com::InstanceIdentifier

Rückgabewert

TypBeschreibung
InstanceIdentifierAn ara::com::InstanceIdentifier

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11520
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11520@rel:R25-11#083f08a0
Content hash
083f08a0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11520
Status: valid/unmigrated Version: rel:R25-11#eeb32462 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11520@rel:R25-11#eeb32462
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#1718d3472026-09-30
  • R24-11rel:R24-11#11e5a2e42026-10-14
  • R25-11rel:R25-11#eeb324622026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция InstanceIdentifier [SWS_CM_00053] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

InstanceIdentifier (InstanceIdentifier &&other) noexcept;

Move Constructor

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::InstanceIdentifier object to move

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_00053
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00053@rel:R25-11#f8556e33
Content hash
f8556e33
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00053
Status: valid/unmigrated Version: rel:R25-11#caf5ba60 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_00053@rel:R25-11#caf5ba60
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#d0a634282026-09-30
  • R24-11rel:R24-11#f1022a3d2026-10-14
  • R25-11rel:R25-11#caf5ba602026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция InstanceIdentifier [SWS_CM_00056] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

InstanceIdentifier (const InstanceIdentifier &other) noexcept;

Copy Constructor

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::InstanceIdentifier object to copy

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_00056
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00056@rel:R25-11#2ffe7f46
Content hash
2ffe7f46
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00056
Status: valid/unmigrated Version: rel:R25-11#e0c300a4 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_00056@rel:R25-11#e0c300a4
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#a442ca0c2026-09-30
  • R24-11rel:R24-11#91b5ff7c2026-10-14
  • R25-11rel:R25-11#e0c300a42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция InstanceIdentifier [SWS_CM_11521] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

explicit InstanceIdentifier (ara::core::StringView serializedFormat);

Default Constructor

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitnot exception safe
Verletzungen (Violations)InvalidInstanceI- Given ara::com::InstanceIdentifier string is corrupted, dentifierStringVi- non-compliant or duplicated olation

Parameter (in)

ParameterBeschreibung
serializedFormatString form of an ara::com::InstanceIdentifier

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11521
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11521@rel:R25-11#e1a3983c
Content hash
e1a3983c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11521
Status: valid/unmigrated Version: rel:R25-11#689a4afe Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11521@rel:R25-11#689a4afe
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#818b98f02026-09-30
  • R24-11rel:R24-11#41eb409f2026-10-14
  • R25-11rel:R25-11#689a4afe2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция operator< [SWS_CM_11524] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

bool operator< (const InstanceIdentifier &other) const noexcept;

LessThan operator as per [lessthancomparable] in [30]

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::InstanceIdentifier to compare

Rückgabewert

TypBeschreibung
boolTRUE if other is less than *this, FALSE otherwise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11524
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11524@rel:R25-11#33205420
Content hash
33205420
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11524
Status: valid/unmigrated Version: rel:R25-11#77fab622 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11524@rel:R25-11#77fab622
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#940d67392026-09-30
  • R24-11rel:R24-11#7d6989192026-10-14
  • R25-11rel:R25-11#77fab6222026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция operator= [SWS_CM_00054] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

InstanceIdentifier & operator= (InstanceIdentifier &&other) noexcept;

Move assignment constructor

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::InstanceIdentifier to move

Rückgabewert

TypBeschreibung
InstanceIdentifier &New ara::com::InstanceIdentifier

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_00054
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00054@rel:R25-11#2cde6a75
Content hash
2cde6a75
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00054
Status: valid/unmigrated Version: rel:R25-11#f9cadc05 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_00054@rel:R25-11#f9cadc05
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#443a6cbd2026-09-30
  • R24-11rel:R24-11#fa7cfb922026-10-14
  • R25-11rel:R25-11#f9cadc052026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция operator= [SWS_CM_11525] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

InstanceIdentifier & operator= (const InstanceIdentifier &other) noexcept;

Copy assignment constructor

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::InstanceIdentifier to copy

Rückgabewert

TypBeschreibung
InstanceIdentifier &New ara::com::InstanceIdentifier

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11525
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11525@rel:R25-11#49accfb8
Content hash
49accfb8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11525
Status: valid/unmigrated Version: rel:R25-11#197f0d66 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11525@rel:R25-11#197f0d66
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#629783cf2026-09-30
  • R24-11rel:R24-11#abf0a0842026-10-14
  • R25-11rel:R25-11#197f0d662026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция operator== [SWS_CM_11523] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

bool operator== (const InstanceIdentifier &other) const noexcept;

Equality operator as per [equalitycomparable] in [30]

Literaturverzeichnis SWS CommunicationManagement: [30] ISO/IEC 14882:2014, Information technology – Programming languages – C++ – www.iso.org

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherOther ara::com::InstanceIdentifier to compare

Rückgabewert

TypBeschreibung
boolTRUE if other is equal to *this, FALSE otherwise.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11523
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11523@rel:R25-11#a7519639
Content hash
a7519639
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11523
Status: valid/unmigrated Version: rel:R25-11#9145a6aa Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11523@rel:R25-11#9145a6aa
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#50f237182026-09-30
  • R24-11rel:R24-11#035c45fb2026-10-14
  • R25-11rel:R25-11#9145a6aa2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция toString [SWS_CM_11522] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

ara::core::StringView toString () const noexcept;

Stringification method for ara::com::InstanceIdentifier

СОЗДАНО ИИ не проверено Модель: gemini-3.8-flash-medium · Усилие: medium · Температура: не регулируется · Промпт: fb75f02e4eb4 Происхождение Открытые вопросы (1)
переведено с немецкого руководстваgemini-3.8-flash-low · 2026-10-13 · Немецкий оригинал

Метод toString служит функцией стрингификации для экземпляров ara::com::InstanceIdentifier ([SWS_CM_11522]), которые используются для однозначного различения различных экземпляров одного и того же сервиса в системе ([SWS_CM_00302], AUTOSAR_AP_SWS_CommunicationManagement §7.5.22.1 «Service Identifier Data Types»).

Использование и возвращаемое значение

Функция объявлена в заголовочном файле #include "ara/com/service/instance_identifier.h" и вызывается синхронно и без параметров на константном объекте ([SWS_CM_11522]):

  • Возвращаемое значение: метод возвращает текстовое представление идентификатора экземпляра в виде ara::core::StringView ([SWS_CM_11522]).
  • Формат: формат возвращаемой строки реализован поставщиком специфично для соответствующего провайдера Communication Management и не стандартизирован ([SWS_CM_00088]). Тот же формат ожидается и строковым конструктором ([SWS_CM_11520], [SWS_CM_00088]).

Обработка ошибок и параллелизм

Метод определен как noexcept и тем самым гарантирует полную безопасность исключений (exception safe) ([SWS_CM_11522]). Исключения не возбуждаются, а коды ошибок не возвращаются. Поскольку возвращаемый тип ara::core::StringView не владеет адресуемой памятью, валидность данных, предположительно, привязана к времени жизни объекта InstanceIdentifier. Вопрос Q-51f5f18a79ebf3a4 (открытый)

Взаимодействие

В отличие от ara::com::ServiceIdentifierType::toString, которая специфицирована как not exception safe ([SWS_CM_11514]), InstanceIdentifier::toString гарантирует строгое отсутствие исключений и ошибок ([SWS_CM_11522]).

Это указание по использованию было сгенерировано автоматически. Все сведения подтверждены спецификацией или явно обозначены как предположение.

Руководство разработчика реализации в подготовке (сложность I1)

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
ara::core::StringViewString representation of a ara::com::InstanceIdentifier

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11522
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11522@rel:R25-11#5fea4abd
Content hash
5fea4abd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11522
Status: valid/unmigrated Version: rel:R25-11#5d231f17 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11522@rel:R25-11#5d231f17
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#cc1787472026-09-30
  • R24-11rel:R24-11#5eabc4232026-10-14
  • R25-11rel:R25-11#5d231f172026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

функция ~InstanceIdentifier [SWS_CM_00055] Upstream: RS_CM_00101, RS_CM_00102, RS_AP_00114, RS_AP_00127

~InstanceIdentifier () noexcept;

Destructor

Header-Datei#include "ara/com/service/instance_identifier.h"
Scopeclass ara::com::InstanceIdentifier
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_00055
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_00055@rel:R25-11#f052bb55
Content hash
f052bb55
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_00055
Status: valid/unmigrated Version: rel:R25-11#0f00f6b7 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_00055@rel:R25-11#0f00f6b7
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#b6686cab2026-09-30
  • R24-11rel:R24-11#e308d7272026-10-14
  • R25-11rel:R25-11#0f00f6b72026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill