DEENESPTFRRUARHIKOZHNL

클래스 ara::diag::DiagnosticSovdRecordContentElementDataIterator

[SWS_DM_02258] Upstream: RS_Diag_04260

class DiagnosticSovdRecordContentElementDataIterator {...};

Iterator for a DiagnosticSovdRecordContentElementData.

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

사용자 가이드AI 생성

SOVD 레코드 내 진단 데이터 요소를 순차적으로 순회하고 읽어오는 데 사용됩니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 656c1be3725e 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

SOVD 레코드 내 진단 데이터 요소를 순차적으로 순회하고 읽어오는 데 사용됩니다.

클래스 ara::diag::DiagnosticSovdRecordContentElementDataIterator은 SOVD 레코드의 진단 데이터 요소를 순차적으로 순회하기 위한 반복자 역할을 합니다([SWS_DM_02258]). 역참조 연산자를 통해 애플리케이션은 DiagnosticSovdContentElementDataWithKey 유형의 요소에 접근할 수 있으며, 전진은 증가 연산자를 통해 수행됩니다. 핵심적인 제약 조건으로서 모든 함수는 noexcept 및 스레드 안전으로 명시되어 있습니다([SWS_DM_02263]). 해석: 정의되지 않은 동작을 방지하기 위해 호출 애플리케이션은 각 접근 전에 시퀀스 끝에 도달했는지 독립적으로 확인해야 합니다. 질문 Q-819b2e03155473ad (열림)

컨텍스트

ara::diag::DiagnosticSovdRecordContentElementDataIterator 클래스는 AUTOSAR Adaptive Platform에서 SOVD(Service-Oriented Vehicle Diagnostics) 레코드의 데이터 요소를 위한 반복자(iterator)로 명세되어 있습니다([SWS_DM_02258], AUTOSAR_AP_SWS_Diagnostics §8.60.10 “Class: DiagnosticSovdRecordContentElementDataIterator”). 진단 하위 시스템 내에서 이 클래스는 SOVD 레코드의 구조화된 진단 데이터를 요소별로 순회하기 위한 표준화된 접근 인터페이스 역할을 합니다.

주요 상호작용 대상에는 레코드 데이터를 처리하는 요청 진단 애플리케이션과 진단 모듈의 기반 데이터 구조가 포함됩니다. 반복자는 역참조 연산자를 통해 이러한 데이터 요소에 대한 참조 또는 포인터를 선택적으로 제공함으로써 DiagnosticSovdContentElementDataWithKey 타입의 개별 데이터 요소에 대한 접근을 중개합니다([SWS_DM_02259], [SWS_DM_02260]).

수명 주기

반복자의 인스턴스는 일반적으로 SOVD 콘텐츠에 대한 조회 작업 중에 생성됩니다. 명세는 API 범위 내에서 반복자를 위한 별도의 공개 생성자를 정의하지 않으므로, 인스턴스는 주로 상위 컨테이너 또는 조회 함수에 의해 제공되고 값으로 복사될 것으로 보입니다. 질문 Q-e79bbdff728ef3f2 (열림) 반복자는 소유권을 가져오지 않고 기존 페이로드 데이터를 가리킵니다.

순회 프로세스 내의 수명 주기는 전진 단계와 위치 비교를 통해 제어됩니다. 전위 증가 연산자 operator++을 통해 반복자는 다음 데이터 요소로 진행됩니다([SWS_DM_02263]). 유효성 및 시퀀스 끝 도달 여부는 센티널 또는 끝 반복자에 대한 일치 및 불일치 연산자 operator==([SWS_DM_02261]) 및 operator!=([SWS_DM_02262])를 통해 확인됩니다.

동시성과 관련하여 클래스의 모든 멤버 함수는 명시적으로 스레드 안전한 것으로 명세되어 있습니다([SWS_DM_02259], [SWS_DM_02260], [SWS_DM_02261], [SWS_DM_02262], [SWS_DM_02263]). 이를 통해 멀티스레딩 환경에서 분리된 반복자 인스턴스에 대한 병렬 읽기 접근이 허용됩니다.

사용 경로

SOVD 레코드 콘텐츠 평가의 전형적인 절차는 전통적인 C++ 전방 반복자(forward iterator) 패턴을 따릅니다:

  • 종료 조건 검사: 각 접근 전에 애플리케이션은 operator!=을 사용하여 현재 위치를 끝 반복자와 비교합니다([SWS_DM_02262]).
  • 요소 접근: 반복자가 유효한 요소를 가리키고 있는 경우, 애플리케이션은 operator*을 통해 참조로 DiagnosticSovdContentElementDataWithKey에 접근하거나([SWS_DM_02259]), 데이터 요소의 메서드 또는 필드를 직접 지정하기 위해 요소 접근 연산자 operator->을 사용합니다([SWS_DM_02260]).
  • 다음으로 진행: operator++을 통해 반복자가 다음 위치로 증가합니다([SWS_DM_02263]).
SOVD 레코드 데이터 요소에서 반복자 사용 시퀀스애플리케이션Iterator: DiagnosticSovdRecordContentElementDataIteratorElement: DiagnosticSovdContentElementDataWithKeyloopSolange it != endoperator!=(end)truealtDirektzugriff per Zeigeroperator->()DiagnosticSovdContentElementDataWithKey*Referenzzugriffoperator*()DiagnosticSovdContentElementDataWithKey&Nutzdaten lesen / auswertenoperator++()*this에 대한 참조

시퀀스 다이어그램: SOVD 레코드 데이터 요소 순회의 전형적인 절차. 출처: [SWS_DM_02259], [SWS_DM_02260], [SWS_DM_02262], [SWS_DM_02263].

오류 시나리오

반복자의 모든 명세된 연산은 예외 안전(exception safe)하며 noexcept으로 선언되어 있습니다([SWS_DM_02259], [SWS_DM_02260], [SWS_DM_02261], [SWS_DM_02262], [SWS_DM_02263]). 이는 정상 작동 시 예외가 발생하지 않으며 평가할 오류 코드가 발생하지 않음을 의미합니다.

해석: operator*, operator-> 및 operator++ 호출의 필수 전제 조건으로서, 반복자가 유효한 위치를 참조해야 하며 끝 반복자와 일치해서는 안 됩니다. 질문 (열림) C++ 표준 컨텍스트에서 유효하지 않은 반복자를 진행하거나 역참조하면 정의되지 않은 동작이 발생할 것으로 보입니다. 따라서 애플리케이션은 operator!= 또는 operator==를 사용하여 끝 도달 여부를 엄격히 확인해야 합니다([SWS_DM_02261], [SWS_DM_02262]).

이 클래스 가이드는 AUTOSAR Adaptive Platform R25-11 명세(diag 모듈)를 기반으로 하며 ara::diag::DiagnosticSovdRecordContentElementDataIterator에 대한 요구사항을 요약합니다.

멤버 맵

클래스 다이어그램

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

G nara__diag__DiagnosticSovdRecordContentElementDataIterator471 DiagnosticSovdRecordContentElementDataIterator + DiagnosticSovdRecord() + operator*() + operator==()

상세 보기

개요에서 항목을 선택하세요.

메서드

Dereference operator.

오버로드 DiagnosticSovdRecord 3
auto operator-> () noexcept -> DiagnosticSovdContentElementDataWithKey *; SWS_DM_02260
auto operator!= (DiagnosticSovdRecordContentElementDataIterator const &other) noexcept -> bool; SWS_DM_02262
auto operator++ () noexcept -> DiagnosticSovdRecordContentElementData Iterator &; SWS_DM_02263

연산자

operator* 함수

Dereference operator.

auto operator* () noexcept -> DiagnosticSovdContentElementDataWithKey &;
operator== 함수

Equal operator.

auto operator== (DiagnosticSovdRecordContentElementDataIterator const &other) noexcept -> bool;

메서드 문서

함수 DiagnosticSovdRecord [SWS_DM_02260] Upstream: RS_Diag_04260

auto operator-> () noexcept -> DiagnosticSovdContentElementDataWithKey *;

Dereference operator.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 76d5b17fb7d6 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용법 및 의미론

ara::diag::DiagnosticSovdRecordContentElementDataIterator 클래스의 역참조 연산자 operator->은(는) 주소 지정된 데이터 요소에 대한 동기식 멤버 접근에 사용됩니다([SWS_DM_02260]). 호출은 현재 요소를 가리키는 DiagnosticSovdContentElementDataWithKey* 타입의 포인터를 반환합니다([SWS_DM_02260]). 인터페이스는 헤더 ara/diag/diagnostic_sovd_content_element_data.h에 정의되어 있습니다([SWS_DM_02260]).

동시성 및 제약 조건

이 함수는 noexcept(으)로 지정되어 예외 안전성(exception safe)을 보장하며 스레드 안전(thread-safe)으로 명시되어 있습니다([SWS_DM_02260]). 이 멤버 함수에 대한 특정 오류 코드는 존재하지 않습니다. 해석: 유효하지 않은 반복자를 역참조하면 정의되지 않은 동작이 발생할 수 있으므로, 호출 전에 반복자는 유효한 데이터 요소를 가리켜야 하며 범위 끝에 해당해서는 안 됩니다. 질문 Q-735b580a0b2c8330 (열림)

상호 작용

반복자는 레코드 콘텐츠 처리 과정에서 다른 함수들과 함께 사용됩니다:

  • DiagnosticSovdRecordContentElementDataView에 대한 Find과(와) 같은 검색 작업을 통해 가져올 수 있습니다([SWS_DM_02285]).
  • 루프 제어는 일반적으로 RecordEnd의 끝 반복자([SWS_DM_02360])와의 비교 하에 접두사 증가 연산자 operator++([SWS_DM_02263]) 및 불일치 연산자 operator!=([SWS_DM_02262])를 통해 수행됩니다.
  • 읽기 전용 컨텍스트의 경우 DiagnosticSovdRecordContentElementDataConstIterator이(가) 제공되며, 이것의 operator->은(는) const DiagnosticSovdContentElementDataWithKey에 대한 포인터를 반환합니다([SWS_DM_02266]).

이 사용 지침은 자동으로 작성되었으며 AUTOSAR 사양을 기반으로 합니다.

구현자 가이드 준비 중 (복잡도 I2)

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

Rückgabewert

TypBeschreibung
DiagnosticSovdContent Return a pointer to the DiagnosticSovdAbstractContentDataWith ElementDataWithKey * Key

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

Record
AUTOSAR/AP/record/SWS_DM_02260
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02260@rel:R25-11#dfb4f92a
Content hash
dfb4f92a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02260
Status: valid/unmigrated Version: rel:R25-11#c2b0a45d Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_02260@rel:R25-11#c2b0a45d
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

함수 DiagnosticSovdRecord [SWS_DM_02262] Upstream: RS_Diag_04260

auto operator!= (DiagnosticSovdRecordContentElementDataIterator const &other) noexcept -> bool;

Not equal operator.

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

Parameter (in)

ParameterBeschreibung
otherThe other iterator to test equality with

Rückgabewert

TypBeschreibung
boolTrue if operator are equals, false otherwise

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

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

함수 DiagnosticSovdRecord [SWS_DM_02263] Upstream: RS_Diag_04260

auto operator++ () noexcept -> DiagnosticSovdRecordContentElementData Iterator &;

Increment operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorReference to the incremented iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02263
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02263@rel:R25-11#c7f8d0aa
Content hash
c7f8d0aa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02263
Status: valid/unmigrated Version: rel:R25-11#eceb251b 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_02263@rel:R25-11#eceb251b
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_02259] Upstream: RS_Diag_04260

auto operator* () noexcept -> DiagnosticSovdContentElementDataWithKey &;

Dereference operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdContentElementDataWithKeyReturn a view on the content element

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

Record
AUTOSAR/AP/record/SWS_DM_02259
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02259@rel:R25-11#06dea49d
Content hash
06dea49d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02259
Status: valid/unmigrated Version: rel:R25-11#0d7599c2 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_02259@rel:R25-11#0d7599c2
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_02261] Upstream: RS_Diag_04260

auto operator== (DiagnosticSovdRecordContentElementDataIterator const &other) noexcept -> bool;

Equal operator.

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

Parameter (in)

ParameterBeschreibung
otherThe other iterator to test equality with

Rückgabewert

TypBeschreibung
boolTrue if operator are equals, false otherwise

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

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