Diese Seite wurde vollständig KI-generiert auf Basis von SWS Safe Hardware Acceleration (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.
AI 생성미검증모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: d5d168d169f4출처열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문
버퍼 메모리 영역에 대한 타입화되고 제어된 읽기 및 쓰기 접근을 가능하게 합니다.
템플릿 클래스는 기본 데이터 버퍼의 할당된 메모리에 대한 타입화되고 제어된 접근을 가능하게 합니다. 인스턴스화는 인스턴스를 고유 포인터([AP_SWS_SHWA_00007])로 반환하는 정적 팩토리 메서드를 통해서만 독점적으로 수행됩니다. 런타임에 데이터는 타입 안전한 읽기 및 쓰기 작업이나 인덱스 연산자를 통해 처리될 수 있습니다 ([AP_SWS_SHWA_00011]). 모든 복사 및 이동 작업은 금지되는 반면, 개별 데이터 작업은 스레드 안전성 및 오류 처리에 대한 특정 요구사항의 적용을 받습니다.
컨텍스트
템플릿 클래스 ara::shwa::Accessor은 AUTOSAR Adaptive Platform의 공유 메모리 버퍼에 대한 타입화된 메모리 접근을 위한 핵심 접근 인터페이스를 구성합니다. 이는 기본 ara::shwa::Buffer에 대한 어드레싱 및 접근 로직을 캡슐화하며 데이터 타입(DataT), 차원(Dimensions), 접근 모드(AccessModeType), 대상 디바이스(AccessTargetType) 및 사용된 메모리 할당자(AllocatorT)를 통해 이를 정적으로 매개변수화합니다. 고급 시나리오에서 이 클래스는 버퍼 환경에서 처리 작업을 제어할 것으로 추정되는 TaskHandler을 통합합니다. 질문 Q-552022fbf949a1f0 (열림)
모듈 내에서 이 클래스는 세 가지 주요 상호작용 대상과 연계하여 동작합니다:
응용 프로그램 / 호출자: 팩토리 인터페이스를 통해 인스턴스를 요청하고 메서드 또는 연산자를 통해 읽기 또는 쓰기 작업을 수행합니다.
ara::shwa::Buffer: 할당된 메모리 영역을 제공하며, Accessor 생성 시 참조로 전달됩니다 ([AP_SWS_SHWA_00007]).
새 인스턴스의 생성은 정적 팩토리 메서드 Create을 통해서만 독점적으로 수행됩니다([AP_SWS_SHWA_00007], [AP_SWS_SHWA_00008]). 이는 ara::core::Result<std::unique_ptr<Accessor>>을 반환하여 소유권을 호출자에게 독점적으로 이전합니다. 소유권을 가진 std::unique_ptr가 유효 범위를 벗어나는 즉시 객체는 자동으로 파괴됩니다. 생성 메서드는 스레드 안전(thread-safe) 및 예외 안전(exception safe)하도록 명세되어 있습니다([AP_SWS_SHWA_00007], [AP_SWS_SHWA_00008]).
일반적인 사용 흐름은 객체 생성, 선택적 프로퍼티 검사, 그리고 버퍼에 대한 후속 읽기 또는 쓰기 작업으로 구성됩니다:
팩토리를 통한 인스턴스화: 애플리케이션은 Accessor::Create을 호출하고 ara::shwa::Buffer에 대한 참조와 선택적으로 구성 프로퍼티 및 TaskHandler를 전달합니다([AP_SWS_SHWA_00007], [AP_SWS_SHWA_00008]). ara::core::Result를 확인한 후 애플리케이션은 std::unique_ptr<Accessor>을 인계받습니다.
프로퍼티 평가: 템플릿 메서드 HasProperty<PropertyT>()을 통해 특정 특성이 존재하는지 질의할 수 있습니다([AP_SWS_SHWA_00015]). 존재하는 특성은 이어서 GetProperty<PropertyT>()로 판독됩니다([AP_SWS_SHWA_00016]).
ShwaErrorCode::kInvalidAccessMode: 접근 모드의 조합이 유효하지 않은 경우 Set에서 발생합니다([AP_SWS_SHWA_00011]). 이는 AccessMode::kRead용으로 인스턴스화된 클래스에 대해 쓰기 호출이 수행될 때 해당될 것으로 추정됩니다. 질문 Q-170e82f3dec16e75 (열림)
ara::core::Result< DataT > Get (Id< Dimensions > index);
Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.
Scope
class ara::shwa::Accessor
Thread Safety
thread-safe rollback_semantics ShwaErrorCode::kInvalid Index The operation could not be performed because no initial value is available rollback_semantics
Exception Safety
not exception safe
Errors
ShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy.
Request a governed re-review of this record. The record is not changed immediately.
ara::core::Result< void > Set (Id< Dimensions > index, DataT value);
Schreibt den übergebenen Wert an die durch die Signatur bestimmte Stelle.
Scope
class ara::shwa::Accessor
Thread Safety
thread-safe
Exception Safety
not exception safe
Errors
ShwaErrorCode::kInvalid Index no_rollback_semantics The operation could not be performed because no initial value is available no_rollback_semantics ShwaErrorCode::kInvalid AccessMode Opening a file failed because the requested combination of Open Modes is invalid no_rollback_semantics ShwaErrorCode::k IntegrityCorrupted The structural integrity of the memory allocated by Buffer could not be established rollback_semantics ShwaErrorCode::k ResourceBusy The operation could not be performed because the resource is currently busy.
Request a governed re-review of this record. The record is not changed immediately.
gemini-3.8-flash-low· 2026-10-13 · 독일어 원문