DEENESPTFRRUARHIKOZHNL

클래스 ara::diag::DiagnosticSovdRecordContentElementDataConstIterator

[SWS_DM_02264] Upstream: RS_Diag_04260

class DiagnosticSovdRecordContentElementDataConstIterator {...};

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

진단 SOVD 레코드 내용 요소에 대한 읽기 전용, 스레드 안전 순차 접근을 제공합니다.

클래스 ara::diag::DiagnosticSovdRecordContentElementDataConstIterator은 [SWS_DM_02264]에 따라 SOVD 레코드 내용 요소를 읽기 전용으로 순회하기 위한 상수 전진 반복자 역할을 합니다. 일치 여부 확인, 전진 및 DiagnosticSovdContentElementDataWithKey에 대한 역참조 연산자를 제공합니다([SWS_DM_02265]). 모든 연산자가 예외 안전하며 noexcept에 따라 스레드 안전(thread-safe)으로 구현되어 있으므로 유효하지 않은 반복자를 역참조하지 않는 것은 호출자의 책임입니다.

컨텍스트

클래스 ara::diag::DiagnosticSovdRecordContentElementDataConstIterator은 AUTOSAR_AP_SWS_Diagnostics §8.60.8의 [SWS_DM_02264]에 의해 정의됩니다. AUTOSAR_AP_SWS_Diagnostics §8.60.8에 설명된 바와 같이 DiagnosticSovdRecordContentElementData 유형의 요소를 위한 상수 전진 또는 입력 반복자 역할을 합니다. 상호작용 대상으로는 SOVD 데이터 요소("Service-Oriented Vehicle Diagnostics") 컬렉션을 읽기 전용으로 순회하는 diag 모듈의 진단 애플리케이션과, 반복자가 역참조 중에 접근을 허용하는 DiagnosticSovdContentElementDataWithKey 유형의 참조 요소가 있습니다([SWS_DM_02265], [SWS_DM_02266]).

수명 주기

반복자의 라이프사이클은 일반적으로 SOVD 레코드 요소용 기본 데이터 구조의 인터페이스를 통해 반복자 인스턴스를 가져오는 것으로 시작됩니다(해석: 컨테이너에는 유효한 반복자 인스턴스를 제공하는 cbegin() 및 cend()과 같은 메서드가 있을 것으로 추정됨). 질문 Q-9c5e4d32ae82e7cf (열림) 동적 리소스 관리가 없는 순수 값 또는 포인터 래퍼이므로 반복자에는 명시적인 소멸 메커니즘이 없으며 복사하거나 이동할 수 있습니다. 사양은 반복자의 모든 작업에 대해 예외 안전성(exception safe) 및 완전한 스레드 안전성(thread-safe)을 보장합니다([SWS_DM_02265], [SWS_DM_02266], [SWS_DM_02267], [SWS_DM_02268], [SWS_DM_02269]). 동시성과 관련하여 이는 추가적인 동기화 조치 없이 동일한 반복자 또는 서로 독립적인 인스턴스에 대해 병렬 읽기 접근을 수행할 수 있음을 의미합니다.

사용 경로

일반적인 사용 경로에는 진단 처리 루틴 내에서 일련의 SOVD 요소 데이터를 반복적으로 순회하는 작업이 포함됩니다. 호출자는 먼저 불일치 연산자 operator!=([SWS_DM_02268]) 또는 일치 연산자 operator==([SWS_DM_02267])를 통해 시퀀스의 끝에 도달했는지 확인합니다. 반복자가 유효한 동안 애플리케이션은 참조된 요소를 읽기 위해 접근합니다. 역참조 연산자 operator*는 DiagnosticSovdContentElementDataWithKey에 대한 상수 참조를 반환하고([SWS_DM_02265]), 화살표 연산자 operator->은 상수 객체에 대한 포인터를 반환합니다([SWS_DM_02266]). 그런 다음 전위 증가 연산자 operator++는 반복자를 한 위치 전진시키고 증가된 반복자에 대한 참조를 반환합니다([SWS_DM_02269]).

DiagnosticSovdRecordContentElementDataConstIterator를 사용한 순회애플리케이션Iterator: DiagnosticSovdRecordContentElementDataConstIteratorElement: DiagnosticSovdContentElementDataWithKeyUse Case: 시퀀스 종료 검사operator!=(endIterator)bool (true = 요소가 여전히 존재함)loopsolange Iterator != endIteratorUse Case: 읽기 전용 데이터 액세스operator*() 또는 operator->()DiagnosticSovdContentElementDataWithKey const& / const*Datenfelder auslesenUse Case: Weiterschaltenoperator++()증가된 반복자에 대한 참조operator!=(endIterator)bool

시퀀스 다이어그램: const 반복자를 사용한 SOVD 레코드 내용 요소의 순차 순회의 일반적인 흐름. 출처: [SWS_DM_02265], [SWS_DM_02266], [SWS_DM_02267], [SWS_DM_02268], [SWS_DM_02269]

오류 시나리오

ara::diag::DiagnosticSovdRecordContentElementDataConstIterator의 모든 멤버 함수는 지정자 noexcept로 선언되어 있습니다([SWS_DM_02265], [SWS_DM_02266], [SWS_DM_02267], [SWS_DM_02268], [SWS_DM_02269]). operator*도, operator->도, 비교 연산자도 C++ 예외를 발생시키지 않으며 ara::core::Result 오류 구조를 반환하지 않습니다. operator*, operator-> 및 operator++의 오류 없는 호출을 위한 사전 조건은 반복자의 유효성입니다. 끝 반복자(Past-the-End)의 역참조 또는 전진은 정의되지 않은 동작을 초래할 것으로 추정됩니다(해석: 인터페이스 정의에는 유효하지 않은 역참조에 대한 런타임 확인이 포함되어 있지 않음). 따라서 사용자는 접근하기 전에 항상 끝 반복자에 대한 중단 비교가 수행되는지 확인해야 합니다. 질문 Q-e26c9aa50597bf18 (열림)

이 가이드는 AUTOSAR AP R25-11의 사양 요구사항만을 기반으로 합니다.

멤버 맵

클래스 다이어그램

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

G nara__diag__DiagnosticSovdRecordContentElementDataConstIterator644 DiagnosticSovdRecordContentElementDataConstIterator + DiagnosticSovdRecord() + operator*() + operator==()

상세 보기

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

메서드

Dereference operator.

오버로드 DiagnosticSovdRecord 3
auto operator-> () noexcept -> DiagnosticSovdContentElementDataWithKey const *; SWS_DM_02266
auto operator!= (DiagnosticSovdRecordContentElementDataConstIterator const &other) noexcept -> bool; SWS_DM_02268
auto operator++ () noexcept -> DiagnosticSovdRecordContentElementData ConstIterator &; SWS_DM_02269

연산자

operator* 함수

Dereference operator.

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

Equal operator.

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

메서드 문서

함수 DiagnosticSovdRecord [SWS_DM_02266] Upstream: RS_Diag_04260

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

Dereference operator.

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

사용

ara::diag::DiagnosticSovdRecordContentElementDataConstIterator 클래스([SWS_DM_02264])의 멤버 함수 operator->은(는) SOVD 데이터 요소에 대한 읽기 전용 접근을 위한 역참조 연산자 역할을 합니다([SWS_DM_02266], AUTOSAR_AP_SWS_Diagnostics §8.60.8.1.1.4 “operator->”). 호출은 헤더 ara/diag/diagnostic_sovd_content_element_data.h을(를) 통해 매개변수 없이 동기식으로 수행됩니다. 반환값으로 함수는 키가 포함된 참조 대상 요소 데이터에 대한 DiagnosticSovdContentElementDataWithKey const * 타입의 상수 포인터를 제공합니다([SWS_DM_02266]).

오류 처리

이 함수는 noexcept(으)로 선언되어 있으며 사양상 예외 안전(exception safe)으로 분류됩니다([SWS_DM_02266]). C++ 예외가 발생하지 않으며 ara::core::Result을(를) 통해 오류 코드가 보고되지도 않습니다. 해석: 초기화되지 않았거나 유효하지 않거나 이미 범위 끝에 도달한 반복자를 역참조하면 정의되지 않은 동작이 발생할 수 있으므로 호출자는 연산자 호출 전에 유효성을 확보해야 합니다. 질문 Q-4c149c4fb2d68f33 (열림)

동시성 및 제약사항

사양에 따르면 접근은 스레드 안전(thread-safe)한 것으로 정의됩니다([SWS_DM_02266]). 이 연산은 기본 요소에 대한 읽기 접근만을 부여하므로, 여러 스레드가 상수 반복자를 통해 동일한 데이터를 동시에 역참조할 수 있습니다.

상호 작용

이 함수는 반복자 및 진단 데이터 구조의 다른 인터페이스와 긴밀하게 작동합니다:

  • 탐색 및 비교: 레코드 콘텐츠를 순회할 때 반복자는 일반적으로 operator++([SWS_DM_02269])을(를) 통해 다음으로 이동하며 operator!=([SWS_DM_02268])을(를) 통해 끝 반복자와 비교됩니다.
  • 범위 경계: 연관된 상수 범위 끝은 DiagnosticSovdContentElementData 클래스의 RecordCEnd([SWS_DM_02362])을(를) 통해 확인할 수 있습니다.
  • 비상수 대안: 수정 접근을 위해 DiagnosticSovdRecordContentElementDataIterator 클래스([SWS_DM_02260])의 대응 항목인 operator->을(를) 사용할 수 있으며, 이는 Find([SWS_DM_02285]) 또는 RecordEnd([SWS_DM_02360])와 같은 함수를 통해 가져올 수 있습니다.

이 사용 지침은 AUTOSAR 사양 R25-11을 바탕으로 AI에 의해 생성되었습니다.

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

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

Rückgabewert

TypBeschreibung
DiagnosticSovdContentElementDataWithKeyReturn a pointer to the DiagnosticSovdAbstractContentDataWith Key const *

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

Record
AUTOSAR/AP/record/SWS_DM_02266
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02266@rel:R25-11#6c350b32
Content hash
6c350b32
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02266
Status: valid/unmigrated Version: rel:R25-11#4fa0d923 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_02266@rel:R25-11#4fa0d923
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_02268] Upstream: RS_Diag_04260

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

Not equal operator.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataConstIterator
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_02268
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02268@rel:R25-11#206105a5
Content hash
206105a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02268
Status: valid/unmigrated Version: rel:R25-11#069b7496 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_02268@rel:R25-11#069b7496
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_02269] Upstream: RS_Diag_04260

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

Increment operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorReference to the incremented iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02269
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02269@rel:R25-11#f494285e
Content hash
f494285e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02269
Status: valid/unmigrated Version: rel:R25-11#56e88cdf 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_02269@rel:R25-11#56e88cdf
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_02265] Upstream: RS_Diag_04260

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

Dereference operator.

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

Rückgabewert

TypBeschreibung
DiagnosticSovdContentElementDataWithKeyconstReturn 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_02265
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02265@rel:R25-11#d9e5e7a0
Content hash
d9e5e7a0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02265
Status: valid/unmigrated Version: rel:R25-11#3f32ca4d 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_02265@rel:R25-11#3f32ca4d
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_02267] Upstream: RS_Diag_04260

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

Equal operator.

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