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

用户指南人工智能生成

用于唯一定义技术服务实例,以区分同类服务。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1921f270f529 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用于唯一定义技术服务实例,以区分同类服务。

类 ara::com::InstanceIdentifier 表示 AUTOSAR Adaptive Platform 中具体服务实例的唯一技术标识符,并支持通过特定的通信绑定进行寻址 (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),以区分完全相同服务的不同实例。它封装了所选通信绑定的技术特定寻址,但特意不包含带有服务类型信息的完全限定名称。对于常规软件开发人员而言,与 ara::com::InstanceIdentifier 的直接交互通常已被抽象化:虽然在软件组件模型中主要通过 ara::core::InstanceSpecifier 使用逻辑名称 (AUTOSAR_AP_EXP_ARAComAPI 第23页 §4.2 “InstanceSpecifier class”),但集成商会通过清单文件将这些名称分配给技术绑定及其各自的实例 ID (AUTOSAR_AP_EXP_ARAComAPI 第23页 §4.2 “InstanceSpecifier class”)。

在所谓的 Multi-Binding 框架下,单个抽象标识符可以映射到多个技术绑定。因此,通过 ResolveInstanceIDs() 进行解析会返回一个聚合了多个 ara::com::InstanceIdentifier 的 ara::com::InstanceIdentifierContainer (ARAComAPI 第1页 “Figure 6.6: InstanceIdentifier Resolution”、AUTOSAR_AP_EXP_ARAComAPI 第24页 §4.3 “InstanceSpecifier Resolution”)。这使得服务器(Skeleton)能够通过不同的传输技术为客户端提供服务,或者允许客户端(Proxy)实现故障转移路径 (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 的实例具有完整的值语义。它们满足 ISO/IEC 14882:2014 的 equalitycomparable、lessthancomparable 以及 copyassignable 要求,从而可以在标准容器中进行管理、排序和记录。该类提供以下构造函数和生命周期函数:

通过字符串构造函数与方法 toString() ([SWS_CM_11522]) 的协同作用,该类是可序列化的 (AUTOSAR_AP_EXP_ARAComAPI 第22页 §4.1 “InstanceIdentifier class”)。这允许持久化、传输并在以后重用标识符。由于结构完全取决于中间件产品和绑定,因此应用逻辑不对序列化字符串进行内容解释(自省)(AUTOSAR_AP_EXP_ARAComAPI 第22页 §4.1 “InstanceIdentifier class”)。

使用路径

由于 ara::com 为常用方法提供了直接接受 ara::core::InstanceSpecifier 的重载,因此手动处理 ara::com::InstanceIdentifier 主要面向专用绑定或针对性故障转移等高级用例 (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. 服务搜索:将标识符传递给 Proxy 类的静态方法 FindService(ara::com::InstanceIdentifier instance) (ARAComAPI 第103页 “Figure 6.5: Service Discovery”)。
  4. 处理:服务搜索返回一个 ServiceHandleContainer,基于该对象实例化 Proxy (ARAComAPI 第103页 “Figure 6.5: Service Discovery”)。可以通过 GetInstanceId() 查询实例标识符 (AUTOSAR_AP_EXP_ARAComAPI 第30页 “GetInstanceId”)。
InstanceIdentifier 的解析与使用Applikationara::com Runtime服务代理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 时,尤其需要考虑两种错误情况:

本类指南基于 AUTOSAR Adaptive Platform Release R25-11 的规范和说明。

成员图

类图

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

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

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

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

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

AI 生成 未审核 模型: 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])。

本使用说明由 AI 生成,且完全基于 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#7711628b
Content hash
7711628b
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#017cff1a
Content hash
017cff1a
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#4d8c9d3a
Content hash
4d8c9d3a
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#2e80c06f
Content hash
2e80c06f
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#910aa9db
Content hash
910aa9db
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#0bc718c0
Content hash
0bc718c0
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#47ada35a
Content hash
47ada35a
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#72950a7f
Content hash
72950a7f
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

AI 生成 未审核 模型: 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-Provider 进行特定于供应商的实现,且未作标准化([SWS_CM_00088])。基于字符串的构造函数也预期采用相同的格式([SWS_CM_11520],[SWS_CM_00088])。

错误处理与并发

该方法定义为 noexcept,从而保证了完全的异常安全性(exception safe)([SWS_CM_11522])。既不会引发异常,也不会返回错误码。由于返回类型 ara::core::StringView 不拥有所引用内存的所有权,因此推测数据的有效性大概率绑定在 InstanceIdentifier 对象的生命周期上。 问题 Q-51f5f18a79ebf3a4 (未决)

相互作用

与被指定为 not exception safe 的 ara::com::ServiceIdentifierType::toString([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#3bff11fc
Content hash
3bff11fc
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#15c254f1
Content hash
15c254f1
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