DEENESPTFRRUARHIKOZHNL

클래스 ara::diag::DiagnosticSovdArrayContentElementDataConstIterator

[SWS_DM_02221] Upstream: RS_Diag_04260

class DiagnosticSovdArrayContentElementDataConstIterator {...};

Const iterator for a DiagnosticSovdArrayContentElementData.

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 · 온도: 제어 불가 · 프롬프트: 7db6b86aff46 출처 열린 질문 (3)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

진단 애플리케이션에서 SOVD 배열 요소를 읽기 전용으로 단계별 순회할 수 있도록 지원합니다.

클래스 ara::diag::DiagnosticSovdArrayContentElementDataConstIterator은 SOVD 진단 컨텍스트에서 배열 요소를 위한 읽기 전용 전진 반복자를 제공합니다([SWS_DM_02221]). 애플리케이션은 이를 사용하여 비교, 역참조 및 증감 연산자를 통해 DiagnosticSovdContentElementData 유형의 데이터 구조를 단계별로 순회합니다([SWS_DM_02222]). 모든 작업이 noexcept로 명시되어 있으므로, 잘못된 위치에서 정의되지 않은 동작을 방지하기 위해 반복 경계를 확인하는 것은 호출자의 책임입니다.

컨텍스트

클래스 ara::diag::DiagnosticSovdArrayContentElementDataConstIterator은 AUTOSAR Adaptive Platform([SWS_DM_02221], AUTOSAR_AP_SWS_Diagnostics §8.60.2 “Class: DiagnosticSovdArrayContentElementDataConstIterator”)의 진단 모듈(diag)의 일부입니다. 이는 Service-Oriented Vehicle Diagnostics(SOVD)에 대한 표준 요구사항을 충족하며 순차적 데이터 필드를 위한 상수 전진 반복자를 제공합니다. 주요 책임은 DiagnosticSovdContentElementData 유형의 개별 요소에 대한 읽기 전용 접근을 캡슐화하는 것입니다([SWS_DM_02222], [SWS_DM_02223]). 상호작용 대상으로는 기본 메모리 구조를 수정하지 않고 헤더 파일 ara/diag/diagnostic_sovd_content_element_data.h을 통해 SOVD 호환 배열 콘텐츠를 평가하는 진단 애플리케이션이 있습니다.

수명 주기

클래스 사양 [SWS_DM_02221]에는 공개 생성자가 나열되어 있지 않습니다. 따라서 반복자의 인스턴스화는 일반적으로 애플리케이션 소프트웨어 자체에 의해 수행되지 않고 상위 데이터 객체의 컨테이너 메서드에 의해 제공될 것으로 추정됩니다. 질문 Q-a2a94d90c92beb71 (열림) 생성된 후 반복자는 배열 시퀀스 내의 고정된 위치를 나타냅니다.

다음 위치로의 전환은 증가된 반복자 객체 자체에 대한 참조를 반환하는 전위 증가 연산자 operator++을 통해 수행됩니다([SWS_DM_02226]). 동시성과 관련하여 클래스의 모든 멤버 함수는 스레드 안전(thread-safe)으로 명시적으로 지정되어 있습니다([SWS_DM_02222]~[SWS_DM_02226]). 따라서 여러 스레드가 동일하거나 서로 다른 위치를 동시에 읽을 수 있습니다. 반복자 인스턴스가 operator++에 의해 수정 방식으로 전진하는 경우, 공유 사용 시 외부 동기화가 필요합니다. 참조된 페이로드의 수명은 이를 제공하는 데이터 컨테이너의 수명에 엄격하게 바인딩될 것으로 추정됩니다. 질문 Q-743ef89528de7a75 (열림)

사용 경로

일반적인 사용 경로는 컬렉션에 대한 상수 반복자의 전형적인 C++ 관용구를 따릅니다. 순회를 시작할 때 호출자는 끝 반복자와의 비교를 통해 불일치 연산자 operator!=([SWS_DM_02225]) 또는 일치 연산자 operator==([SWS_DM_02224])로 현재 위치의 유효성을 확인합니다. 반복자가 유효한 범위 내에 있으면 애플리케이션은 해당 요소를 읽기 위해 접근합니다:

  • 역참조 연산자 operator*([SWS_DM_02222])을 통해 상수 참조 DiagnosticSovdContentElementData const&가 반환됩니다.
  • 화살표 연산자 operator->([SWS_DM_02223])을 통해 상수 포인터 DiagnosticSovdContentElementData const*가 제공되어 멤버 메서드에 직접 접근할 수 있습니다.

그런 다음 호출자는 operator++을 사용하여 반복자를 한 위치 전진시키고([SWS_DM_02226]), 종료 상태에 도달할 때까지 위치 확인을 반복합니다.

읽기 전용 배열 반복 시퀀스애플리케이션IteratorElementDataUse Case: 반복 경계 검사operator!=(end)true (유효한 요소)Use Case: 읽기 전용 데이터 액세스operator*()Referenz ermittelnDiagnosticSovdContentElementData const&Use Case: Weiterschaltenoperator++()*this (inkrementierter Iterator)

시퀀스 다이어그램: SOVD 배열 요소를 단계별로 순회하는 일반적인 흐름. 출처: [SWS_DM_02222], [SWS_DM_02225], [SWS_DM_02226]

오류 시나리오

이 인터페이스는 특수 오류 코드나 ara::core::Result 형태의 상태 반환을 정의하지 않습니다. 모든 작업은 예외 안전(exception safe)으로 명시되어 있으며 지정자 noexcept가 부여되어 있습니다([SWS_DM_02222]~[SWS_DM_02226]). 실행 중에 C++ 예외가 발생하지 않습니다.

operator* 및 operator-> 호출을 위한 필수 사전 조건으로 반복자가 역참조 가능해야 합니다. 오류 처리 메커니즘이 없기 때문에 유효하지 않은 반복자나 끝 반복자를 역참조하면 정의되지 않은 동작이 발생할 것으로 추정됩니다. 질문 Q-9144a319e654f27a (열림) 마찬가지로 비교되는 두 반복자가 동일한 시퀀스에서 비롯되었는지 확인하는 것은 호출자의 책임입니다.

본 가이드는 AUTOSAR 사양 R25-11을 기반으로 AI 모델에 의해 생성되었습니다.

멤버 맵

클래스 다이어그램

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

G nara__diag__DiagnosticSovdArrayContentElementDataConstIterator518 DiagnosticSovdArrayContentElementDataConstIterator + operator!=() + operator*() + operator++() + operator->() + operator==()

상세 보기

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

연산자

operator!= 함수

Not equal operator.

auto operator!= (DiagnosticSovdArrayContentElementDataConstIterator const &other) noexcept -> bool;
operator* 함수

Dereference operator.

auto operator* () noexcept -> DiagnosticSovdContentElementData const &;
operator++ 함수

Increment operator.

auto operator++ () noexcept -> DiagnosticSovdArrayContentElementData ConstIterator &;
operator-> 함수

Dereference operator.

auto operator-> () noexcept -> DiagnosticSovdContentElementData const *;
operator== 함수

Equal operator.

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

메서드 문서

함수 operator!= [SWS_DM_02225] Upstream: RS_Diag_04260

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

Not equal operator.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdArrayContentElementDataConstIterator
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_02225
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02225@rel:R25-11#02a8222c
Content hash
02a8222c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02225
Status: valid/unmigrated Version: rel:R25-11#d81fc3aa 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_02225@rel:R25-11#d81fc3aa
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_02222] Upstream: RS_Diag_04260

auto operator* () noexcept -> DiagnosticSovdContentElementData const &;

Dereference operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdContentReturn a reference to the DiagnosticSovdContentElementData ElementData const

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

Record
AUTOSAR/AP/record/SWS_DM_02222
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02222@rel:R25-11#c64e35d0
Content hash
c64e35d0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02222
Status: valid/unmigrated Version: rel:R25-11#6ba06c2c 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_02222@rel:R25-11#6ba06c2c
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_02226] Upstream: RS_Diag_04260

auto operator++ () noexcept -> DiagnosticSovdArrayContentElementData ConstIterator &;

Increment operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdArrayContentElementDataConstIteratorReference to the incremented iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02226
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02226@rel:R25-11#4f9e0a09
Content hash
4f9e0a09
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02226
Status: valid/unmigrated Version: rel:R25-11#da77b20e 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_02226@rel:R25-11#da77b20e
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_02223] Upstream: RS_Diag_04260

auto operator-> () noexcept -> DiagnosticSovdContentElementData const *;

Dereference operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdContent Return a pointer to the DiagnosticSovdContentElementData ElementData const *

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

Record
AUTOSAR/AP/record/SWS_DM_02223
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02223@rel:R25-11#54bdcc12
Content hash
54bdcc12
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02223
Status: valid/unmigrated Version: rel:R25-11#54f084a2 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_02223@rel:R25-11#54f084a2
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_02224] Upstream: RS_Diag_04260

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

Equal operator.

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