DEENESPTFRRUARHIKOZHNL

class ara::shwa::Range

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_01001] wording not yet imported Upstream: RS_SHWA_00017

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

Die Spezifikation definiert diesen Klassentyp mit der gezeigten Schnittstelle.

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

User GuideAI-GENERATED

Encapsulates range sizes of up to three dimensions as an immutable value type via controlled factory creation.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9801add965b6 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Encapsulates range sizes of up to three dimensions as an immutable value type via controlled factory creation.

The class encapsulates multidimensional range dimensions and completely prevents parameterless instantiation [AP_SWS_SHWA_01002]. Objects are created in a controlled manner via static factory methods that return ShwaErrorCode::kRuntime in the event of an error and, upon success, provide exception-safe value objects with copy and move semantics [AP_SWS_SHWA_01007]. Reading individual dimensions is not thread-safe and requires external synchronization [AP_SWS_SHWA_01010].

Context

Within the Adaptive Platform module shwa, the template class ara::shwa::Range represents a multidimensional range or size specification (parameterized by default via Dimensions = 1). In hardware-oriented or memory-sharing architectures, a range object typically serves as a structured description of geometric extents or buffer dimensions over up to three axes. Interaction partners are primarily application components and driver services that need to allocate, partition, or address memory regions. The class encapsulates the discrete extents of the dimensions and protects them against erroneous direct construction by preventing incompletely or invalidly initialized objects through interface constraints.

Lifecycle

The lifecycle of an instance of ara::shwa::Range is determined by strict construction rules. The parameterless default constructor is explicitly deleted [AP_SWS_SHWA_01002]. Direct creation without specifying the dimensions is therefore precluded. Instead, creation occurs exclusively via static factory methods Create that are overloaded for one-, two-, or three-dimensional variants: for one dimension with dim0 [AP_SWS_SHWA_01007], for two dimensions with dim0 and dim1 [AP_SWS_SHWA_01008], and for three dimensions with dim0, dim1, and dim2 [AP_SWS_SHWA_01009]. Each of these factory functions returns a ara::core::Result<Range>.

After successful creation, the class behaves as a full-fledged value type. It provides both the copy constructor [AP_SWS_SHWA_01003] and the copy assignment operator [AP_SWS_SHWA_01004] as standardized, exception-safe operations (noexcept = default). In addition, a move constructor [AP_SWS_SHWA_01005] and a move assignment operator [AP_SWS_SHWA_01006] are available with the same exception safety. Instances thus possess clear value semantics and can easily be transferred or held in containers. Regarding concurrency, the static factory methods are designed to be thread-safe, whereas the reading inspector methods GetDimension0 [AP_SWS_SHWA_01010], GetDimension1 [AP_SWS_SHWA_01011], and GetDimension2 [AP_SWS_SHWA_01012] are classified as not thread-safe by the specification.

Usage Path

A typical usage path comprises creating a range instance via the static interface, validating the result, and subsequently reading the dimensions for configuration or allocation steps. The following sequence diagram illustrates this flow.

Usage sequence for ara::shwa::RangeApplicationara::shwa::RangeCreate(dim0)Result<Range>altResult contains valueGetDimension0()std::size_tFehlerfallFehlerbehandlung (ShwaErrorCode::kRuntime)

Sequence diagram: Typical usage flow for the creation and querying of dimensions. Sources: [AP_SWS_SHWA_01007], [AP_SWS_SHWA_01010]

In the first step, the application calls one of the factory overloads, for example Create(dim0) [AP_SWS_SHWA_01007] for a one-dimensional range or Create(dim0, dim1) [AP_SWS_SHWA_01008] or Create(dim0, dim1, dim2) [AP_SWS_SHWA_01009] for multidimensional configurations. The calling layer then checks the returned ara::core::Result for success. If a valid value is present, the Range object is dereferenced or moved. Subsequently, downstream functions can query the contained axis sizes via GetDimension0 [AP_SWS_SHWA_01010] as well as, if required, via GetDimension1 [AP_SWS_SHWA_01011] and GetDimension2 [AP_SWS_SHWA_01012] and use them for buffer operations.

Error Scenarios

During creation via Create, error conditions can occur that cause the initialization to fail. In this case, the factory does not return an initialized object, but rather an error result of type ShwaErrorCode::kRuntime ("General runtime error") [AP_SWS_SHWA_01007], [AP_SWS_SHWA_01008], [AP_SWS_SHWA_01009]. For all factory variants, the specification guarantees rollback semantics and exception safety (noexcept), so that no partial states remain or inconsistencies are caused in the event of an error.

No return error codes are provided for the inspector methods GetDimension0 [AP_SWS_SHWA_01010], GetDimension1 [AP_SWS_SHWA_01011], and GetDimension2 [AP_SWS_SHWA_01012]; however, the specification identifies them as not exception-safe (not exception safe) and not thread-safe (not thread-safe). The caller therefore bears the precondition of securing access across threads. Furthermore, calling a dimension query that exceeds the number of dimensions instantiated with the template parameter Dimensions (for example, GetDimension2 in a one-dimensional configuration) is likely impermissible and leads to errors. Question Q-794519baf2ea8a5e (open)

This guide is based exclusively on the interface specification of ara::shwa::Range from AUTOSAR Adaptive R25-11.

Member map

Constructors and destructor

1

Operators

1

Detail view

Select an entry in the outline.

Constructors and destructor

Range function 3

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

Overloads Range 3
Range ()=delete; AP_SWS_SHWA_01002
Range (Range &&other) noexcept=default; AP_SWS_SHWA_01005
Range (Range const &other) noexcept=default; AP_SWS_SHWA_01003

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< Range > Create (const std::size_t dim0) noexcept; AP_SWS_SHWA_01007
static ara::core::Result< Range > Create (std::size_t dim0, std::size_t dim1, std::size_t dim2) noexcept; AP_SWS_SHWA_01009
static ara::core::Result< Range > Create (std::size_t dim0, std::size_t dim1) noexcept; AP_SWS_SHWA_01008
GetDimension0 function

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

std::size_t GetDimension0 () const;
GetDimension1 function

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

std::size_t GetDimension1 () const;
GetDimension2 function

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

std::size_t GetDimension2 () const;

Operators

operator= function 2

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

Overloads = 2
Range & operator= (Range &&other) noexcept=default; AP_SWS_SHWA_01006
Range & operator= (const Range &other) noexcept=default; AP_SWS_SHWA_01004

Details

function Range [AP_SWS_SHWA_01002] Upstream: RS_SHWA_00017

Range ()=delete;

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

Scopeclass ara::shwa::Range

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01002
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01002@rel:R25-11#1230777b
Content hash
1230777b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01002
Status: valid/unmigrated Version: rel:R25-11#1230777b 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_01002@rel:R25-11#1230777b
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 Range [AP_SWS_SHWA_01005] Upstream: RS_SHWA_00017

Range (Range &&other) noexcept=default;

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

Scopeclass ara::shwa::Range
Exception Safetyexception safe

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

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

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

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

Scopeclass ara::shwa::Range
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01006
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01006@rel:R25-11#2a073de4
Content hash
2a073de4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01006
Status: valid/unmigrated Version: rel:R25-11#2a073de4 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_01006@rel:R25-11#2a073de4
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_01004] Upstream: RS_SHWA_00017

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

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

Scopeclass ara::shwa::Range
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01004
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01004@rel:R25-11#ff87e5d9
Content hash
ff87e5d9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01004
Status: valid/unmigrated Version: rel:R25-11#ff87e5d9 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_01004@rel:R25-11#ff87e5d9
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 Range [AP_SWS_SHWA_01003] Upstream: RS_SHWA_00017

Range (Range const &other) noexcept=default;

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

Scopeclass ara::shwa::Range
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01003
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01003@rel:R25-11#eac65ea5
Content hash
eac65ea5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01003
Status: valid/unmigrated Version: rel:R25-11#eac65ea5 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_01003@rel:R25-11#eac65ea5
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_01007] Upstream: RS_SHWA_00017, RS_SHWA_00007

static ara::core::Result< Range > 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::Range
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_01007
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01007@rel:R25-11#d6c4461a
Content hash
d6c4461a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01007
Status: valid/unmigrated Version: rel:R25-11#d6c4461a 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_01007@rel:R25-11#d6c4461a
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_01009] Upstream: RS_SHWA_00017, RS_SHWA_00007

static ara::core::Result< Range > 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::Range
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_01009
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01009@rel:R25-11#0dcb9b8c
Content hash
0dcb9b8c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01009
Status: valid/unmigrated Version: rel:R25-11#0dcb9b8c 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_01009@rel:R25-11#0dcb9b8c
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_01008] Upstream: RS_SHWA_00017, RS_SHWA_00007

static ara::core::Result< Range > 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::Range
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_01008
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01008@rel:R25-11#c5dd729d
Content hash
c5dd729d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01008
Status: valid/unmigrated Version: rel:R25-11#c5dd729d 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_01008@rel:R25-11#c5dd729d
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 GetDimension0 [AP_SWS_SHWA_01010] Upstream: RS_SHWA_00017

std::size_t GetDimension0 () const;

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

Scopeclass ara::shwa::Range
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_01010
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01010@rel:R25-11#2483c373
Content hash
2483c373
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01010
Status: valid/unmigrated Version: rel:R25-11#2483c373 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_01010@rel:R25-11#2483c373
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 GetDimension1 [AP_SWS_SHWA_01011] Upstream: RS_SHWA_00017

std::size_t GetDimension1 () const;

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

Scopeclass ara::shwa::Range
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_01011
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01011@rel:R25-11#5274ad1b
Content hash
5274ad1b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01011
Status: valid/unmigrated Version: rel:R25-11#5274ad1b 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_01011@rel:R25-11#5274ad1b
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 GetDimension2 [AP_SWS_SHWA_01012] Upstream: RS_SHWA_00017

std::size_t GetDimension2 () const;

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

Scopeclass ara::shwa::Range
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_01012
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01012@rel:R25-11#ded38889
Content hash
ded38889
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01012
Status: valid/unmigrated Version: rel:R25-11#ded38889 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_01012@rel:R25-11#ded38889
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