DEENESPTFRRUARHIKOZHNL

class ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange

[SWS_DM_01182] Upstream: RS_Diag_04251

class ByteRange final {...};

Represents a single byte value closed range. Type alias of a single diagnostic service pattern element in the DynamicAccessList

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder

User GuideAI-GENERATED

Defines a closed byte value interval for diagnostic service patterns in dynamic access lists.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 772c8ed103eb Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Defines a closed byte value interval for diagnostic service patterns in dynamic access lists.

The class ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange represents a closed byte value interval for defining diagnostic service patterns in dynamic access lists [SWS_DM_01182]. Applications create these value objects with minimum and maximum values and pass them to the builder for the step-by-step configuration of service patterns [SWS_DM_01183]. In addition, the defined interval boundaries can be read out at any time via inspectors. All member functions are declared as exception-safe as noexcept, whereas modifying assignment operators require separate synchronization during concurrent access.

Context

The class ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange represents a closed byte value interval within a diagnostic service pattern [SWS_DM_01182]. In the context of dynamic access management (DynamicAccessList), it acts as an elementary building block to precisely define criteria and value ranges of individual bytes for diagnostic requests AUTOSAR_AP_SWS_Diagnostics §8.15.2 “Class: ByteRange”.

As a nested value type, ByteRange acts in direct collaboration with the higher-level DynamicAccessListDiagServiceBuilder. While the diagnostic application creates instances with specific threshold values, the builder consumes these objects via methods such as Add [SWS_DM_01177] or EndsWith [SWS_DM_01180] to construct sequential byte pattern sequences for diagnostic services. In addition, the class enables reading out the configured boundaries via GetMin [SWS_DM_01189] and GetMax [SWS_DM_01190].

Lifecycle

Instances of ByteRange are regularly created via the parameterized constructor, which takes the minimum (min) and maximum value (max) as a closed value interval [SWS_DM_01183]. Since this is a stateless value object without dynamic resource binding, no complex internal operational phases exist.

The class implements standard-compliant value semantics: It provides both a copy constructor [SWS_DM_01184] and a move constructor [SWS_DM_01185], allowing instances to be passed to builder methods by copy or by move without issues. Analogously, the copy assignment operator [SWS_DM_01186] and the move assignment operator [SWS_DM_01187] are available. The lifecycle concludes with the destructor [SWS_DM_01188].

With regard to concurrency, AUTOSAR specifies differentiated requirements: constructors and reading operations are classified as thread-safe, whereas the assignment operators operator= ([SWS_DM_01186], [SWS_DM_01187]) and the destructor [SWS_DM_01188] are explicitly non-thread-safe. Modifying operations on the same instance therefore require synchronizing measures at the caller level.

Usage Path

The typical use of ByteRange takes place in the context of sequential configuration of service patterns via the builder:

  1. The application creates a ByteRange object specifying the bounds min and max [SWS_DM_01183].
  2. The interval is passed to DynamicAccessListDiagServiceBuilder::Add to extend the pattern at the current position [SWS_DM_01177].
  3. Using EndsWith, a final interval can be defined that forms the conclusion of the pattern [SWS_DM_01180].
  4. If needed, the application reads out the limit values via GetMin [SWS_DM_01189] and GetMax [SWS_DM_01190] for verification.
Pattern definition with ByteRange and DynamicAccessListDiagServiceBuilderApplicationByteRangeDynamicAccessListDiagServiceBuilderByteRange(min, max)InstanzAdd(range)EndsWith(range)GetMin() / GetMax()Grenzwerte (Byte)

Sequence diagram: Typical interaction during the definition of a diagnostic pattern with ByteRange. Sources: [SWS_DM_01183], [SWS_DM_01177], [SWS_DM_01180], [SWS_DM_01189], [SWS_DM_01190].

Error Scenarios

All member functions of the class are declared with noexcept and are therefore completely exception-safe (exception safe) [SWS_DM_01183]. Neither construction nor assignments or queries throw C++ exceptions.

Potential error situations primarily concern logical parameterization errors: If an application passes a minimum value min that is greater than the maximum value max, the specification does not define any explicit error behavior (interpretation: such an invalid pair of values would probably only be rejected during the subsequent pattern processing in the builder or lead to an empty match pattern). Question Q-ea9c65d175d48946 (open) A further error risk lies in unprotected assignment via operator= during concurrent access to the same object by multiple threads, since assignments are not thread-safe [SWS_DM_01186].

This class guide is based on the AUTOSAR Adaptive specification R25-11 for the diag module.

Member map

Constructors and destructor

2

Methods

2

Operators

1

Class diagram

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

G nara__diag__DynamicAccessListDiagServiceBuilder__ByteRange410 ByteRange + ByteRange() + ~ByteRange() + GetMax() + GetMin() + operator=()

Detail view

Select an entry in the outline.

Constructors and destructor

ByteRange function 3

Constructs a value range.

Overloads ByteRange 3
ByteRange (Byte min, Byte max) noexcept; SWS_DM_01183
ByteRange (ByteRange const &other) noexcept; SWS_DM_01184
ByteRange (ByteRange &&other) noexcept; SWS_DM_01185
~ByteRange function

Destructor of ByteRange.

~ByteRange () noexcept;

Methods

GetMax function

Reports the highest value to match.

auto GetMax () const noexcept -> Byte;
GetMin function

Reports the lowest value to match.

auto GetMin () const noexcept -> Byte;

Operators

operator= function 2

Copy assignment operator of ByteRange.

Overloads = 2
auto operator= (ByteRange const &other) & noexcept -> ByteRange &; SWS_DM_01186
auto operator= (ByteRange &&other) & noexcept -> ByteRange &; SWS_DM_01187

Method documentation

function ByteRange [SWS_DM_01183] Upstream: RS_Diag_04251

ByteRange (Byte min, Byte max) noexcept;

Constructs a value range.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
minThe minimum value to match.
maxThe maximum value to match.

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

Record
AUTOSAR/AP/record/SWS_DM_01183
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01183@rel:R25-11#88ee7150
Content hash
88ee7150
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01183
Status: valid/unmigrated Version: rel:R25-11#76d910b8 Versionshistorie & Revisions (1 transition, 6 revision)
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_01183@rel:R25-11#76d910b8
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#88ee71502026-09-30
  • R21-11rel:R21-11#5b6ad4402026-10-14
  • R22-11rel:R22-11#e5a417102026-10-14
  • R23-11rel:R23-11#188249a92026-10-14
  • R24-11rel:R24-11#cbf06b7e2026-10-14
  • R25-11rel:R25-11#76d910b82026-10-14 active
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 ByteRange [SWS_DM_01184] Upstream: RS_Diag_04251

ByteRange (ByteRange const &other) noexcept;

Copy constructor of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherObject to construct-assign from.

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

Record
AUTOSAR/AP/record/SWS_DM_01184
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01184@rel:R25-11#d2c778d9
Content hash
d2c778d9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01184
Status: valid/unmigrated Version: rel:R25-11#70b42108 Versionshistorie & Revisions (1 transition, 6 revision)
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_01184@rel:R25-11#70b42108
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#d2c778d92026-09-30
  • R21-11rel:R21-11#8a73de022026-10-14
  • R22-11rel:R22-11#b28526062026-10-14
  • R23-11rel:R23-11#5de9db872026-10-14
  • R24-11rel:R24-11#b95826bf2026-10-14
  • R25-11rel:R25-11#70b421082026-10-14 active
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 ByteRange [SWS_DM_01185] Upstream: RS_Diag_04251

ByteRange (ByteRange &&other) noexcept;

Move constructor of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherObject to move-assign from.

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

Record
AUTOSAR/AP/record/SWS_DM_01185
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01185@rel:R25-11#05f7580e
Content hash
05f7580e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01185
Status: valid/unmigrated Version: rel:R25-11#7783f97f Versionshistorie & Revisions (1 transition, 6 revision)
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_01185@rel:R25-11#7783f97f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#05f7580e2026-09-30
  • R21-11rel:R21-11#2b85b98e2026-10-14
  • R22-11rel:R22-11#82eb01f52026-10-14
  • R23-11rel:R23-11#206730ae2026-10-14
  • R24-11rel:R24-11#5e5486b62026-10-14
  • R25-11rel:R25-11#7783f97f2026-10-14 active
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 GetMax [SWS_DM_01190] Upstream: RS_Diag_04251

auto GetMax () const noexcept -> Byte;

Reports the highest value to match.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ByteReturns the the highest value.

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

Record
AUTOSAR/AP/record/SWS_DM_01190
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01190@rel:R25-11#97213c3a
Content hash
97213c3a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01190
Status: valid/unmigrated Version: rel:R25-11#ed1cf150 Versionshistorie & Revisions (1 transition, 6 revision)
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_01190@rel:R25-11#ed1cf150
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#97213c3a2026-09-30
  • R21-11rel:R21-11#9b134c052026-10-14
  • R22-11rel:R22-11#3b0338f22026-10-14
  • R23-11rel:R23-11#110ac01b2026-10-14
  • R24-11rel:R24-11#d75516992026-10-14
  • R25-11rel:R25-11#ed1cf1502026-10-14 active
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 GetMin [SWS_DM_01189] Upstream: RS_Diag_04251

auto GetMin () const noexcept -> Byte;

Reports the lowest value to match.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ByteReturns the lowest value.

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

Record
AUTOSAR/AP/record/SWS_DM_01189
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01189@rel:R25-11#aec0b79b
Content hash
aec0b79b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01189
Status: valid/unmigrated Version: rel:R25-11#9261124f Versionshistorie & Revisions (1 transition, 6 revision)
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_01189@rel:R25-11#9261124f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#aec0b79b2026-09-30
  • R21-11rel:R21-11#bac056062026-10-14
  • R22-11rel:R22-11#88ffd3472026-10-14
  • R23-11rel:R23-11#8bdcbed02026-10-14
  • R24-11rel:R24-11#817c457f2026-10-14
  • R25-11rel:R25-11#9261124f2026-10-14 active
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= [SWS_DM_01186] Upstream: RS_Diag_04251

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

Copy assignment operator of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherObject to copy-assign from.

Rückgabewert

TypBeschreibung
ByteRangeByteRange& Reference to self.

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

Record
AUTOSAR/AP/record/SWS_DM_01186
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01186@rel:R25-11#31770857
Content hash
31770857
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01186
Status: valid/unmigrated Version: rel:R25-11#eb4ce14e Versionshistorie & Revisions (1 transition, 6 revision)
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_01186@rel:R25-11#eb4ce14e
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#317708572026-09-30
  • R21-11rel:R21-11#1a6ff2002026-10-14
  • R22-11rel:R22-11#a6f24ffc2026-10-14
  • R23-11rel:R23-11#b7a9b8882026-10-14
  • R24-11rel:R24-11#7faa27852026-10-14
  • R25-11rel:R25-11#eb4ce14e2026-10-14 active
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= [SWS_DM_01187] Upstream: RS_Diag_04251

auto operator= (ByteRange &&other) & noexcept -> ByteRange &;

Move assignment operator of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherObject to move-assign from.

Rückgabewert

TypBeschreibung
ByteRangeByteRange& Reference to self.

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

Record
AUTOSAR/AP/record/SWS_DM_01187
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01187@rel:R25-11#3ce3241d
Content hash
3ce3241d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01187
Status: valid/unmigrated Version: rel:R25-11#53c83f22 Versionshistorie & Revisions (1 transition, 6 revision)
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_01187@rel:R25-11#53c83f22
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#3ce3241d2026-09-30
  • R21-11rel:R21-11#b903f9b62026-10-14
  • R22-11rel:R22-11#050a1aeb2026-10-14
  • R23-11rel:R23-11#3eb7f9782026-10-14
  • R24-11rel:R24-11#6a83a6b32026-10-14
  • R25-11rel:R25-11#53c83f222026-10-14 active
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 ~ByteRange [SWS_DM_01188] Upstream: RS_Diag_04251

~ByteRange () noexcept;

Destructor of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_DM_01188
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01188@rel:R25-11#06913fd7
Content hash
06913fd7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01188
Status: valid/unmigrated Version: rel:R25-11#955d556b Versionshistorie & Revisions (1 transition, 6 revision)
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_01188@rel:R25-11#955d556b
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#06913fd72026-09-30
  • R21-11rel:R21-11#353666752026-10-14
  • R22-11rel:R22-11#a69400002026-10-14
  • R23-11rel:R23-11#a2058a942026-10-14
  • R24-11rel:R24-11#5947fcb12026-10-14
  • R25-11rel:R25-11#955d556b2026-10-14 active
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