函数 DiagnosticSovdRecord [SWS_DM_02260] Upstream: RS_Diag_04260
auto operator-> () noexcept -> DiagnosticSovdContentElementDataWithKey *;
Dereference operator.
用法与语义
类 ara::diag::DiagnosticSovdRecordContentElementDataIterator 的解引用运算符 operator-> 用于对已寻址的数据元素进行同步成员访问([SWS_DM_02260])。该调用返回一个指向当前元素的 DiagnosticSovdContentElementDataWithKey* 类型指针([SWS_DM_02260])。该接口在头文件 ara/diag/diagnostic_sovd_content_element_data.h 中定义([SWS_DM_02260])。
并发性与边界条件
该函数标明为 noexcept,保证异常安全(exception safe),并被指定为线程安全([SWS_DM_02260])。该成员函数不存在特定的错误码。解释:在调用之前,迭代器必须指向有效的数据元素,且不能等于范围末尾,因为解引用无效的迭代器可能会导致未定义行为。 问题 Q-735b580a0b2c8330 (未决)
相互作用
在处理记录内容的上下文中,该迭代器与其他函数一同使用:
- 它可以通过
DiagnosticSovdRecordContentElementDataView上的搜索操作(如Find)获取([SWS_DM_02285])。 - 循环控制通常通过前缀递增运算符
operator++([SWS_DM_02263])以及与来自RecordEnd的尾迭代器进行比对的不等运算符operator!=([SWS_DM_02262])实现([SWS_DM_02360])。 - 针对只读上下文提供了
DiagnosticSovdRecordContentElementDataConstIterator,其operator->返回指向const DiagnosticSovdContentElementDataWithKey的指针([SWS_DM_02266])。
此使用说明是自动生成的,基于 AUTOSAR 规范。
实现者指南即将推出(复杂度 I2)
| Header-Datei | #include "ara/diag/diagnostic_sovd_content_element_data.h" |
|---|---|
| Scope | class ara::diag::DiagnosticSovdRecordContentElementDataIterator |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| DiagnosticSovdContent Return a pointer to the DiagnosticSovdAbstractContentDataWith ElementDataWithKey * Key | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_02260- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_02260@rel:R25-11#f0ef44f5- Content hash
f0ef44f5- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02260
Status: valid/unmigrated
Version: rel:R25-11#c2b0a45d
Versionshistorie & Revisions (1 transition)
- 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_DM_02260@rel:R25-11#c2b0a45d
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 德文原文