DEENESPTFRRUARHIKOZHNL

class ara::shwa::Id

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.

[AP_SWS_SHWA_00701] wording not yet imported Upstream: RS_SHWA_00017

template <int Dimensions = 1> class Id final {...};

Die Spezifikation definiert diesen Klassentyp mit der gezeigten Schnittstelle.

Header-Datei#include "ara/shwa/id.h"
Scopenamespace ara::shwa

User GuideAI-GENERATED

Serves as a multidimensional index identifier for addressing hardware and memory resources.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 5df852eb2dec Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Serves as a multidimensional index identifier for addressing hardware and memory resources.

The template class ara::shwa::Id encapsulates multidimensional identifiers in module shwa and enforces controlled instantiation via static factory methods such as Create [AP_SWS_SHWA_00707]. As a copyable and movable value object, it allows access to individual dimension indices by means of Get and Set [AP_SWS_SHWA_00710]. Since read and write accesses as well as multidimensional factories are not thread-safe, the necessary synchronization is the responsibility of the calling application.

Context

Within module shwa, the template class ara::shwa::Id represents a multidimensional identification or indexing for shared memory or hardware accelerator structures. It encapsulates coordinates or dimension indices that can be instantiated via static factory methods and subsequently queried or modified. The class is declared as final and parameterizes the number of dimensions via the template parameter Dimensions with the default value 1. Typical interaction partners are application components that need to address structured accesses to accelerator buffers or memory resources. In this context, an instance object of ara::shwa::Id serves as a compact value object for dimension-related addressing.

Lifecycle

Instantiation of ara::shwa::Id is subject to strict rules: the default constructor is explicitly deleted [AP_SWS_SHWA_00702]. Direct, uninitialized object creation is thus excluded. Instead, creation takes place in a controlled manner via static factory functions Create, which return the object encapsulated in a ara::core::Result [AP_SWS_SHWA_00707], [AP_SWS_SHWA_00708], [AP_SWS_SHWA_00709]. Depending on the required dimensionality, overloads are available for one dimension [AP_SWS_SHWA_00707], two dimensions [AP_SWS_SHWA_00708], or three dimensions [AP_SWS_SHWA_00709].

Regarding ownership semantics, ara::shwa::Id behaves like a regular value object. It implements both the copy constructor [AP_SWS_SHWA_00703] and the copy assignment operator [AP_SWS_SHWA_00704] as defaulted (default) and exception safe (noexcept). Likewise, the move constructor [AP_SWS_SHWA_00705] and the move assignment operator [AP_SWS_SHWA_00706] are available with noexcept. Instances can thus be efficiently stored in containers, passed by value, or moved between program parts. Special consideration is required for thread safety: while the one-dimensional factory method is specified as thread-safe [AP_SWS_SHWA_00707], the two- and three-dimensional factory methods are explicitly designated as not thread-safe [AP_SWS_SHWA_00708], [AP_SWS_SHWA_00709]. In the case of parallel initializations of multidimensional indices, callers must provide appropriate synchronization measures.

Usage Path

The typical usage flow comprises controlled instantiation via the appropriate factory call, verification of the Result object, as well as subsequent read and write operations on the individual dimensions. First, the application calls Create with the desired dimension boundaries or index values. After successful return of a ara::core::Result<Id>, the value contained therein is unpacked. Via the const method Get, the index value for a specific dimension can be queried [AP_SWS_SHWA_00710]. If needed, the value of a specific dimension can subsequently be modified via Set [AP_SWS_SHWA_00711]. Both methods (Get and Set) are classified as not thread-safe; concurrent accesses to the same instance from multiple threads must be synchronized externally.

Nutzungspfad von ara::shwa::IdApplicationara::shwa::IdCreate(dim0)ara::core::Result<Id>altResult contains valueGet(dimension)size_t indexSet(dimension, new_index)FehlerfallError handling for ShwaErrorCode::kRuntime

Sequence diagram: Typical flow of factory creation, value query, and subsequent modification of an Id object. Sources: [AP_SWS_SHWA_00707], [AP_SWS_SHWA_00710], [AP_SWS_SHWA_00711]

Error Scenarios

Runtime errors can occur during creation via the static Create methods. If instantiation fails, the factory method returns a ara::core::Result containing the error code ShwaErrorCode::kRuntime [AP_SWS_SHWA_00707], [AP_SWS_SHWA_00708], [AP_SWS_SHWA_00709]. Callers must therefore mandatorily check the return value by means of HasValue() before the instance is accessed. All Create functions guarantee rollback semantics and are declared as exception safe (noexcept).

During ongoing operation with the methods Get and Set, care must be taken that these are not exception safe according to the specification (not exception safe) and do not operate thread-safely [AP_SWS_SHWA_00710], [AP_SWS_SHWA_00711]. Interpretation: passing invalid dimension values outside the valid range of values is likely to lead to undefined behavior or exceptions, since no separate error codes are defined for faulty parameters to these methods. Question Q-6983f5f27702e6e8 (open) Prior to calling, callers must ensure that the argument dimension lies within the valid boundaries of the instance.

This guide was generated by an AI assistant on the basis of the AUTOSAR specification for R25-11.

Member map

Constructors and destructor

1

Methods

3

Operators

1

Detail view

Select an entry in the outline.

Constructors and destructor

Id function 3

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Overloads Id 3
Id ()=delete; AP_SWS_SHWA_00702
Id (Id &&other) noexcept=default; AP_SWS_SHWA_00705
Id (Id const &other) noexcept=default; AP_SWS_SHWA_00703

Methods

Create function 3

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Overloads Create 3
static ara::core::Result< Id > Create (const std::size_t dim0) noexcept; AP_SWS_SHWA_00707
static ara::core::Result< Id > Create (std::size_t dim0, std::size_t dim1, std::size_t dim2) noexcept; AP_SWS_SHWA_00709
static ara::core::Result< Id > Create (std::size_t dim0, std::size_t dim1) noexcept; AP_SWS_SHWA_00708
Get function

Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.

size_t Get (int dimension) const;
Set function

Schreibt den übergebenen Wert an die durch die Signatur bestimmte Stelle.

void Set (int dimension, size_t index);

Operators

operator= function 2

Stellt die in der Signatur ausgewiesene Index- beziehungsweise Zuweisungsoperation bereit.

Overloads = 2
Id & operator= (Id &&other) noexcept=default; AP_SWS_SHWA_00706
Id & operator= (const Id &other) noexcept=default; AP_SWS_SHWA_00704

Details

function Id [AP_SWS_SHWA_00702] Upstream: RS_SHWA_00017

Id ()=delete;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::Id

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00702
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00702@rel:R25-11#833c0ba4
Content hash
833c0ba4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00702
Status: valid/unmigrated Version: rel:R25-11#833c0ba4 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/AP_SWS_SHWA_00702@rel:R25-11#833c0ba4
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

function Id [AP_SWS_SHWA_00705] Upstream: RS_SHWA_00017

Id (Id &&other) noexcept=default;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::Id
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00705
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00705@rel:R25-11#4f69351d
Content hash
4f69351d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00705
Status: valid/unmigrated Version: rel:R25-11#4f69351d 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/AP_SWS_SHWA_00705@rel:R25-11#4f69351d
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

function operator= [AP_SWS_SHWA_00706] Upstream: RS_SHWA_00017

Id & operator= (Id &&other) noexcept=default;

Stellt die in der Signatur ausgewiesene Index- beziehungsweise Zuweisungsoperation bereit.

Scopeclass ara::shwa::Id
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00706
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00706@rel:R25-11#5eeeb8a4
Content hash
5eeeb8a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00706
Status: valid/unmigrated Version: rel:R25-11#5eeeb8a4 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/AP_SWS_SHWA_00706@rel:R25-11#5eeeb8a4
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

function operator= [AP_SWS_SHWA_00704] Upstream: RS_SHWA_00017

Id & operator= (const Id &other) noexcept=default;

Stellt die in der Signatur ausgewiesene Index- beziehungsweise Zuweisungsoperation bereit.

Scopeclass ara::shwa::Id
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00704
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00704@rel:R25-11#4bbd86ed
Content hash
4bbd86ed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00704
Status: valid/unmigrated Version: rel:R25-11#4bbd86ed 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/AP_SWS_SHWA_00704@rel:R25-11#4bbd86ed
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

function Id [AP_SWS_SHWA_00703] Upstream: RS_SHWA_00017

Id (Id const &other) noexcept=default;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::Id
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00703
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00703@rel:R25-11#de227365
Content hash
de227365
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00703
Status: valid/unmigrated Version: rel:R25-11#de227365 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/AP_SWS_SHWA_00703@rel:R25-11#de227365
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

function Create [AP_SWS_SHWA_00707] Upstream: RS_SHWA_00017, RS_SHWA_00007

static ara::core::Result< Id > Create (const std::size_t dim0) noexcept;

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Scopeclass ara::shwa::Id
Thread Safetythread-safe rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k Runtime General runtime error

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00707
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00707@rel:R25-11#3e45cfe1
Content hash
3e45cfe1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00707
Status: valid/unmigrated Version: rel:R25-11#3e45cfe1 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/AP_SWS_SHWA_00707@rel:R25-11#3e45cfe1
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

function Create [AP_SWS_SHWA_00709] Upstream: RS_SHWA_00017, RS_SHWA_00007

static ara::core::Result< Id > Create (std::size_t dim0, std::size_t dim1, std::size_t dim2) noexcept;

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Scopeclass ara::shwa::Id
Thread Safetynot thread-safe rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k Runtime General runtime error

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00709
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00709@rel:R25-11#b4c724b1
Content hash
b4c724b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00709
Status: valid/unmigrated Version: rel:R25-11#b4c724b1 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/AP_SWS_SHWA_00709@rel:R25-11#b4c724b1
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

function Create [AP_SWS_SHWA_00708] Upstream: RS_SHWA_00017, RS_SHWA_00007

static ara::core::Result< Id > Create (std::size_t dim0, std::size_t dim1) noexcept;

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Scopeclass ara::shwa::Id
Thread Safetynot thread-safe rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k Runtime General runtime error

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00708
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00708@rel:R25-11#4a451411
Content hash
4a451411
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00708
Status: valid/unmigrated Version: rel:R25-11#4a451411 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/AP_SWS_SHWA_00708@rel:R25-11#4a451411
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

function Get [AP_SWS_SHWA_00710] Upstream: RS_SHWA_00017

size_t Get (int dimension) const;

Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.

Scopeclass ara::shwa::Id
Thread Safetynot thread-safe
Exception Safetynot exception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00710@rel:R25-11#030f3bd4
Content hash
030f3bd4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00710
Status: valid/unmigrated Version: rel:R25-11#030f3bd4 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/AP_SWS_SHWA_00710@rel:R25-11#030f3bd4
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

function Set [AP_SWS_SHWA_00711] Upstream: RS_SHWA_00017

void Set (int dimension, size_t index);

Schreibt den übergebenen Wert an die durch die Signatur bestimmte Stelle.

Scopeclass ara::shwa::Id
Thread Safetynot thread-safe
Exception Safetynot exception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00711
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00711@rel:R25-11#8da74c75
Content hash
8da74c75
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00711
Status: valid/unmigrated Version: rel:R25-11#8da74c75 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/AP_SWS_SHWA_00711@rel:R25-11#8da74c75
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