DEENESPTFRRUARHIKOZHNL

class ara::diag::DiagnosticSovdRecordContentElementDataView

[SWS_DM_02270] Upstream: RS_Diag_04260

class DiagnosticSovdRecordContentElementDataView {...};

View on a DiagnosticSovdContentElementData with Record type.

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

User GuideAI-GENERATED

Provides a structured view for key-based management and retrieval of SOVD diagnostic records.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 23c95a966eb0 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Provides a structured view for key-based management and retrieval of SOVD diagnostic records.

The class provides a structured view of SOVD records of type RecordContentElementData for Adaptive Platform Diagnostics (SWS Diagnostics §8.60.11 “Class: DiagnosticSovdRecordContentElementDataView”). It enables key-based adding, reading, and managing of primitive as well as complex diagnostic elements via thread-safe methods such as Add or operator[] ([SWS_DM_02288]). A prerequisite for all operations is that the underlying data element is of the required record type, as calls otherwise abort with an error in the return Result.

Context

The class ara::diag::DiagnosticSovdRecordContentElementDataView acts in the context of Service-Oriented Vehicle Diagnostics (SOVD) as a structured view (View) on a diagnostic data element of type RecordContentElementData or ContentData (SWS Diagnostics §8.60.11 “Class: DiagnosticSovdRecordContentElementDataView”, [SWS_DM_02270]). It enables diagnostic applications and the diagnostic runtime system to create, read, and modify field-based records consisting of key-value pairs ([SWS_DM_02288]). The interaction partners are, on the one hand, the diagnostic service implementations that provide or consume diagnostic data and, on the other hand, the underlying generic container objects of type DiagnosticSovdContentElementData. Via standardized interfaces, the view decouples the application-specific manipulation from the physical storage form of the diagnostic content.

Lifecycle

According to its purpose as a view, the instance presumably holds only a reference to an existing data object of type DiagnosticSovdContentElementData (Interpretation). Question Q-012bdd3d2b3a7ec4 (open) It follows that the lifetime of the referenced record must strictly encompass the existence of the view in order to avoid dangling references. All declared methods of the class are designed to be thread-safe (thread-safe) and exception-safe (exception safe) according to the specification ([SWS_DM_02273], [SWS_DM_02288]). The lifecycle of the contained data elements within the record can be dynamically managed: Existing elements can be completely removed via Clear ([SWS_DM_02276]), deleted specifically via Remove by their key ([SWS_DM_02287]), or removed from the container via an iterator using Erase ([SWS_DM_02294]).

Usage Path

A typical usage flow comprises preparing storage, adding elements, navigating, and reading fields:

Sequence of record processing via the viewApplicationRecordViewContentElementReserve(capacity)Add(key, value)Insert elementConfirmationResult<void>operator[](key)Resolve referenceReferenz bereitstellenResult<reference_wrapper>HasError()Result<void>

Sequence diagram: Typical flow when populating and reading an SOVD record element. Sources: [SWS_DM_02283], [SWS_DM_02288], [SWS_DM_02277], [SWS_DM_02271].

Error Scenarios

Operations on the record are subject to strict preconditions regarding container type and key validity:

  • Type conflicts: All access, insertion, and deletion methods require the underlying element to be of type RecordContentElementData or ContentData. Otherwise, operations such as Add ([SWS_DM_02288]), operator[] ([SWS_DM_02277]), HasContentElement ([SWS_DM_02284]), and Remove ([SWS_DM_02287]) fail and return a ara::core::Result with an error state.
  • Keys not found: An access via operator[] or a deletion via Remove returns an error if the requested key does not exist in the record ([SWS_DM_02277], [SWS_DM_02287]).
  • Invalid iterators upon deletion: Deletion by iterator via Erase returns the error code DiagErrc::kInvalidArgument in the event of invalid parameters or faulty data binding ([SWS_DM_02294]).
  • Explicit error handling: In addition to method-specific errors, the overall state of the record can be explicitly marked as faulty with a ara::core::ErrorCode via SetError ([SWS_DM_02272]). Callers can query the presence of an error via HasError, which returns a corresponding ara::diag::DiagSovdErrc in the event of an error ([SWS_DM_02271]).

This guide was generated by an AI system based on the AUTOSAR AP R25-11 specification.

Member map

Class diagram

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

G nara__diag__DiagnosticSovdRecordContentElementDataView16 DiagnosticSovdRecordContentElementDataView + Add() + Begin() + CBegin() + CEnd() + Capacity() + Clear() + Empty() + End() + Erase() + Find() + HasContentElement() + HasError() + Remove() + Reserve() + SetError() + Size() … 1 weitere

Detail view

Select an entry in the outline.

Methods

Add function 6

Adds an element with the specified key with signed integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

Overloads Add 6
auto Add (ara::core::StringView key, std::int64_t content_element) noexcept -> ara::core::Result< void >; SWS_DM_02288
auto Add (ara::core::StringView key, std::uint64_t content_element) noexcept -> ara::core::Result< void >; SWS_DM_02289
auto Add (ara::core::StringView key, double content_element) noexcept -> ara::core::Result< void >; SWS_DM_02290
auto Add (ara::core::StringView key, bool content_element) noexcept -> ara::core::Result< void >; SWS_DM_02291
auto Add (ara::core::StringView key, ara::core::StringView content_ element) noexcept -> ara::core::Result< void >; SWS_DM_02292
auto Add (ara::core::StringView key, DiagnosticSovdContentElementData content_element) noexcept -> ara::core::Result< void >; SWS_DM_02293
Begin function

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Begin () noexcept -> DiagnosticSovdRecordContentElementData Iterator;
Capacity function

Returns the capacity of the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto CBegin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
CEnd function

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto CEnd () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
Clear function

Removes all the content element in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Clear () noexcept -> void;
Empty function

Returns if the RecordContentElementData is empty. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Empty () const noexcept -> bool;
End function

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto End () noexcept -> DiagnosticSovdRecordContentElementData Iterator;
Erase function

Erases a content element from DiagnosticSovdRecordContentElementData. The current element shall be of RecordContentElementData or ContentData

auto Erase (DiagnosticSovdRecordContentElementDataIterator iterator) noexcept -> ara::core::Result< void >;
Find function 2

Find an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Overloads Find 2
auto Find (ara::core::StringView key) noexcept -> DiagnosticSovdRecord ContentElementDataIterator; SWS_DM_02285
auto Find (ara::core::StringView key) const noexcept -> DiagnosticSovd RecordContentElementDataConstIterator; SWS_DM_02286

Returns if the RecordContentElementData contains an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto HasContentElement (ara::core::StringView key) const noexcept -> ara::core::Result< bool >;
HasError function

Returns if the content contains an error.

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

Removes an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Remove (ara::core::StringView key) noexcept -> ara::core::Result< bool >;
Reserve function

Reserves the capacity of the RecordContentElementData.

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

Sets the content to be erroneous.

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

Returns the count of elements in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Operators

operator[] function 2

Access the content element with specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Overloads [] 2
auto operator[] (ara::core::StringView key) noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData > >; SWS_DM_02277
auto operator[] (ara::core::StringView key) const noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData const > >; SWS_DM_02278

Method documentation

function Add [SWS_DM_02288] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, std::int64_t content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with signed integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 50e9ae94ca49 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous function [SWS_DM_02288] inserts a signed integer value (std::int64_t) under the specified key key (ara::core::StringView) into an SOVD data structure. It is declared as a method of class ara::diag::DiagnosticSovdRecordContentElementDataView and included via header ara/diag/diagnostic_sovd_content_element_data.h.

Prerequisites and error handling

According to [SWS_DM_02288], the underlying DiagnosticSovdContentElementData object must be of type RecordContentElementData or ContentData, while the element to be added must not itself be a ContentData. The function is defined as noexcept and returns a ara::core::Result<void>. If the operation fails—such as when the target container has an incompatible type or the element cannot be added—the result contains an error code; interpretation: this is also likely to be the case for key collisions. Question Q-524c832a794559b7 (open)

Concurrency and Interaction

Execution is specified as thread-safe and exception safe [SWS_DM_02288]. Within the interface, type-identical overloads exist for unsigned integers ([SWS_DM_02289]), floating-point numbers ([SWS_DM_02290]), boolean values ([SWS_DM_02291]), strings ([SWS_DM_02292]), and nested data elements ([SWS_DM_02293]). The same method is also provided on the carrier class DiagnosticSovdContentElementData ([SWS_DM_02368]).

This usage note was generated automatically and is based on the AUTOSAR R25-11 specification.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02288
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02288@rel:R25-11#904cfff5
Content hash
904cfff5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02288
Status: valid/unmigrated Version: rel:R25-11#904cfff5 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_02288@rel:R25-11#904cfff5
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

function Add [SWS_DM_02289] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, std::uint64_t content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with unsigned integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 71f3685f0581 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function Add of class ara::diag::DiagnosticSovdRecordContentElementDataView is used to append an unsigned 64-bit integer value under a given key ([SWS_DM_02289]). It is used within the scope of the SOVD functionality of Diagnostic Management, which provides diagnostic communication according to ASAM SOVD (AUTOSAR_AP_SWS_Diagnostics §1.0 “Introduction and functional overview”, [SWS_DM_01369]).

Usage and Invocation

The method is included via header ara/diag/diagnostic_sovd_content_element_data.h. As parameters, it expects identifier key as ara::core::StringView as well as value to be added content_element as std::uint64_t ([SWS_DM_02289]). The call occurs synchronously, is specified as noexcept, and returns the result in the form of ara::core::Result<void>.

Error Handling and Boundary Conditions

  • Type conditions: The instantiated DiagnosticSovdContentElementData must be of either type RecordContentElementData or ContentData. In addition, the element to be added must not itself be of type ContentData ([SWS_DM_02289]).
  • Error behavior: If one of these type requirements is violated or the element cannot be added, the function returns an erroneous ara::core::Result ([SWS_DM_02289]). The specification does not name specific error codes at this point; presumably the result object returns a corresponding error code of the diagnostic domain. Question Q-ffca131eece93b35 (open)
  • Concurrency: The function is explicitly specified as thread-safe and exception safe ([SWS_DM_02289]).

Interaction

The method belongs to a family of typed overloads for capturing primitive and complex data elements, including variants for signed integers ([SWS_DM_02288]) and structured sub-elements ([SWS_DM_02293]). An equivalent interface is offered in parallel on class DiagnosticSovdContentElementData ([SWS_DM_02369]).

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02289
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02289@rel:R25-11#24f33415
Content hash
24f33415
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02289
Status: valid/unmigrated Version: rel:R25-11#24f33415 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_02289@rel:R25-11#24f33415
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

function Add [SWS_DM_02290] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, double content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with double as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: f0fc5f61ff31 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function Add of class ara::diag::DiagnosticSovdRecordContentElementDataView adds a primitive floating-point value of type double to a record under the specified key key [SWS_DM_02290]. The function serves to construct structured diagnostic data for the SOVD server functionality of Diagnostic Management [SWS_DM_01369].

The following type-related preconditions apply to execution [SWS_DM_02290]:

  • The target object must be of type RecordContentElementData or ContentData.
  • The element to be added must not itself be of type ContentData.

The method is declared as noexcept (exception safe) and specified as thread-safe for concurrent access [SWS_DM_02290]. If adding fails—for example because the object type is incompatible or the element cannot be inserted—an error is reported via the returned ara::core::Result<void> [SWS_DM_02290]. Interpretation: The exact cause of the error is likely mapped in the ara::core::ErrorCode of the Result object. Question Q-c987f75d785d3e90 (open)

In combination with the related overloads of Add, the method enables the structured population of SOVD records with integer values ([SWS_DM_02288], [SWS_DM_02289]), boolean values [SWS_DM_02291], character strings [SWS_DM_02292], or more complex item data [SWS_DM_02293].

This text was generated by an AI based on the AUTOSAR R25-11 specification.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02290
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02290@rel:R25-11#97a1f619
Content hash
97a1f619
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02290
Status: valid/unmigrated Version: rel:R25-11#97a1f619 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_02290@rel:R25-11#97a1f619
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

function Add [SWS_DM_02291] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, bool content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with boolean as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 852e73b24037 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The function Add of class ara::diag::DiagnosticSovdRecordContentElementDataView serves to add a boolean primitive value under a specified key to a SOVD data element [SWS_DM_02291]. The call is made via the header file ara/diag/diagnostic_sovd_content_element_data.h with the parameter name key of type ara::core::StringView and the payload value content_element of type bool [SWS_DM_02291]. Since the method immediately returns a ara::core::Result<void> and no asynchrony is specified, the operation is expected to execute synchronously. Question Q-a16b08bf68f8590b (open)

Error handling is performed via the returned ara::core::Result<void>. An error is returned if the underlying DiagnosticSovdContentElementData is neither of type RecordContentElementData nor ContentData, or if the element cannot be added [SWS_DM_02291]. Specific error codes are not detailed in the specification excerpt.

Regarding concurrency and execution safety, the method is classified as thread-safe and provides exception safety (noexcept) [SWS_DM_02291]. As a structural constraint, the specification requires that the element to be added must not itself be of type ContentData [SWS_DM_02291].

In the overall system, this method complements related overloads for signed integers [SWS_DM_02288], unsigned integers [SWS_DM_02289], floating-point numbers [SWS_DM_02290], strings [SWS_DM_02292], and subordinate content elements [SWS_DM_02293]. In addition, the analogous interface exists on class DiagnosticSovdContentElementData [SWS_DM_02371] in the context of the SOVD server functionality of Diagnostic Management [SWS_DM_01369].

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02291
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02291@rel:R25-11#ec2b8c58
Content hash
ec2b8c58
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02291
Status: valid/unmigrated Version: rel:R25-11#ec2b8c58 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_02291@rel:R25-11#ec2b8c58
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

function Add [SWS_DM_02292] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, ara::core::StringView content_ element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with string as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6e36a573fd27 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The synchronous method Add of class ara::diag::DiagnosticSovdRecordContentElementDataView serves to add an entry with a key and a primitive string value to a SOVD data element [SWS_DM_02292]. The call is made via the two parameters key and content_element, each passed as ara::core::StringView [SWS_DM_02292]. As a return value, the function provides a ara::core::Result<void> to signal the operation result [SWS_DM_02292].

Error handling

If adding fails, the method returns an error in the ara::core::Result [SWS_DM_02292]. This occurs if the underlying object is not of type RecordContentElementData or ContentData, or if the element cannot be added [SWS_DM_02292]. Interpretation: The specific error codes are likely determined by the implementation's associated error domain, as the specification does not explicitly list them on the function definition. Question Q-ba196615f0cd8fc8 (open)

Concurrency and Constraints

The operation is declared as thread-safe (thread-safe) as well as exception-safe (exception safe) and is annotated with noexcept [SWS_DM_02292]. An essential precondition is that the element passed as a parameter must not itself be of type ContentData [SWS_DM_02292].

Interaction

The function is part of AUTOSAR Diagnostic Management (DM) for implementing SOVD for the Adaptive Platform AUTOSAR_AP_SWS_Diagnostics §1 “Introduction and functional overview”, where the DM acts as a SOVD server [SWS_DM_01369]. For the same scope, analogous overloads of Add exist for signed integers [SWS_DM_02288], unsigned integers [SWS_DM_02289], floating-point numbers [SWS_DM_02290], boolean values [SWS_DM_02291], and complex data elements [SWS_DM_02293]. In addition, ara::diag::DiagnosticSovdContentElementData provides a corresponding string overload [SWS_DM_02372].

This text was generated by an AI and serves as an orienting usage aid.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02292
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02292@rel:R25-11#36c87700
Content hash
36c87700
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02292
Status: valid/unmigrated Version: rel:R25-11#36c87700 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_02292@rel:R25-11#36c87700
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

function Add [SWS_DM_02293] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, DiagnosticSovdContentElementData content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e37cd37f0d43 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous function Add of class ara::diag::DiagnosticSovdRecordContentElementDataView adds a nested element of type DiagnosticSovdContentElementData under the specified key key to a data element [SWS_DM_02293]. This serves the structured provision of diagnostic data within the scope of SOVD (Service-Oriented Vehicle Diagnostics), which is supported by Diagnostic Management (DM) on the Adaptive Platform ([SWS_DM_01369], AUTOSAR_AP_SWS_Diagnostics §1 “Introduction and functional overview”).

Mandatory type requirements must be observed during use:

For error handling, the function returns a ara::core::Result<void>. If the operation fails—for example because the type prerequisites are violated or the element cannot be inserted—the result contains an error [SWS_DM_02293]. The exact error coding is presumably based on domain-specific errors of diagnostic management. Question Q-56c929209d0c7358 (open) Regarding concurrency and safety, the method is declared as noexcept, is considered exception safe (exception safe), and is specified as thread-safe (thread-safe) for concurrent access [SWS_DM_02293].

This usage note was generated by an AI based on the AUTOSAR R25-11 specification.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02293
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02293@rel:R25-11#c72144cd
Content hash
c72144cd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02293
Status: valid/unmigrated Version: rel:R25-11#c72144cd 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_02293@rel:R25-11#c72144cd
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

function Begin [SWS_DM_02279] Upstream: RS_Diag_04260

auto Begin () noexcept -> DiagnosticSovdRecordContentElementData Iterator;

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02279
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02279@rel:R25-11#c5fa8675
Content hash
c5fa8675
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02279
Status: valid/unmigrated Version: rel:R25-11#c5fa8675 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_02279@rel:R25-11#c5fa8675
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

function CBegin [SWS_DM_02281] Upstream: RS_Diag_04260

auto CBegin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02281
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02281@rel:R25-11#146e5829
Content hash
146e5829
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02281
Status: valid/unmigrated Version: rel:R25-11#146e5829 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_02281@rel:R25-11#146e5829
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

function CEnd [SWS_DM_02282] Upstream: RS_Diag_04260

auto CEnd () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02282
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02282@rel:R25-11#e0709028
Content hash
e0709028
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02282
Status: valid/unmigrated Version: rel:R25-11#e0709028 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_02282@rel:R25-11#e0709028
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

function Capacity [SWS_DM_02274] Upstream: RS_Diag_04260

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

Returns the capacity of the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
std::size_tThe capacity of the RecordContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02274
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02274@rel:R25-11#fa9d250c
Content hash
fa9d250c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02274
Status: valid/unmigrated Version: rel:R25-11#fa9d250c 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_02274@rel:R25-11#fa9d250c
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

function Clear [SWS_DM_02276] Upstream: RS_Diag_04260

auto Clear () noexcept -> void;

Removes all the content element in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b8ae42318d33 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The method Clear of class ara::diag::DiagnosticSovdRecordContentElementDataView is used to synchronously remove all content elements from a RecordContentElementData [SWS_DM_02276]. The call is parameterless via header #include "ara/diag/diagnostic_sovd_content_element_data.h" and has no return value (void) [SWS_DM_02276].

As a prerequisite for execution, it is defined that the underlying data instance must be of type RecordContentElementData or ContentData [SWS_DM_02276]. Interpretation: Since the function is declared as noexcept and reports no error status, adherence to this data type is likely already ensured beforehand during creation of the view object. Question Q-93e43eee235a8f12 (open)

Error Handling and Concurrency

Regarding execution safety, the method is specified as exception safe and throws no exceptions due to the noexcept declaration [SWS_DM_02276]. The call is also explicitly classified as thread-safe, so concurrent accesses are permitted [SWS_DM_02276].

Interaction and Distinction

In the SOVD environment, this function is distinguished from the method Clear on DiagnosticSovdContentElementData [SWS_DM_02338], which is defined for array elements and returns a ara::core::Result<void>. Likewise, a functional distinction exists from the view method for arrays [SWS_DM_02233] as well as from the asynchronous clearing of DTCs via ara::diag::DTCInformation::Clear, which returns a ara::core::Future<void> and is not thread-safe [SWS_DM_00671].

This usage note was generated automatically based on the specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
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_02276
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02276@rel:R25-11#7b14c56c
Content hash
7b14c56c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02276
Status: valid/unmigrated Version: rel:R25-11#7b14c56c 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_02276@rel:R25-11#7b14c56c
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

function Empty [SWS_DM_02275] Upstream: RS_Diag_04260

auto Empty () const noexcept -> bool;

Returns if the RecordContentElementData is empty. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
boolIf the record is empty

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

Record
AUTOSAR/AP/record/SWS_DM_02275
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02275@rel:R25-11#e44b3c9e
Content hash
e44b3c9e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02275
Status: valid/unmigrated Version: rel:R25-11#e44b3c9e 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_02275@rel:R25-11#e44b3c9e
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

function End [SWS_DM_02280] Upstream: RS_Diag_04260

auto End () noexcept -> DiagnosticSovdRecordContentElementData Iterator;

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02280
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02280@rel:R25-11#030171ae
Content hash
030171ae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02280
Status: valid/unmigrated Version: rel:R25-11#030171ae 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_02280@rel:R25-11#030171ae
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

function Erase [SWS_DM_02294] Upstream: RS_Diag_04260

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

Erases a content element from DiagnosticSovdRecordContentElementData. The current element shall be of RecordContentElementData or ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e909dafa05b8 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function Erase of class ara::diag::DiagnosticSovdRecordContentElementDataView serves to remove a subordinate content element from a diagnostic data record ([SWS_DM_02294], AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.14 “Erase”). The declaration is provided via header #include "ara/diag/diagnostic_sovd_content_element_data.h" ([SWS_DM_02294]).

Usage and semantics: As an input parameter, the function accepts the iterator iterator of type DiagnosticSovdRecordContentElementDataIterator, which points to the concrete element to be deleted ([SWS_DM_02294]). Interpretation: Since the function is declared with noexcept and directly returns ara::core::Result<void> instead of a future object, the deletion is likely executed synchronously in the caller's thread. Question Q-148ae95c28910b16 (open) Upon successful execution, the method returns an empty ara::core::Result<void> ([SWS_DM_02294]).

Error handling: The operation fails if the affected data element is neither of type RecordContentElementData nor ContentData or the element could not be removed from the container ([SWS_DM_02294]). In these error cases, the function returns an error with error code DiagErrc::kInvalidArgument ([SWS_DM_02294]).

Concurrency and interaction: For the call, the interface is specified as thread-safe and exception safe ([SWS_DM_02294]). Functionally, the function corresponds to the array variant ara::diag::DiagnosticSovdArrayContentElementDataView::Erase ([SWS_DM_02247], AUTOSAR_AP_SWS_Diagnostics §8.60.5.1.1.8 “Erase”) and interacts with the elementary erasure operations of the container class DiagnosticSovdContentElementData for arrays ([SWS_DM_02352]) and records ([SWS_DM_02374]).

This text was generated by an AI and serves as guidance. Only the official AUTOSAR specifications are binding.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
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 RecordContentElementData or ContentData OR the element couldn’t be erased

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing

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

Record
AUTOSAR/AP/record/SWS_DM_02294
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02294@rel:R25-11#3ad27e08
Content hash
3ad27e08
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02294
Status: valid/unmigrated Version: rel:R25-11#3ad27e08 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_02294@rel:R25-11#3ad27e08
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

function Find [SWS_DM_02285] Upstream: RS_Diag_04260

auto Find (ara::core::StringView key) noexcept -> DiagnosticSovdRecord ContentElementDataIterator;

Find an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 771db16932a9 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function Find of the view class ara::diag::DiagnosticSovdRecordContentElementDataView serves to locate an element based on its key ([SWS_DM_02285], AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.15 “Find”). Parameter key of type ara::core::StringView is passed; as a result, the function returns a modifiable iterator of type DiagnosticSovdRecordContentElementDataIterator ([SWS_DM_02285]). A prerequisite for usage is that the associated DiagnosticSovdContentElementData is of type RecordContentElementData or ContentData ([SWS_DM_02285]).

Regarding error handling and concurrency, the function is declared as noexcept, is considered exception safe (exception safe), and is specified as thread-safe (thread-safe) ([SWS_DM_02285]). Since the return type is directly an iterator and not a ara::core::Result, the function reports no specific error codes; if the searched key does not exist, an end iterator is presumably returned. Question Q-a34054c9851517ae (open)

In interplay with related interfaces, a const overload exists on the same view class ([SWS_DM_02286], AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.16 “Find”), which returns a DiagnosticSovdRecordContentElementDataConstIterator. An analogous const interface is also offered by class DiagnosticSovdRecordContentElementDataConstView ([SWS_DM_02306], AUTOSAR_AP_SWS_Diagnostics §8.60.9.1.1.7 “Find”). In contrast, method Find on DiagnosticSovdContentElementData encapsulates its iterator in a ara::core::Result in order to represent invalid types or missing keys as errors ([SWS_DM_02365], [SWS_DM_02366], AUTOSAR_AP_SWS_Diagnostics §8.60.6.1.2.25 “Find”).

This usage note was created by an AI and is based on the AUTOSAR standard Release R25-11.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorA DiagnosticSovdRecordContentElementDataIterator

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

Record
AUTOSAR/AP/record/SWS_DM_02285
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02285@rel:R25-11#5753ce0a
Content hash
5753ce0a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02285
Status: valid/unmigrated Version: rel:R25-11#5753ce0a 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_02285@rel:R25-11#5753ce0a
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

function Find [SWS_DM_02286] Upstream: RS_Diag_04260

auto Find (ara::core::StringView key) const noexcept -> DiagnosticSovd RecordContentElementDataConstIterator;

Find an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 8f0823d35aa0 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function Find of class ara::diag::DiagnosticSovdRecordContentElementDataView serves for the read-only lookup of a data element based on its key ([SWS_DM_02286], AUTOSAR AP SWS Diagnostics §8.60.11.1.1.16 “Find”).

Usage and Parameters

The function accepts the sought key key as ara::core::StringView ([SWS_DM_02286]). A prerequisite for the call is that the instance is of diagnostic type RecordContentElementData or ContentData ([SWS_DM_02286]). As a return value, it synchronously delivers a constant iterator of type DiagnosticSovdRecordContentElementDataConstIterator ([SWS_DM_02286]). If no element matching the key exists, an iterator marking the end of the sequence is presumably returned (Interpretation). Question Q-41a1eba77c0bc236 (open)

Error Handling and Concurrency

The interface is declared with noexcept, guarantees exception safety (exception safe), and is specified as thread-safe (thread-safe) for concurrent access ([SWS_DM_02286]). Unlike the method on ara::diag::DiagnosticSovdContentElementData ([SWS_DM_02366]), there is no return via ara::core::Result, which is why error cases are not represented via error codes.

Interaction

For writing or modifying accesses to the same view, the non-constant overload [SWS_DM_02285] with a mutable iterator exists. For pure read-only views, class DiagnosticSovdRecordContentElementDataConstView provides an analogous Find function ([SWS_DM_02306]).

This usage note was generated automatically on the basis of specification requirements.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorA DiagnosticSovdRecordContentElementDataIterator

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

Record
AUTOSAR/AP/record/SWS_DM_02286
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02286@rel:R25-11#4bc892e6
Content hash
4bc892e6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02286
Status: valid/unmigrated Version: rel:R25-11#4bc892e6 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_02286@rel:R25-11#4bc892e6
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

function HasContentElement [SWS_DM_02284] Upstream: RS_Diag_04260

auto HasContentElement (ara::core::StringView key) const noexcept -> ara::core::Result< bool >;

Returns if the RecordContentElementData contains an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result< bool >boolean indicating if the elements is found or an error if Diagnostic SovdAbstractContentData is not of type RecordContentElement Data or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02284
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02284@rel:R25-11#5b0918b8
Content hash
5b0918b8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02284
Status: valid/unmigrated Version: rel:R25-11#5b0918b8 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_02284@rel:R25-11#5b0918b8
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

function HasError [SWS_DM_02271] 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::DiagnosticSovdRecordContentElementDataView
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_02271
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02271@rel:R25-11#ee74ea5a
Content hash
ee74ea5a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02271
Status: valid/unmigrated Version: rel:R25-11#ee74ea5a 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_02271@rel:R25-11#ee74ea5a
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

function Remove [SWS_DM_02287] Upstream: RS_Diag_04260

auto Remove (ara::core::StringView key) noexcept -> ara::core::Result< bool >;

Removes an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 1f7163c164e1 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The synchronous member function Remove of class ara::diag::DiagnosticSovdRecordContentElementDataView serves to remove an entry specifically based on its key [SWS_DM_02287]. It is defined in header ara/diag/diagnostic_sovd_content_element_data.h and processes the parameter key of type ara::core::StringView AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.19 “Remove”.

As return value, the function provides an ara::core::Result<bool> [SWS_DM_02287]:

  • In the success case, the contained boolean value signals whether the addressed element could actually be removed.
  • An error is reported via the ara::core::Result if the element is not of type RecordContentElementData or ContentData, or the specified key was not found [SWS_DM_02287].

Regarding concurrency and constraints, the function is specified as exception-safe (exception safe) and thread-safe (thread-safe) and declared with noexcept [SWS_DM_02287]. As a call precondition, the specification strictly requires that the underlying instance is of type RecordContentElementData or ContentData [SWS_DM_02287].

Interpretation: Functionally, the operation is likely to correspond to removal on the data class ara::diag::DiagnosticSovdContentElementData::Remove [SWS_DM_02367], since signature, parameters, and error scenarios are specified completely congruently AUTOSAR_AP_SWS_Diagnostics §8.60.6.1.2.54 “Remove”. Question Q-5a9ac29a9b5814be (open)

This usage note was created by an AI and summarizes the requirements of the specification.

Implementer's Guide to follow (complexity I1)

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

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result< bool >A boolean indicating if the element could be removed or an error if DiagnosticSovdContentElementData is not of type RecordContent ElementData or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02287
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02287@rel:R25-11#860cb787
Content hash
860cb787
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02287
Status: valid/unmigrated Version: rel:R25-11#860cb787 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_02287@rel:R25-11#860cb787
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

function Reserve [SWS_DM_02283] Upstream: RS_Diag_04260

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

Reserves the capacity of the RecordContentElementData.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e9efb8221afc Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method Reserve of class ara::diag::DiagnosticSovdRecordContentElementDataView ([SWS_DM_02283], AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.20 “Reserve”) synchronously reserves the desired storage capacity for RecordContentElementData. The call is provided via header #include "ara/diag/diagnostic_sovd_content_element_data.h" and accepts parameter capacity of type std::size_t. As return value, the function returns void.

The interface is declared as noexcept and specified as exception safe (“exception safe”) ([SWS_DM_02283]). Neither specific error codes nor error structures are returned. Interpretation: If allocation of the required capacity fails, the error is likely to be caught internally or lead to program termination due to the lack of a return channel such as ara::core::Result. Question Q-ddbaac36f8ed58ad (open)

Regarding concurrency, the function is defined as thread-safe (“thread-safe”) ([SWS_DM_02283]). It can therefore be called in parallel and without additional synchronization measures from multiple threads.

In conjunction with related interfaces, the array variant DiagnosticSovdArrayContentElementDataView::Reserve ([SWS_DM_02240]) behaves analogously. In contrast, DiagnosticSovdContentElementData::Reserve ([SWS_DM_02345]) returns a ara::core::Result<void> to report type conflicts. Function DiagnosticServiceDynamicAccessList::Reserve ([SWS_DM_01163]), on the other hand, serves for a worst-case pre-allocation for service patterns, expects two parameters, and is not thread-safe.

This text was generated by an AI and serves as guidance based on the specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
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_02283
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02283@rel:R25-11#6302b215
Content hash
6302b215
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02283
Status: valid/unmigrated Version: rel:R25-11#6302b215 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_02283@rel:R25-11#6302b215
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

function SetError [SWS_DM_02272] Upstream: RS_Diag_04260

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

Sets the content to be erroneous.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
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_02272
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02272@rel:R25-11#52f6abe5
Content hash
52f6abe5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02272
Status: valid/unmigrated Version: rel:R25-11#52f6abe5 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_02272@rel:R25-11#52f6abe5
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

function Size [SWS_DM_02273] Upstream: RS_Diag_04260

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

Returns the count of elements in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Rückgabewert

TypBeschreibung
std::size_tThe count of the RecordContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02273
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02273@rel:R25-11#914c329d
Content hash
914c329d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02273
Status: valid/unmigrated Version: rel:R25-11#914c329d 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_02273@rel:R25-11#914c329d
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

function operator[] [SWS_DM_02277] Upstream: RS_Diag_04260

auto operator[] (ara::core::StringView key) noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData > >;

Access the content element with specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result<std::reference_wrapper<DiagnosticSovdContentElementData > >reference to the content element or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02277
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02277@rel:R25-11#c829f6e0
Content hash
c829f6e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02277
Status: valid/unmigrated Version: rel:R25-11#c829f6e0 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_02277@rel:R25-11#c829f6e0
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

function operator[] [SWS_DM_02278] Upstream: RS_Diag_04260

auto operator[] (ara::core::StringView key) const noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData const > >;

Access the content element with specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

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

Parameter (in)

ParameterBeschreibung
keyThe key

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 RecordContentElementData or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02278
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02278@rel:R25-11#c7d8c978
Content hash
c7d8c978
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02278
Status: valid/unmigrated Version: rel:R25-11#c7d8c978 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_02278@rel:R25-11#c7d8c978
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