진단 SOVD 데이터의 레코드 요소에 대한 읽기 전용 스레드 안전 읽기 접근을 제공합니다.
AI 생성미검증모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 5db4cee55bd3출처열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문
진단 SOVD 데이터의 레코드 요소에 대한 읽기 전용 스레드 안전 읽기 접근을 제공합니다.
이 클래스는 진단 애플리케이션([SWS_DM_02295])에서 효율적이고 읽기 전용인 평가를 위해 구조화된 SOVD 레코드 내용 요소에 대한 불변 뷰를 제공합니다. 사용자는 결과 객체를 통해 오류 상태를 확인하거나, 키를 통해 레코드 세트 요소를 특정하여 주소 지정하거나, 상수 반복기([SWS_DM_02300])를 사용하여 전체 내용을 순차적으로 순회할 수 있습니다. 모든 인터페이스는 완전히 스레드 안전하며 예외 안전으로 선언되어 있지만, 참조된 내용 요소가 예상되는 레코드 타입과 일치해야 합니다.
주요 상호작용 대상에는 호출하는 진단 컴포넌트, DiagnosticSovdContentElementData 유형의 기반 객체, 그리고 상수 참조 래퍼 std::reference_wrapper<DiagnosticSovdContentElementData const> 또는 상수 반복자를 통해 제공되는 이를 통해 주소 지정되는 개별 요소들이 포함됩니다([SWS_DM_02300], [SWS_DM_02301]).
수명 주기
뷰 유형인 ara::diag::DiagnosticSovdRecordContentElementDataConstView은 기반이 되는 페이로드에 대한 자체적인 소유권(Ownership)을 갖지 않는 것으로 추정되며, 뷰의 유효성은 참조된 DiagnosticSovdContentElementData 객체의 수명에 종속될 것으로 보입니다. 질문 Q-4aca4f6f723cd3f5 (열림) View 인스턴스가 소멸되어도 뷰 기술자만 해제될 뿐, 기반 데이터 구조는 영향을 받지 않은 상태로 유지됩니다.
동시성과 관련하여, 클래스의 모든 멤버 함수는 스레드 안전(thread-safe) 및 예외 안전(noexcept)으로 명시적으로 지정되어 있습니다([SWS_DM_02296], [SWS_DM_02298]). 따라서 접근 중에 참조된 데이터 구조가 동시에 수정되지 않는 한, 여러 스레드가 동기화 없이 병렬로 인터페이스에 읽기 접근을 수행할 수 있습니다.
사용 경로
Record 요소를 평가하기 위한 일반적인 절차는 오류 검사, 차원 검사 및 요소 접근으로 나뉩니다.
오류 상태 검사: 처리 전에 HasError()을(를) 통해 콘텐츠에 오류가 없는지 검증합니다([SWS_DM_02296]).
지정된 요소 접근: 이름이 지정된 필드에 접근하기 전에 HasContentElement()을(를) 사용하여 키의 존재 여부를 확인할 수 있습니다([SWS_DM_02305]). 그런 다음 ara::core::StringView을(를) 전달하여 operator[]을(를) 통해 임의 접근이 수행되며, 이는 하위 요소에 대한 참조를 반환합니다([SWS_DM_02300]). 또는 Find()이(가) 검색된 요소에 대한 반복자를 반환합니다([SWS_DM_02306]).
이 클래스는 오류 처리를 위해 C++ 예외 대신 반환 유형 ara::core::Result을(를) 사용합니다.
내부 오류 상태: 기반이 되는 SOVD 콘텐츠 요소에 오류가 있는 경우, HasError()은(는) 오류 코드 ara::diag::DiagSovdErrc을(를) 포함하는 ara::core::Result<void>을(를) 반환합니다([SWS_DM_02296]).
누락된 키 또는 유형 충돌:operator[]을(를) 통한 접근 또는 HasContentElement()을(를) 사용한 검사 시, DiagnosticSovdContentElementData이(가) RecordContentElementData 또는 ContentData 유형이 아니거나 지정된 키가 존재하지 않으면 반환값은 오류 Result를 제공합니다([SWS_DM_02300], [SWS_DM_02305]).
Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
auto Begin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
auto CBegin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
Returns if the RecordContentElementData contains an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
Returns the count of elements in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
auto Begin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
auto CBegin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
Returns if the RecordContentElementData contains an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
boolean indicating if the elements is found or an error if Diagnostic SovdContentElementData 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.
Returns the count of elements in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData
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.
gemini-3.8-flash-low· 2026-10-13 · 독일어 원문