DEENESPTFRRUARHIKOZHNL

类 ara::diag::DiagnosticSovdArrayContentElementDataView

[SWS_DM_02227] Upstream: RS_Diag_04260

class DiagnosticSovdArrayContentElementDataView {...};

View on a DiagnosticSovdContentElementData with Array type.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

用户指南人工智能生成

通过索引和迭代器提供对 SOVD 诊断数据数组元素的类型化读写访问。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: d333ea0efb38 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

通过索引和迭代器提供对 SOVD 诊断数据数组元素的类型化读写访问。

该类为随机以及基于迭代器访问 Adaptive Platform 的基于数组的诊断数据元素([SWS_DM_02227])提供了结构化接口。它允许应用程序动态追加原始数据值和复杂内容元素,并预先保留存储容量。当出现不兼容的数据类型、无效索引访问或显式设置的错误状态时,错误代码将通过 Result 类型传播给调用方([SWS_DM_02228])。根据标准,所有规范的操作均完全实现了异常安全和线程安全。

上下文

类 ara::diag::DiagnosticSovdArrayContentElementDataView 在 AUTOSAR_AP_SWS_Diagnostics §8.60.5 “Class: DiagnosticSovdArrayContentElementDataView” 中的 [SWS_DM_02227] 下定义。在 AUTOSAR Adaptive 诊断模块中,它用作底层类型为 ArrayContentElementData 的诊断内容元素(DiagnosticSovdContentElementData)的类型化视图。通过头文件 ara/diag/diagnostic_sovd_content_element_data.h 进行声明。

其主要职责是对面向服务的车辆诊断(SOVD,Service-Oriented Vehicle Diagnostics)的数组操作进行结构化封装。交互伙伴包括处理或提供 SOVD 数据结构的调用方诊断应用程序,以及底层的通用数据容器。对单个数组元素的访问既可以通过专用迭代器完成,也可以通过类型化索引运算符完成。

生命周期

作为视图对象,该实例推测并不单独拥有实际有效负载数据的所有权,而是绑定到现有 DiagnosticSovdContentElementData 的存储区。 问题 Q-04a43d21a981ea92 (未决)数据的生命周期经历以下阶段:

在并发性和异常行为方面,根据规范,该类的所有成员函数均设计为异常安全(使用 noexcept 声明)和线程安全(“thread-safe”)。

使用路径

典型使用路径包括准备性容量保留、逐步数据填充、元素读取以及错误状态的最终验证:

  1. 保留容量:应用程序调用 Reserve,以最大程度减少后续写访问期间的动态重新分配([SWS_DM_02240])。
  2. 插入元素:数据集使用 PushBack 追加([SWS_DM_02241])。
  3. 读取或遍历元素:访问既可以通过 operator[]([SWS_DM_02234]、[SWS_DM_02235])进行随机访问,也可以通过 Begin/End([SWS_DM_02236]、[SWS_DM_02237])或 CBegin/CEnd([SWS_DM_02238]、[SWS_DM_02239])经由迭代器顺序进行。
  4. 检查状态:操作完成后,应用程序通过 HasError 检查数组内容是否保持无错误([SWS_DM_02228])。
管理和查询数组元素的序列应用ArrayViewArrayDataReserve(10)预留容量PushBack(val)追加元素Result<void>operator[](0)Element referenzierenElementdatenResult<reference_wrapper>HasError()Result<void>

时序图:SOVD 数组元素的填充、索引和错误检查典型流程。来源:[SWS_DM_02240]、[SWS_DM_02241]、[SWS_DM_02234]、[SWS_DM_02228]。

错误场景

有潜在错误的方法使用 ara::core::Result 反馈有缺陷的前置条件或执行中止,而非 C++ 异常:

  • 类型不匹配:PushBack([SWS_DM_02241])或 operator[]([SWS_DM_02234])等操作要求封装的元素实际上属于类型 ArrayContentElementData。否则,它们会在 Result 对象中返回相应的错误。对于 PushBack,插入的类型还必须与数组元素构造函数中指定的数据类型匹配。
  • 删除失败:如果目标不是类型 ArrayContentElementData 或无法通过指定的迭代器移除元素,调用 Erase([SWS_DM_02247])将在 Result 中返回错误。
  • 显式错误状态:可以通过 SetError([SWS_DM_02229])为数组内容分配一个 ara::core::ErrorCode。如果内容以此方式被标记为有缺陷,则查询 HasError([SWS_DM_02228])将把错误代码作为 ara::diag::DiagSovdErrc 返回。

本类指南基于 AUTOSAR 规范 R25-11,由 AI 整理。

成员图

类图

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

G nara__diag__DiagnosticSovdArrayContentElementDataView429 DiagnosticSovdArrayContentElementDataView + Begin() + CBegin() + CEnd() + Capacity() + Clear() + Empty() + End() + Erase() + HasError() + PushBack() + Reserve() + SetError() + Size() + operator[]()

详细视图

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

方法

Begin 函数

Returns the begin operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto Begin () noexcept -> DiagnosticSovdArrayContentElementData Iterator;
Capacity 函数

Returns the capacity of the Array content element. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto Capacity () const noexcept -> std::size_t;
CBegin 函数

Returns the begin operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto CBegin () noexcept -> DiagnosticSovdArrayContentElementDataConst Iterator;
CEnd 函数

Returns the end operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto CEnd () noexcept -> DiagnosticSovdArrayContentElementDataConst Iterator;
Clear 函数

Clears the Array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto Clear () noexcept -> void;
Empty 函数

Returns if the Array is empty. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto Empty () const noexcept -> bool;
End 函数

Returns the end operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Erase 函数

Erases a content element from DiagnosticSovdContentElementData. The current element shall be of ArrayContentElementData

auto Erase (DiagnosticSovdArrayContentElementDataIterator iterator) noexcept -> ara::core::Result< void >;
HasError 函数

Returns if the content contains an error.

auto HasError () const noexcept -> ara::core::Result< void >;
PushBack 函数 6

Pushes back a DiagnosticSovdContentElementData with signed int as primitive type. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

重载 PushBack 6
auto PushBack (std::int64_t content_element) noexcept -> ara::core::Result< void >; SWS_DM_02241
auto PushBack (std::uint64_t content_element) noexcept -> ara::core::Result< void >; SWS_DM_02242
auto PushBack (double content_element) noexcept -> ara::core::Result< void >; SWS_DM_02243
auto PushBack (bool content_element) noexcept -> ara::core::Result< void >; SWS_DM_02244
auto PushBack (ara::core::StringView content_element) noexcept -> ara::core::Result< void >; SWS_DM_02245
auto PushBack (DiagnosticSovdContentElementData content_element) noexcept -> void; SWS_DM_02246
Reserve 函数

Reserves the capacity of the DiagnosticSovdArrayContentElementData.

auto Reserve (std::size_t capacity) noexcept -> void;
SetError 函数

Sets the array content to be erroneous.

void SetError (ara::core::ErrorCode error_code) noexcept;
Size 函数

Returns the size of the Array content element. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

auto Size () const noexcept -> std::size_t;

运算符

operator[] 函数 2

Access the content element with specified index of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

重载 [] 2
auto operator[] (std::size_t index) noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContentElementData > >; DIRECTION NOT index -- DEFINED SWS_DM_02234
auto operator[] (std::size_t index) const noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData const > >; DIRECTION NOT index -- DEFINED SWS_DM_02235

方法文档

函数 Begin [SWS_DM_02236] Upstream: RS_Diag_04260

auto Begin () noexcept -> DiagnosticSovdArrayContentElementData Iterator;

Returns the begin operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdArrayContentElementDataIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02236
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02236@rel:R25-11#21afca45
Content hash
21afca45
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02236
Status: valid/unmigrated Version: rel:R25-11#56ce84c1 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_02236@rel:R25-11#56ce84c1
Point-in-Time History:
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

函数 CBegin [SWS_DM_02238] Upstream: RS_Diag_04260

auto CBegin () noexcept -> DiagnosticSovdArrayContentElementDataConst Iterator;

Returns the begin operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdArrayContentElementDataConstIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02238
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02238@rel:R25-11#f2f34baa
Content hash
f2f34baa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02238
Status: valid/unmigrated Version: rel:R25-11#66e073bc 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_02238@rel:R25-11#66e073bc
Point-in-Time History:
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

函数 CEnd [SWS_DM_02239] Upstream: RS_Diag_04260

auto CEnd () noexcept -> DiagnosticSovdArrayContentElementDataConst Iterator;

Returns the end operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdArrayContentElementDataConstIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02239
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02239@rel:R25-11#b048db11
Content hash
b048db11
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02239
Status: valid/unmigrated Version: rel:R25-11#97f1019f 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_02239@rel:R25-11#97f1019f
Point-in-Time History:
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

函数 Capacity [SWS_DM_02231] Upstream: RS_Diag_04260

auto Capacity () const noexcept -> std::size_t;

Returns the capacity of the Array content element. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
std::size_tThe capacity of the ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02231
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02231@rel:R25-11#4b7b777f
Content hash
4b7b777f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02231
Status: valid/unmigrated Version: rel:R25-11#1915d2ab 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_02231@rel:R25-11#1915d2ab
Point-in-Time History:
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

函数 Clear [SWS_DM_02233] Upstream: RS_Diag_04260

auto Clear () noexcept -> void;

Clears the Array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6da40b1d207a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::diag::DiagnosticSovdArrayContentElementDataView 的成员函数 Clear 清空 SOVD 数组元素([SWS_DM_02233])的全部内容。该调用通过头文件 #include "ara/diag/diagnostic_sovd_content_element_data.h" 提供。该方法的签名形式为 auto Clear () noexcept -> void;。它同步工作,不接受任何参数,并且不提供返回值([SWS_DM_02233])。

错误处理与边界条件

根据规范,该函数被定义为异常安全(exception safe)并带有说明符 noexcept([SWS_DM_02233])。它既不返回错误码,也不返回 ara::core::Result。作为约束性要求,被引用的 DiagnosticSovdContentElementData 必须为类型 ArrayContentElementData([SWS_DM_02233])。由于不发出任何错误信号,视图类在构造时想必就已确保符合此类型。 问题 Q-cdb2385e081c3456 (未决)

并发性

规范明确将该方法归类为线程安全(thread-safe)([SWS_DM_02233])。因此,可以无需外部同步从多个线程并发调用 Clear。

诊断子系统中的交互

在 SOVD 数据结构内部,该操作与其他清除方法密切相关:

  • DiagnosticSovdContentElementData::Clear ([SWS_DM_02338]) 构成了元素级别的通用对应项,但返回一个 ara::core::Result<void>,且在该对象不表示数组时失败。
  • DiagnosticSovdRecordContentElementDataView::Clear ([SWS_DM_02276]) 对类型为 RecordContentElementData 或 ContentData 的数据结构执行类似的清理。
  • 与此相对,在经典故障存储器上下文中,ara::diag::DTCInformation::Clear ([SWS_DM_00671]) 用于通过 ara::core::Future 异步清理 UDS DTC。

本使用说明是基于 AUTOSAR Adaptive 规范 R25-11 自动创建的。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02233
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02233@rel:R25-11#e702eb20
Content hash
e702eb20
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02233
Status: valid/unmigrated Version: rel:R25-11#cdb740a2 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_02233@rel:R25-11#cdb740a2
Point-in-Time History:
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

函数 Empty [SWS_DM_02232] Upstream: RS_Diag_04260

auto Empty () const noexcept -> bool;

Returns if the Array is empty. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
boolIf the array is empty

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

Record
AUTOSAR/AP/record/SWS_DM_02232
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02232@rel:R25-11#26087e1b
Content hash
26087e1b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02232
Status: valid/unmigrated Version: rel:R25-11#8de58061 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_02232@rel:R25-11#8de58061
Point-in-Time History:
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

函数 End [SWS_DM_02237] Upstream: RS_Diag_04260

auto End () noexcept -> DiagnosticSovdArrayContentElementDataIterator;

Returns the end operator of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdArrayContentElementDataIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02237
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02237@rel:R25-11#d45f8076
Content hash
d45f8076
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02237
Status: valid/unmigrated Version: rel:R25-11#b82b09ca 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_02237@rel:R25-11#b82b09ca
Point-in-Time History:
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

函数 Erase [SWS_DM_02247] Upstream: RS_Diag_04260

auto Erase (DiagnosticSovdArrayContentElementDataIterator iterator) noexcept -> ara::core::Result< void >;

Erases a content element from DiagnosticSovdContentElementData. The current element shall be of ArrayContentElementData

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 413be4c2f44c 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::diag::DiagnosticSovdArrayContentElementDataView 的方法 Erase 用于从诊断 SOVD 内容数据中移除元素([SWS_DM_02247]、SWS Diagnostics §8.60.5.1.1.8 “Erase”)。该函数接收一个 DiagnosticSovdArrayContentElementDataIterator 类型的迭代器作为参数,该迭代器指向要删除的元素。该调用作为同步操作执行;这推测源于其直接返回 ara::core::Result<void> 而未采用异步 Future 模式。 问题 Q-28de22574e525c78 (未决)

错误处理与边界条件

该函数声明为 noexcept,并具有 exception safe 以及 thread-safe 的属性([SWS_DM_02247])。如果删除失败,该方法会通过返回的 ara::core::Result 提供一个错误。当上级 DiagnosticSovdContentElementData 不属于所需类型 ArrayContentElementData 或因其他原因无法移除该元素时,就会出现这种情况([SWS_DM_02247])。

相互作用

在 SOVD 接口内部,该操作对应于底层数据容器 DiagnosticSovdContentElementData 用于数组元素的删除方法 Erase([SWS_DM_02352])。对于记录结构,存在 DiagnosticSovdRecordContentElementDataView::Erase 以及相应容器方法等类似的对等项([SWS_DM_02294]、[SWS_DM_02374])。

此使用说明基于 AUTOSAR 规范自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
iteratorThe iterator pointing to the element to erase

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData or the element couldn’t be erased

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

Record
AUTOSAR/AP/record/SWS_DM_02247
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02247@rel:R25-11#a28f4161
Content hash
a28f4161
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02247
Status: valid/unmigrated Version: rel:R25-11#e4ae2920 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_02247@rel:R25-11#e4ae2920
Point-in-Time History:
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

函数 HasError [SWS_DM_02228] Upstream: RS_Diag_04260

auto HasError () const noexcept -> ara::core::Result< void >;

Returns if the content contains an error.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result if it doesn’t contain an error, otherwise the ara::diag::DiagSovdErrc

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

Record
AUTOSAR/AP/record/SWS_DM_02228
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02228@rel:R25-11#156c5731
Content hash
156c5731
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02228
Status: valid/unmigrated Version: rel:R25-11#ff8a30d1 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_02228@rel:R25-11#ff8a30d1
Point-in-Time History:
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

函数 PushBack [SWS_DM_02241] Upstream: RS_Diag_04260

auto PushBack (std::int64_t content_element) noexcept -> ara::core::Result< void >;

Pushes back a DiagnosticSovdContentElementData with signed int as primitive type. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c37b8f1a434c 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

同步成员函数 PushBack 用于向诊断 SOVD 内容元素的数组结构追加类型为 std::int64_t 的带符号整数元素([SWS_DM_02241],AUTOSAR_AP_SWS_Diagnostics §8.60.5.1.1.14 “PushBack”)。它在头文件 ara/diag/diagnostic_sovd_content_element_data.h 中声明,并定义为 noexcept([SWS_DM_02241])。

对于成功的调用,适用以下先决条件和接口要求:

  • 调用上下文和前置条件:类 ara::diag::DiagnosticSovdArrayContentElementDataView 的目标对象必须代表一个 ArrayContentElementData,且要添加的原语类型必须与构造函数中定义的元素类型匹配([SWS_DM_02241])。
  • 返回值和错误处理:该函数返回一个 ara::core::Result<void>。如果由于底层元素不是类型 ArrayContentElementData 而导致检查失败,则结果包含错误([SWS_DM_02241])。Interpretation:与构造函数中指定的数据类型不符的情况可能同样会作为结果对象中的错误被报告。 问题 Q-d4715ecbd0f12d26 (未决)
  • 并发性:该函数被指定为 thread-safe 以及 exception-safe([SWS_DM_02241])。

该方法是 DiagnosticSovdArrayContentElementDataView 内部针对无符号整数([SWS_DM_02242])、浮点数([SWS_DM_02243])、布尔值([SWS_DM_02244])、字符串([SWS_DM_02245])以及完整数据元素([SWS_DM_02246])的类型化重载族的一部分。在数据类 DiagnosticSovdContentElementData 本身上也存在对应的方法([SWS_DM_02346])。

本段文本由 AI 基于 AUTOSAR R25-11 规范生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
content_elementThe content element to push back

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02241
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02241@rel:R25-11#5dadac97
Content hash
5dadac97
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02241
Status: valid/unmigrated Version: rel:R25-11#2b01b778 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_02241@rel:R25-11#2b01b778
Point-in-Time History:
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

函数 PushBack [SWS_DM_02242] Upstream: RS_Diag_04260

auto PushBack (std::uint64_t content_element) noexcept -> ara::core::Result< void >;

Pushes back a DiagnosticSovdContentElementData with unsigned int as primitive type. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c25599049c83 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::diag::DiagnosticSovdArrayContentElementDataView 的同步 API 函数 PushBack 将无符号 64 位整数值(std::uint64_t)作为原语数据元素追加到现有 SOVD 数组元素的末尾 [SWS_DM_02242]。通过头文件 ara/diag/diagnostic_sovd_content_element_data.h 包含 SWS Diagnostics §8.60.5.1.1.15 “PushBack”。成功调用的先决条件是当前元素代表一个 ArrayContentElementData,且要添加的值与构造函数中定义的元素类型匹配 [SWS_DM_02242]。

错误处理与并发

该函数通过 ara::core::Result<void> 指示其执行状态 [SWS_DM_02242]。如果目标对象不是类型 ArrayContentElementData,则该函数在结果中返回错误 [SWS_DM_02242]。由于未提及具体错误码(Interpretation:错误状态由 Result 通用指示),调用方必须求值 Result 对象。 问题 Q-95f2dd96e2681368 (未决)该方法被声明为 noexcept,保证异常安全性,并被明确指定为线程安全 [SWS_DM_02242]。

相互作用

该操作属于 DiagnosticSovdArrayContentElementDataView 内特定类型重载族,该族类似地通过 std::int64_t [SWS_DM_02241] 处理带符号整数、通过 double [SWS_DM_02243] 处理浮点数、通过 bool [SWS_DM_02244] 处理布尔值、通过 ara::core::StringView [SWS_DM_02245] 处理字符串,或处理类型为 DiagnosticSovdContentElementData [SWS_DM_02246] 的结构化元素。DiagnosticSovdContentElementData 也为 std::uint64_t 提供了同类实现 [SWS_DM_02347]。

本使用说明系自动生成,且完全基于来自 AUTOSAR R25-11 的规范数据。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
content_elementThe content element to push back

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02242
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02242@rel:R25-11#fbdf7ff8
Content hash
fbdf7ff8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02242
Status: valid/unmigrated Version: rel:R25-11#6c38af94 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_02242@rel:R25-11#6c38af94
Point-in-Time History:
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

函数 PushBack [SWS_DM_02243] Upstream: RS_Diag_04260

auto PushBack (double content_element) noexcept -> ara::core::Result< void >;

Pushes back a DiagnosticSovdContentElementData with double as primitive type. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 57dd45f522f9 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

同步方法 PushBack 通过头文件 #include "ara/diag/diagnostic_sovd_content_element_data.h" 在类 ara::diag::DiagnosticSovdArrayContentElementDataView 的作用域内提供([SWS_DM_02243],AUTOSAR_AP_SWS_Diagnostics §8.60.5.1.1.13 “PushBack”)。它将类型为 double 的原语浮点值作为内容元素追加到现有数组中([SWS_DM_02243])。唯一的传入参数是要添加的数据 content_element。

错误处理与边界条件

该函数返回一个 ara::core::Result<void>([SWS_DM_02243])。成功执行的前提是当前元素属于类型 ArrayContentElementData,且要添加的元素与 ArrayContentElementData 的构造函数中确定的类型相匹配([SWS_DM_02243])。如果目标不属于类型 ArrayContentElementData,则操作失败并在 Result 中返回错误([SWS_DM_02243])。

并发性

该函数被声明为 noexcept,确保异常安全性(exception safe),且根据规范是 thread-safe 的([SWS_DM_02243])。因此,多个线程可以并发调用该函数而无需外部同步。

相互作用

在 DiagnosticSovdArrayContentElementDataView 内部存在针对其他原语数据类型的同类型重载,其中包括 std::int64_t([SWS_DM_02241])、std::uint64_t([SWS_DM_02242])、bool([SWS_DM_02244])、ara::core::StringView([SWS_DM_02245])以及针对完整的 DiagnosticSovdContentElementData 对象([SWS_DM_02246])。在 DiagnosticSovdContentElementData 上也提供有类似的方法(例如 [SWS_DM_02348])。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
content_elementThe content element to push back

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02243
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02243@rel:R25-11#84e17c22
Content hash
84e17c22
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02243
Status: valid/unmigrated Version: rel:R25-11#70bbee19 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_02243@rel:R25-11#70bbee19
Point-in-Time History:
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

函数 PushBack [SWS_DM_02244] Upstream: RS_Diag_04260

auto PushBack (bool content_element) noexcept -> ara::core::Result< void >;

Pushes back a DiagnosticSovdContentElementData with boolean as primitive type. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1dba5c9a049d 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

成员函数 PushBack 用于将带有原语数据类型 bool 的 DiagnosticSovdContentElementData 追加到现有数组元素中([SWS_DM_02244])。该接口在头文件 ara/diag/diagnostic_sovd_content_element_data.h 内的类 ara::diag::DiagnosticSovdArrayContentElementDataView 中定义(AUTOSAR_AP_SWS_Diagnostics §8.60.5.1.1.12 “PushBack”)。作为输入参数,该同步函数接收布尔值 content_element([SWS_DM_02244])。

调用的先决条件是当前元素属于类型 ArrayContentElementData,且要添加的值与在数据结构构造函数中声明的类型一致([SWS_DM_02244])。如果目标元素不属于类型 ArrayContentElementData,则操作失败并返回带有相应错误的 ara::core::Result<void>;成功时结果包含一个空的 void([SWS_DM_02244])。

关于执行安全性,该方法被声明为 noexcept,并被指定为线程安全(thread-safe)和异常安全(exception safe)([SWS_DM_02244])。

该方法是 DiagnosticSovdArrayContentElementDataView 内部类型化 PushBack 重载族的一部分。除布尔值外,兄弟函数还涵盖整型类型如 std::int64_t([SWS_DM_02241])和 std::uint64_t([SWS_DM_02242])、浮点值 double([SWS_DM_02243])、字符串 ara::core::StringView([SWS_DM_02245])以及复合数据元素([SWS_DM_02246])的插入。在 DiagnosticSovdContentElementData 层级上也提供有对应的操作,其中包括布尔变体 [SWS_DM_02349]。

本使用说明系基于 AUTOSAR R25-11 规范自动创建。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
content_elementThe content element to push back

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02244
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02244@rel:R25-11#c07113a1
Content hash
c07113a1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02244
Status: valid/unmigrated Version: rel:R25-11#e4f7f1ae 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_02244@rel:R25-11#e4f7f1ae
Point-in-Time History:
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

函数 PushBack [SWS_DM_02245] Upstream: RS_Diag_04260

auto PushBack (ara::core::StringView content_element) noexcept -> ara::core::Result< void >;

Pushes back a DiagnosticSovdContentElementData with string as primitive type. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 265380479cb5 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::diag::DiagnosticSovdArrayContentElementDataView 的同步成员函数 PushBack([SWS_DM_02245],定义在 SWS Diagnostics §8.60.5.1.1.11 “PushBack” 中)向诊断 SOVD 数组追加一个具有基本类型字符串的新元素。为此必须包含头文件 ara/diag/diagnostic_sovd_content_element_data.h。该函数通过类型为 ara::core::StringView 的参数 content_element 接收要添加的元素。

错误处理

ara::core::Result<void> 作为返回类型。如果当前对象不是类型 ArrayContentElementData,或者传入元素的类型与 ArrayContentElementData 的构造函数中指定的元素类型不匹配([SWS_DM_02245]),则在结果对象中返回错误。

并发性与限制

该函数使用说明符 noexcept 声明。它提供有保证的异常安全性(exception safe),并被指定为完全线程安全(thread-safe)([SWS_DM_02245])。

相互作用

该操作属于一组重载方法。在 DiagnosticSovdArrayContentElementDataView 内部,还存在针对标量类型如 std::int64_t([SWS_DM_02241])、std::uint64_t([SWS_DM_02242])、double([SWS_DM_02243])和 bool([SWS_DM_02244])以及针对类型为 DiagnosticSovdContentElementData 的完整元素([SWS_DM_02246])的其他重载。此外,类 ara::diag::DiagnosticSovdContentElementData 也提供了用于字符串的相应 PushBack 接口([SWS_DM_02350])。

本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
content_elementThe content element to push back

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02245
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02245@rel:R25-11#44852ebf
Content hash
44852ebf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02245
Status: valid/unmigrated Version: rel:R25-11#347a6a2d 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_02245@rel:R25-11#347a6a2d
Point-in-Time History:
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

函数 PushBack [SWS_DM_02246] Upstream: RS_Diag_04260

auto PushBack (DiagnosticSovdContentElementData content_element) noexcept -> void;

Pushes back a DiagnosticSovdContentElementData. The current element shall be of ArrayContentElementData and the element to add of the specified in the ArrayContentElementData constructor

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 016f2212a535 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::diag::DiagnosticSovdArrayContentElementDataView(SWS Diagnostics §8.60.5.1.1.10 “PushBack”)的同步成员函数 PushBack 将类型为 DiagnosticSovdContentElementData 的元素追加到现有数组数据视图中([SWS_DM_02246])。作为传入参数,它按值接收要添加的对象 content_element,且没有返回值(void)。该声明通过头文件 ara/diag/diagnostic_sovd_content_element_data.h 提供。

并发性与前置条件

规范将该函数定义为异常安全(exception safe)、线程安全(thread-safe)并带有 noexcept 注解([SWS_DM_02246])。作为强制性前置条件,该操作要求当前元素属于类型 ArrayContentElementData,且要追加的元素与 ArrayContentElementData 构造函数中确定的类型完全一致([SWS_DM_02246])。

错误处理与交互

与返回 ara::core::Result<void> 以进行错误传递的原语类型重载(如 std::int64_t([SWS_DM_02241])、std::uint64_t([SWS_DM_02242])、double([SWS_DM_02243])、bool([SWS_DM_02244])或 ara::core::StringView([SWS_DM_02245]))不同,该方法返回 void。因此,预先检查类型兼容性可能属于调用方的责任,因为此接口上的运行时错误不通过 Result 类型来指示。 问题 Q-00739dff7d34e242 (未决)在 DiagnosticSovdContentElementData 上也定义了用于追加数据元素的等效方法([SWS_DM_02351])。

本段文本系自动生成。所有专业陈述均基于 AUTOSAR AP R25-11 规范。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
content_elementThe content element to push back

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02246
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02246@rel:R25-11#9a92d2d6
Content hash
9a92d2d6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02246
Status: valid/unmigrated Version: rel:R25-11#3365f583 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_02246@rel:R25-11#3365f583
Point-in-Time History:
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

函数 Reserve [SWS_DM_02240] Upstream: RS_Diag_04260

auto Reserve (std::size_t capacity) noexcept -> void;

Reserves the capacity of the DiagnosticSovdArrayContentElementData.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b3494a8080d3 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::diag::DiagnosticSovdArrayContentElementDataView 的同步方法 Reserve 用于为数组数据元素预先分配存储容量([SWS_DM_02240]、SWS Diagnostics §8.60.5.1.1.16 “Reserve”)。它通过头文件 #include "ara/diag/diagnostic_sovd_content_element_data.h" 提供,并接受类型为 std::size_t 的参数 capacity,该参数确定了底层 DiagnosticSovdArrayContentElementData 要提供的容量([SWS_DM_02240])。不返回任何返回值([SWS_DM_02240])。

在错误处理方面,该函数声明为异常安全(exception safe)以及 noexcept([SWS_DM_02240])。它既不通过 ara::core::Result 使用错误码,也不使用 C++ 异常。解释:在内存不足的情况下,由于调用方没有可用的错误通道,分配想必会在内部失败或导致程序中止。 问题 Q-348805197c004eea (未决)

对于并发性,该操作被显式指定为线程安全(thread-safe)([SWS_DM_02240])。因此,可以无需外部锁定从并行线程进行调用。

在整个系统中,该接口补充了相关的预留功能:虽然 DiagnosticSovdRecordContentElementDataView::Reserve 同样负责记录数据结构([SWS_DM_02283]、SWS Diagnostics §8.60.11.1.1.20 “Reserve”),但通用基类函数 DiagnosticSovdContentElementData::Reserve 会返回一个 ara::core::Result<void>,以便在元素类型错误时报告错误([SWS_DM_02345]、SWS Diagnostics §8.60.6.1.2.55 “Reserve”)。与非线程安全的内存预留 DiagnosticServiceDynamicAccessList::Reserve([SWS_DM_01163]、SWS Diagnostics §8.13.1.1.3.3 “Reserve”)不同,此视图方法直接且并发地作用于 SOVD 数组元素。

此文本由 AI 生成,用作参考指引。引用的 AUTOSAR 规范具有权威性。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
capacityThe capacity

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02240
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02240@rel:R25-11#ea274356
Content hash
ea274356
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02240
Status: valid/unmigrated Version: rel:R25-11#e59ab4fc 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_02240@rel:R25-11#e59ab4fc
Point-in-Time History:
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

函数 SetError [SWS_DM_02229] Upstream: RS_Diag_04260

void SetError (ara::core::ErrorCode error_code) noexcept;

Sets the array content to be erroneous.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
error_codeThe error to set

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02229
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02229@rel:R25-11#21c53bc8
Content hash
21c53bc8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02229
Status: valid/unmigrated Version: rel:R25-11#911c6721 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_02229@rel:R25-11#911c6721
Point-in-Time History:
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

函数 Size [SWS_DM_02230] Upstream: RS_Diag_04260

auto Size () const noexcept -> std::size_t;

Returns the size of the Array content element. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
std::size_tThe size of the ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02230
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02230@rel:R25-11#adc6b52b
Content hash
adc6b52b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02230
Status: valid/unmigrated Version: rel:R25-11#2ae5c195 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_02230@rel:R25-11#2ae5c195
Point-in-Time History:
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_DM_02234] Upstream: RS_Diag_04260

auto operator[] (std::size_t index) noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContentElementData > >; DIRECTION NOT           index                      -- DEFINED

Access the content element with specified index of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::reference_wrapper<DiagnosticSovdContentElementData > >reference to the content element or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02234
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02234@rel:R25-11#7c1efec9
Content hash
7c1efec9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02234
Status: valid/unmigrated Version: rel:R25-11#e024a1fe 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_02234@rel:R25-11#e024a1fe
Point-in-Time History:
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_DM_02235] Upstream: RS_Diag_04260

auto operator[] (std::size_t index) const noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData const > >; DIRECTION NOT           index                      -- DEFINED

Access the content element with specified index of an array. This DiagnosticSovdContentElementData shall be of type ArrayContentElementData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::reference_wrapper<DiagnosticSovdContentElementData const > >reference to the content element or an error if DiagnosticSovdContentElementData is not of type ArrayContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02235
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02235@rel:R25-11#ec91e1f7
Content hash
ec91e1f7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02235
Status: valid/unmigrated Version: rel:R25-11#099c9291 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_02235@rel:R25-11#099c9291
Point-in-Time History:
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